diff options
author | Bryan Freed | 2013-03-13 19:17:40 +0100 |
---|---|---|
committer | Mark Brown | 2013-04-01 15:22:59 +0200 |
commit | b0b36b861e434ee1c1a64cb39259e262f79af62e (patch) | |
tree | 57c741bdba95e18eab28fe82c2396b7b959c0f2a /drivers/spi/spi-mpc512x-psc.c | |
parent | spi/s3c64xx: modified error interrupt handling and init (diff) | |
download | kernel-qcow2-linux-b0b36b861e434ee1c1a64cb39259e262f79af62e.tar.gz kernel-qcow2-linux-b0b36b861e434ee1c1a64cb39259e262f79af62e.tar.xz kernel-qcow2-linux-b0b36b861e434ee1c1a64cb39259e262f79af62e.zip |
spi: Unlock a spinlock before calling into the controller driver.
spi_pump_messages() calls into a controller driver with
unprepare_transfer_hardware() which is documented as "This may sleep".
As in the prepare_transfer_hardware() call below, we should release the
queue_lock spinlock before making the call.
Rework the logic a bit to hold queue_lock to protect the 'busy' flag,
then release it to call unprepare_transfer_hardware().
Signed-off-by: Bryan Freed <bfreed@chromium.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-mpc512x-psc.c')
0 files changed, 0 insertions, 0 deletions