From: Eddie James Date: Wed, 25 May 2022 16:58:52 +0000 (-0500) Subject: spi: core: Display return code when failing to transfer message X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=ebf2a3521738520e12849b221fea24928b3f61ff;p=kernel.git 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 Link: https://lore.kernel.org/r/20220525165852.33167-3-eajames@linux.ibm.com Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 136bd0e51ada0..bbc8d4448e792 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; }