Skip to content
Commit 1fdb43cf authored by Robert Hancock's avatar Robert Hancock Committed by Benjamin Cabé
Browse files

drivers: flash: spi_nor: optimize SPI buffer usage



This driver was providing SPI buffers for both TX and RX on the data
payload portion of read transfers, even though the TX buffer is not
meaningful in these cases. As well as being less efficient, this also
caused likely uninitialized data to be transferred to the device, which
is possibly problematic.

Update to not include the TX buffer for the read data payload SPI
transfer, so that the SPI driver can generate dummy TX data internally.

Signed-off-by: default avatarRobert Hancock <robert.hancock@calian.com>
parent 4278e982
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment