[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20241018090714.399076-2-d.dulov@aladdin.ru>
Date: Fri, 18 Oct 2024 12:07:14 +0300
From: Daniil Dulov <d.dulov@...ddin.ru>
To: <stable@...r.kernel.org>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>
CC: Daniil Dulov <d.dulov@...ddin.ru>, Vinod Koul <vkoul@...nel.org>, Bard
Liao <yung-chuan.liao@...ux.intel.com>, Pierre-Louis Bossart
<pierre-louis.bossart@...ux.intel.com>, Sanyog Kale
<sanyog.r.kale@...el.com>, <alsa-devel@...a-project.org>,
<linux-kernel@...r.kernel.org>, <lvc-project@...uxtesting.org>, Richard
Fitzgerald <rf@...nsource.cirrus.com>
Subject: [PATCH 5.10 1/1] soundwire: cadence: Fix error check in cdns_xfer_msg()
From: Richard Fitzgerald <rf@...nsource.cirrus.com>
commit 7f6bad4dfde0ec1d479fdcbbb62bccdbf3a93bb4 upstream.
_cdns_xfer_msg() returns an sdw_command_response value, not a
negative error code.
Signed-off-by: Richard Fitzgerald <rf@...nsource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
Link: https://lore.kernel.org/r/20220917154822.690472-1-rf@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@...nel.org>
Signed-off-by: Daniil Dulov <d.dulov@...ddin.ru>
---
drivers/soundwire/cadence_master.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soundwire/cadence_master.c b/drivers/soundwire/cadence_master.c
index d3e9cd3faadf..2492250ad1bd 100644
--- a/drivers/soundwire/cadence_master.c
+++ b/drivers/soundwire/cadence_master.c
@@ -692,7 +692,7 @@ cdns_xfer_msg(struct sdw_bus *bus, struct sdw_msg *msg)
for (i = 0; i < msg->len / CDNS_MCP_CMD_LEN; i++) {
ret = _cdns_xfer_msg(cdns, msg, cmd, i * CDNS_MCP_CMD_LEN,
CDNS_MCP_CMD_LEN, false);
- if (ret < 0)
+ if (ret != SDW_CMD_OK)
goto exit;
}
--
2.25.1
Powered by blists - more mailing lists