davinci: clock: let clk->set_rate function sleep
authorSekhar Nori <nsekhar@ti.com>
Tue, 12 Jan 2010 13:25:35 +0000 (18:55 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 4 Feb 2010 21:30:08 +0000 (13:30 -0800)
commit3b43cd6f2dcbf871b8cabe16ae4ac8c036c959ac
tree064252da18333283fc12e088f37b94fc6c74e24e
parent00642f6616a0d1893ab1dcfec4d833210f310e95
davinci: clock: let clk->set_rate function sleep

When supporting I2C/SPI based on-board PLLs like CDCE949,
it is essential that clk->set_rate be able to sleep.

Currently, this is not possible because clk->set_rate is
called from within spin-lock in clk_set_rate

This patch brings clk->set_rate outside of the spin-lock
and lets the individual set_rate implementations achieve
serialization through appropiate means.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/cdce949.c
arch/arm/mach-davinci/clock.c