Skip to content

Commit ebf2a35

Browse files
Eddie Jamesbroonie
authored andcommitted
spi: core: Display return code when failing to transfer message
All the other calls to the controller driver display the error return code. The return code is helpful to understand what went wrong, so include it when failing to transfer one message. Signed-off-by: Eddie James <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 61bf40e commit ebf2a35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/spi/spi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,8 @@ static void __spi_pump_messages(struct spi_controller *ctlr, bool in_kthread)
16721672
ret = ctlr->transfer_one_message(ctlr, msg);
16731673
if (ret) {
16741674
dev_err(&ctlr->dev,
1675-
"failed to transfer one message from queue\n");
1675+
"failed to transfer one message from queue: %d\n",
1676+
ret);
16761677
goto out;
16771678
}
16781679

0 commit comments

Comments
 (0)