]> git.baikalelectronics.ru Git - kernel.git/commit
clk/ast2600: Fix soc revision for AHB
authorJoel Stanley <joel@jms.id.au>
Wed, 22 Sep 2021 23:54:49 +0000 (09:24 +0930)
committerStephen Boyd <sboyd@kernel.org>
Thu, 4 Nov 2021 02:42:35 +0000 (19:42 -0700)
commitd8f7cb0819225e64f8c6c4f3457a4c89ed901a29
tree4daadeee8bdf19a8c14f07c30b46ffd64b4c63bd
parentca65c759b4691e296032bd1499df4a24104f7210
clk/ast2600: Fix soc revision for AHB

Move the soc revision parsing to the initial probe, saving the driver
from parsing the register multiple times.

Use this variable to select the correct divisor table for the AHB clock.
Before this fix the A2 would have used the A0 table.

Fixes: 69329cb8ce2b ("clk: ast2600: Fix AHB clock divider for A1")
Signed-off-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20210922235449.213631-1-joel@jms.id.au
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-ast2600.c