Commit 43407254 authored by Wentong Wu's avatar Wentong Wu Committed by Greg Kroah-Hartman

mei: vsc: Enhance SPI transfer of IVSC ROM

Before downloading firmware, a command response is required to
identify the silicon. However, when downloading IVSC firmware,
reading data from the SPI transfers with the IVSC ROM is not
necessary. Therefore, the rx buffer of SPI transfer command is
determined based on the specific request of the caller.

Fixes: 566f5ca9 ("mei: Add transport driver for IVSC device")
Signed-off-by: default avatarWentong Wu <wentong.wu@intel.com>
Tested-by: default avatarJason Chen <jason.z.chen@intel.com>
Acked-by: default avatarTomas Winker <tomas.winker@intel.com>
Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Link: https://lore.kernel.org/r/20240625081047.4178494-5-wentong.wu@intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a896a8a1
......@@ -331,7 +331,7 @@ int vsc_tp_rom_xfer(struct vsc_tp *tp, const void *obuf, void *ibuf, size_t len)
return ret;
}
ret = vsc_tp_dev_xfer(tp, tp->tx_buf, tp->rx_buf, len);
ret = vsc_tp_dev_xfer(tp, tp->tx_buf, ibuf ? tp->rx_buf : NULL, len);
if (ret)
return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment