[PATCH v2 0/3] Fixes for SPI-NAND issues on LS1088A

Mathew McBride matt at traverse.com.au
Mon Jan 25 04:55:19 CET 2021


This patchset resolves issues seen when using SPI-NAND with the
LS1088A's qspi controller.

The main issue seen is data corruption when reading SPI-NAND, due to a
controller quirk not being applied.
Using the same settings as the LS2088A (the bigger brother of LS1088A) solves this issue.

In the course of debugging the above issue, it was found that the fsl_qspi
driver was not correctly reporting the operation width (single/dual/quad)
configured for the device in DTS.
(e.g I configured my device for single-lane reads only but quad operations were being issued)

A fix for this issue is already present in Linux and can be adapted for U-Boot,
providing a missing declaration for spi_mem_default_supports_op is added.

Changes in v2:
* Correct addition of declration for spi_mem_default_supports_op
The previous patch attempted to mirror how it was added to the Linux
kernel, which is not relevant to U-Boot

Mathew McBride (3):
  mem: spi-mem: add declaration for spi_mem_default_supports_op
  spi: fsl_qspi: Ensure width is respected in spi-mem operations
  spi: fsl_qspi: apply the same settings for LS1088 as LS208x

 drivers/spi/fsl_qspi.c | 12 ++----------
 include/spi-mem.h      |  3 +++
 2 files changed, 5 insertions(+), 10 deletions(-)

-- 
2.30.0



More information about the U-Boot mailing list