]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: davinci: Drop the preload of TX buffer before read/writes operations
authorBastien Curutchet <bastien.curutchet@bootlin.com>
Fri, 20 Sep 2024 08:28:06 +0000 (10:28 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 2 Oct 2024 19:38:37 +0000 (13:38 -0600)
commit983fd3d06db68e57a0fc8d6e4a2dffe4c69e9743
treea5003e08b676c68a33196f9070285a7467392375
parent7bc5f66f55fd1a3106e8e6beb91949e0c34fc7b1
spi: davinci: Drop the preload of TX buffer before read/writes operations

A write to the TX buffer is performed before entering the loop to "avoid
clock starvation". This sometimes results in subsequent writes in
davinci_spi_xfer_data() to occur while the TXFULL bit is asserted,
leading to write failures.

Remove the preload of the TX buffer.

Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
drivers/spi/davinci_spi.c