[PATCH 0/1] spi: fsl_espi: fix din offset

Tomas Alvarez Vanoli tomas.alvarez-vanoli at hitachienergy.com
Tue Mar 24 18:02:11 CET 2026


Hello,

While working on an old T1040-based board, I ran into issues when reading data
with spi_xfer. It seems to me that the driver is copying the data back to the
caller at the wrong addresses. I am not entirely sure what was the intention
with the original code as far as I can tell.

With my suggested change, at least a small tx of 3 bytes works correctly and I
can see the expected data in the buffer.

I've really only tested this with a 2016 version of u-boot but the code has not
changed regarding this since then, and I suspect that there's not a lot of
boards left using this driver to read spi data in u-boot :)

Best regards,
Tomas

Tomas Alvarez Vanoli (1):
  spi: fsl_espi: fix din offset

 drivers/spi/fsl_espi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.47.3



More information about the U-Boot mailing list