History

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.

Eddie James committed 4 years ago

Commit ebf2a351 parent 61bf40e1 file · +2 −1Browse files

Unified · Split

drivers/spi/spi.c+2−1
@@ -1672,7 +1672,8 @@ static void __spi_pump_messages(struct spi_controller *ctlr, bool in_kthread) · 1671 unmodified lines
1672 ret = ctlr->transfer_one_message(ctlr, msg);1672 ret = ctlr->transfer_one_message(ctlr, msg);
1673 if (ret) {1673 if (ret) {
1674 dev_err(&ctlr->dev,1674 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);
1676 goto out;1677 goto out;
1677 }1678 }
1678 1679

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t