aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/spi/spi.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 8eb7460dd744..5e4654032bfa 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -1307,10 +1307,15 @@ static void __spi_pump_messages(struct spi_controller *ctlr, bool in_kthread)
1307 ret = ctlr->prepare_transfer_hardware(ctlr); 1307 ret = ctlr->prepare_transfer_hardware(ctlr);
1308 if (ret) { 1308 if (ret) {
1309 dev_err(&ctlr->dev, 1309 dev_err(&ctlr->dev,
1310 "failed to prepare transfer hardware\n"); 1310 "failed to prepare transfer hardware: %d\n",
1311 ret);
1311 1312
1312 if (ctlr->auto_runtime_pm) 1313 if (ctlr->auto_runtime_pm)
1313 pm_runtime_put(ctlr->dev.parent); 1314 pm_runtime_put(ctlr->dev.parent);
1315
1316 ctlr->cur_msg->status = ret;
1317 spi_finalize_current_message(ctlr);
1318
1314 mutex_unlock(&ctlr->io_mutex); 1319 mutex_unlock(&ctlr->io_mutex);
1315 return; 1320 return;
1316 } 1321 }