-
由 Bryan Freed 提交于
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: NBryan Freed <bfreed@chromium.org> Reviewed-by: NDoug Anderson <dianders@chromium.org> Signed-off-by: NDoug Anderson <dianders@chromium.org> Acked-by: NLinus Walleij <linus.walleij@linaro.org> Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
b0b36b86