UBUNTU: SAUCE: mei: vsc: Utilize the appropriate byte order swap function

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

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

Fixes: 566f5ca976 ("mei: Add transport driver for IVSC device")
Cc: stable@vger.kernel.org # for 6.8+
Signed-off-by: Wentong Wu <wentong.wu@intel.com>
Tested-by: Jason Chen <jason.z.chen@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@canonical.com>
Acked-by: Paolo Pisati <paolo.pisati@canonical.com>
Acked-by: Timo Aaltonen <tjaalton@ubuntu.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
This commit is contained in:
Wentong Wu
2024-06-25 11:31:00 +02:00
committed by Stefan Bader
parent 75c9b924f5
commit 0a94fbb632
+1 -1
View File
@@ -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;
}