[PATCH 7/8][SRU][Noble] UBUNTU: SAUCE: mei: vsc: Utilize the appropriate byte order swap function

You-Sheng Yang vicamo.yang at canonical.com
Tue Jun 25 09:31:37 UTC 2024


From: Wentong Wu <wentong.wu at intel.com>

BugLink: https://bugs.launchpad.net/bugs/2067364

Switch from cpu_to_be32_array() to be32_to_cpu_array() for the
received rom data.

Fixes: 566f5ca97680 ("mei: Add transport driver for IVSC device")
Cc: stable at vger.kernel.org # for 6.8+
Signed-off-by: Wentong Wu <wentong.wu at intel.com>
Tested-by: Jason Chen <jason.z.chen at intel.com>
(cherry picked from https://lore.kernel.org/all/20240624014223.4171341-4-wentong.wu@intel.com/)
Signed-off-by: You-Sheng Yang <vicamo.yang at canonical.com>
---
 drivers/misc/mei/vsc-tp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/mei/vsc-tp.c b/drivers/misc/mei/vsc-tp.c
index 3d92e7f84953..941f5b3df72f 100644
--- a/drivers/misc/mei/vsc-tp.c
+++ b/drivers/misc/mei/vsc-tp.c
@@ -336,7 +336,7 @@ int vsc_tp_rom_xfer(struct vsc_tp *tp, const void *obuf, void *ibuf, size_t len)
 		return ret;
 
 	if (ibuf)
-		cpu_to_be32_array(ibuf, tp->rx_buf, words);
+		be32_to_cpu_array(ibuf, tp->rx_buf, words);
 
 	return ret;
 }
-- 
2.43.0




More information about the kernel-team mailing list