]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 16:07:38 +0000 (09:07 -0700)
commit48f8d0f5a4fec334ec2c3c5c6ec6867a885e2329
treeac52726c4bb7375770b8b3c8dd29c5e00b8f2e79
parentd73eba8c9e33c0d5b487c04a0fc498432f074fea
clk: pxa: pxa3xx: fix CKEN register access

commit b93028c9af807b9474789e6aba34a6135b6cb708 upstream.

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: 9bbb8a338fb2 ("clk: pxa: add pxa3xx clock driver")
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/pxa/clk-pxa3xx.c