diff options
author | Eddie James <eajames@linux.ibm.com> | 2022-05-25 11:58:52 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-05-26 14:43:29 +0100 |
commit | ebf2a3521738520e12849b221fea24928b3f61ff (patch) | |
tree | 8c20d9ffe317d10797bdefc8f0ae0781c1cb8fee /drivers/spi/spi.c | |
parent | 61bf40ef51aa73f6216b33563271b6acf7ea8d70 (diff) | |
download | linux-stable-ebf2a3521738520e12849b221fea24928b3f61ff.tar.gz linux-stable-ebf2a3521738520e12849b221fea24928b3f61ff.tar.bz2 linux-stable-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/spi.c')
-rw-r--r-- | drivers/spi/spi.c | 3 |
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; } |