]> git.baikalelectronics.ru Git - kernel.git/commit
clk: pxa: pxa3xx: fix CKEN register access
authorRobert Jarzmik <robert.jarzmik@free.fr>
Tue, 4 Aug 2015 06:21:33 +0000 (08:21 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 7 Aug 2015 23:53:13 +0000 (16:53 -0700)
commit605ad124756e770f76a871cb56750ace540c968e
treee5fb6830d01b30aae84c56c197b716908287a447
parent9f982bb1128a7f4215b5eb0c7b858c42c74a38d9
clk: pxa: pxa3xx: fix CKEN register access

Clocks 0 to 31 are on CKENA, and not CKENB. The clock register names
were inadequately inverted. As a consequence, all clock operations were
happening on CKENB, because almost all but 2 clocks are on CKENA.

As the clocks were activated by the bootloader in the former tests, it
escaped the testing that the wrong clock gate was manipulated. The error
was revealed by changing the pxa3xx-nand driver to a module, where upon
unloading, the wrong clock was disabled in CKENB.

Fixes: f5aa79ccd6a9 ("clk: pxa: add pxa3xx clock driver")
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/pxa/clk-pxa3xx.c