summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorEddie James <eajames@linux.ibm.com>2022-05-25 18:58:52 +0200
committerMark Brown <broonie@kernel.org>2022-05-26 15:43:29 +0200
commitebf2a3521738520e12849b221fea24928b3f61ff (patch)
tree8c20d9ffe317d10797bdefc8f0ae0781c1cb8fee /drivers/spi
parentspi: fsi: Fix spurious timeout (diff)
downloadlinux-ebf2a3521738520e12849b221fea24928b3f61ff.tar.xz
linux-ebf2a3521738520e12849b221fea24928b3f61ff.zip
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;
}