aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWentong Wu <[email protected]>2024-06-25 16:10:46 +0800
committerGreg Kroah-Hartman <[email protected]>2024-07-04 12:21:39 +0200
commit43407254b8a36638bb2efa737a510c96e573aafd (patch)
tree6133e7c82abc4aae49cfd99a1d99c2fa2fd23fbd
parenta896a8a127f45d00fb69fa7536955aa9b2e5d610 (diff)
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: 566f5ca97680 ("mei: Add transport driver for IVSC device") Signed-off-by: Wentong Wu <[email protected]> Tested-by: Jason Chen <[email protected]> Acked-by: Tomas Winker <[email protected]> Acked-by: Sakari Ailus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/misc/mei/vsc-tp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/vsc-tp.c b/drivers/misc/mei/vsc-tp.c
index 876330474444..1618cca9a731 100644
--- a/drivers/misc/mei/vsc-tp.c
+++ b/drivers/misc/mei/vsc-tp.c
@@ -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;