spi/pl022: move device disable to workqueue thread
authorChris Blair <chris.blair@stericsson.com>
Fri, 4 Nov 2011 07:43:41 +0000 (07:43 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 1 Dec 2011 16:16:08 +0000 (17:16 +0100)
commitd4b6af2e0e29278f2353c7c8721ddf2f2446414f
tree4b900739272b0072c0a9057760de0a928c6c8962
parent4ca9fb46d8045b2473d608cd9e4580c6e0f7d5e0
spi/pl022: move device disable to workqueue thread

Moves the disabling of the device and clocks to the same thread in
which the device and clocks are enabled. This avoids SMP issues where
the device can be enabled for a transfer by one thread and then
disabled by the completion of the previous transfer in another thread.

Reviewed-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/spi/spi-pl022.c
This page took 0.028169 seconds and 5 git commands to generate.