From: Bryan Freed Date: Wed, 13 Mar 2013 18:17:40 +0000 (-0700) Subject: spi: Unlock a spinlock before calling into the controller driver. X-Git-Tag: v3.9-rc6~13^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0b36b861e434ee1c1a64cb39259e262f79af62e;p=pandora-kernel.git 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 Reviewed-by: Doug Anderson Signed-off-by: Doug Anderson Acked-by: Linus Walleij Signed-off-by: Mark Brown --- Reading git-diff-tree failed