]> bbs.cooldavid.org Git - net-next-2.6.git/commit
spi/pl022: fix APB pclk power regression on U300
authorLinus Walleij <linus.walleij@stericsson.com>
Sat, 21 Aug 2010 09:07:36 +0000 (11:07 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 8 Sep 2010 18:24:30 +0000 (12:24 -0600)
commit545074fb953e1753f6b8409db533ad7998789efb
treefbe97a2d3cc26c425edbe21e33fc72d03c0e8a33
parentbe7852a839b6dcd86db1a2d25b9a1a99f38db2db
spi/pl022: fix APB pclk power regression on U300

With the introduction of an AMBA PrimeCell per-cell block clock,
the pclk was left on after probe() unless explicitly disabled.
This clock is wired to the same clock on PL022 causing it to stay
always on since.

Fix this up properly by clocking the pclk whenever we want to
write into any PL022 registers and clocking the external clock
whenever we want to transmit messages on the bus.

Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Tested-by : Kevin Wells <wellsk40@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/amba-pl022.c