Merge remote-tracking branch 'spi/topic/core' into spi-next
[linux-2.6-block.git] / drivers / spi / spi.c
index 9e54d7bf3ec36d26cf2f8f6a4bcc40cba31488ed..77e6e45951f4c5e1c69a81b6d4ddf370d7f1a075 100644 (file)
@@ -1211,7 +1211,7 @@ static void spi_pump_messages(struct kthread_work *work)
        struct spi_master *master =
                container_of(work, struct spi_master, pump_messages);
 
-       __spi_pump_messages(master, true, false);
+       __spi_pump_messages(master, true, master->bus_lock_flag);
 }
 
 static int spi_init_queue(struct spi_master *master)
@@ -2856,7 +2856,7 @@ static int __spi_sync(struct spi_device *spi, struct spi_message *message,
  */
 int spi_sync(struct spi_device *spi, struct spi_message *message)
 {
-       return __spi_sync(spi, message, 0);
+       return __spi_sync(spi, message, spi->master->bus_lock_flag);
 }
 EXPORT_SYMBOL_GPL(spi_sync);