Thread (7 messages) 7 messages, 4 authors, 2021-09-15

RE: [PATCHv2] clk:aspeed:Fix AST2600 hpll calculate formula

From: Ryan Chen <ryan_chen@aspeedtech.com>
Date: 2021-09-15 03:11:37
Also in: lkml

-----Original Message-----
From: Joel Stanley <joel@jms.id.au>
Sent: Wednesday, September 15, 2021 11:07 AM
To: Ryan Chen <ryan_chen@aspeedtech.com>
Cc: Stephen Boyd <sboyd@kernel.org>; Claudiu.Beznea@microchip.com;
andrew@aj.id.au; linux-clk@vger.kernel.org; linux-kernel@vger.kernel.org;
mturquette@baylibre.com
Subject: Re: [PATCHv2] clk:aspeed:Fix AST2600 hpll calculate formula

On Wed, 15 Sept 2021 at 02:52, Ryan Chen [off-list ref]
wrote:
quoted
quoted
-----Original Message-----
From: Stephen Boyd <sboyd@kernel.org>
Sent: Wednesday, September 15, 2021 9:17 AM
To: Claudiu.Beznea@microchip.com; Ryan Chen
[off-list ref]; andrew@aj.id.au; joel@jms.id.au;
linux-clk@vger.kernel.org; linux-kernel@vger.kernel.org;
mturquette@baylibre.com
Subject: RE: [PATCHv2] clk:aspeed:Fix AST2600 hpll calculate formula

Quoting Ryan Chen (2021-09-12 22:31:46)
quoted
quoted
quoted
+               if (hwstrap & BIT(10))
+                       m = 0x5F;
+               else {
+                       if (hwstrap & BIT(8))
You may write it directly:
                else if (hwstrap & BIT(8))
Hello,
        Like I commit message M = SCU500[10] ? 0x5F : SCU500[8] ?
0xBF :
quoted
quoted
SCU200[12:0]
quoted
        it need keep from register read, if BIT(8)/BIT(10) not 1.
I don't get it. The review comment was that the else { if (...) can
be collapsed into an else if (..) What does commit message have to do with
it?
quoted
Sorry for confuse.
Or do you mean like following modification?

               if (hwstrap & BIT(10))
                       m = 0x5F;
               else if (hwstrap & BIT(8))
                       m = 0xBF;
Yep!

Take a look at my review of v1. I wrote it out there.
Got it will modify by this.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help