author: David Lechner <dlechner@baylibre.com> 2024-01-25 14:53:09 -0600
committer: Mark Brown <broonie@kernel.org> 2024-01-25 21:55:48 +0000
commit: 8c2ae772fe08e33f3d7a83849e85539320701abd
parent: f9f4b0c6425eb9ffd9bf62b8b8143e786b6ba695
Commit Summary:
Diffstat:
1 file changed, 3 insertions, 0 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 7477a11e12be..f2170f4b5077 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -1717,6 +1717,10 @@ static int __spi_pump_transfer_message(struct spi_controller *ctlr,
pm_runtime_put_noidle(ctlr->dev.parent);
dev_err(&ctlr->dev, "Failed to power device: %d\n",
ret);
+
+ msg->status = ret;
+ spi_finalize_current_message(ctlr);
+
return ret;
}
}