We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44a0421 commit f3440d9Copy full SHA for f3440d9
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);
1308
if (ret) {
1309
dev_err(&ctlr->dev,
1310
- "failed to prepare transfer hardware\n");
+ "failed to prepare transfer hardware: %d\n",
1311
+ ret);
1312
1313
if (ctlr->auto_runtime_pm)
1314
pm_runtime_put(ctlr->dev.parent);
1315
+
1316
+ ctlr->cur_msg->status = ret;
1317
+ spi_finalize_current_message(ctlr);
1318
1319
mutex_unlock(&ctlr->io_mutex);
1320
return;
1321
}
0 commit comments