summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorEddie James <eajames@linux.ibm.com>2022-05-25 11:58:52 -0500
committerMark Brown <broonie@kernel.org>2022-05-26 14:43:29 +0100
commitebf2a3521738520e12849b221fea24928b3f61ff (patch)
tree8c20d9ffe317d10797bdefc8f0ae0781c1cb8fee /drivers/spi
parent61bf40ef51aa73f6216b33563271b6acf7ea8d70 (diff)
downloadlinux-ebf2a3521738520e12849b221fea24928b3f61ff.tar.bz2
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 <eajames@linux.ibm.com> Link: https://lore.kernel.org/r/20220525165852.33167-3-eajames@linux.ibm.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 136bd0e51ada..bbc8d4448e79 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -1672,7 +1672,8 @@ static void __spi_pump_messages(struct spi_controller *ctlr, bool in_kthread)
ret = ctlr->transfer_one_message(ctlr, msg);
if (ret) {
dev_err(&ctlr->dev,
- "failed to transfer one message from queue\n");
+ "failed to transfer one message from queue: %d\n",
+ ret);
goto out;
}