linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ryan Chen <ryan_chen@aspeedtech.com>
To: Joel Stanley <joel@jms.id.au>
Cc: Joel Stanley <joel@linux.ibm.com>,
	Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@kernel.org>,
	"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"andrewrj@au1.ibm.com" <andrewrj@au1.ibm.com>,
	BMC-SW <BMC-SW@aspeedtech.com>, Andrew Jeffery <andrew@aj.id.au>
Subject: RE: [PATCH 1/1] clk: aspeed: Fix APLL calculate formula for ast2600-A2
Date: Tue, 19 Jan 2021 03:29:19 +0000	[thread overview]
Message-ID: <HK0PR06MB33802278B7E3179B3229390BF2A30@HK0PR06MB3380.apcprd06.prod.outlook.com> (raw)
In-Reply-To: <CACPK8XfuiN_Nxfwf89ig5tgEo1dmiV_k092TVu527w4fYVFE0Q@mail.gmail.com>

> -----Original Message-----
> From: Joel Stanley <joel@jms.id.au>
> Sent: Tuesday, January 19, 2021 11:10 AM
> To: Ryan Chen <ryan_chen@aspeedtech.com>
> Cc: Joel Stanley <joel@linux.ibm.com>; Michael Turquette
> <mturquette@baylibre.com>; Stephen Boyd <sboyd@kernel.org>;
> linux-clk@vger.kernel.org; linux-kernel@vger.kernel.org;
> andrewrj@au1.ibm.com; BMC-SW <BMC-SW@aspeedtech.com>; Andrew
> Jeffery <andrew@aj.id.au>
> Subject: Re: [PATCH 1/1] clk: aspeed: Fix APLL calculate formula for ast2600-A2
> 
> On Tue, 19 Jan 2021 at 03:04, Ryan Chen <ryan_chen@aspeedtech.com>
> wrote:
> >
> > > -----Original Message-----
> > > From: Joel Stanley <joel@linux.ibm.com>
> > > Sent: Tuesday, January 19, 2021 10:20 AM
> > > To: Ryan Chen <ryan_chen@aspeedtech.com>; Michael Turquette
> > > <mturquette@baylibre.com>; Stephen Boyd <sboyd@kernel.org>;
> > > linux-clk@vger.kernel.org; linux-kernel@vger.kernel.org;
> > > andrewrj@au1.ibm.com; BMC-SW <BMC-SW@aspeedtech.com>
> > > Cc: joel@jms.id.au; Andrew Jeffery <andrew@aj.id.au>
> > > Subject: Re: [PATCH 1/1] clk: aspeed: Fix APLL calculate formula for
> > > ast2600-A2
> > >
> > > On Mon, 2021-01-18 at 18:08 +0800, Ryan Chen wrote:
> > > > AST2600A1/A2 have different pll calculate formula.
> > >
> > > To clarify, only the A0 has the old calculation, and all subsequent
> > > revisions use the new calculation?
> > >
> > > If this is the case, do we need to support A0 in mainline linux, or
> > > should we drop support for A0 and only support A1, A2 and onwards?
> > >
> > A0/A1 is use older calculate formula
> > After A2 is new calculate formula as the patch.
> 
> Thanks for clarifying. I suggest you change the commit log to say something
> like this:
> 
> Starting from A2, the A-PLL calculation has changed. Use the existing formula
> for A0/A1 and the new formula for A2 onwards.
> 
> >
> > > You should add a line to indicate this is a fix:
> > >
> > > Fixes: d3d04f6c330a ("clk: Add support for AST2600 SoC")
> > >
> > Got it. so should I send new patch?
> 
> Yes, please consider adjusting the commit message as I suggested above, and
> add the fixes line.
> 
> > > > +       u32 chip_id = readl(scu_g6_base + ASPEED_G6_SILICON_REV);
> > > >
> > > > -       if (val & BIT(20)) {
> > > > -               /* Pass through mode */
> > > > -               mult = div = 1;
> > > > +       if (((chip_id & CHIP_REVISION_ID) >> 16) >= 2) {
> 
> Will this test be true if there are future versions of the chip (A3, etc)?
Yes, is also support for A3. 

  reply	other threads:[~2021-01-19  3:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-18 10:08 [PATCH 0/1] Fix AST2600A2 APLL calculate formuula Ryan Chen
2021-01-18 10:08 ` [PATCH 1/1] clk: aspeed: Fix APLL calculate formula for ast2600-A2 Ryan Chen
2021-01-19  2:20   ` Joel Stanley
2021-01-19  3:04     ` Ryan Chen
2021-01-19  3:10       ` Joel Stanley
2021-01-19  3:29         ` Ryan Chen [this message]
2021-01-19  6:17   ` [PATCH v2] clk: aspeed: Fix APLL calculate formula from ast2600-A2 Ryan Chen
2021-01-19 11:48     ` Joel Stanley
2021-02-11 20:36     ` Stephen Boyd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=HK0PR06MB33802278B7E3179B3229390BF2A30@HK0PR06MB3380.apcprd06.prod.outlook.com \
    --to=ryan_chen@aspeedtech.com \
    --cc=BMC-SW@aspeedtech.com \
    --cc=andrew@aj.id.au \
    --cc=andrewrj@au1.ibm.com \
    --cc=joel@jms.id.au \
    --cc=joel@linux.ibm.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=sboyd@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).