Skip to content

spi: cqspi: Fix register reads in STIG Mode

Dhruva Gole u-boot 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 1 replyIn review
  2. v32 patches 5 repliesSuperseded
  3. v22 patches 1 replySuperseded

Changes in v4 from the cover letter

* Improve the commit message for PATCH 2/2
* Address Pratyush's review to use <= CQSPI_STIG_DATA_LEN_MAX instead.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2spi: cadence_qspi: setup ADDR Bits in cmd readsdrivers/spi/cadence_qspi_apb.c+13 -00 replies
2/2spi: cadence_qspi: use STIG mode for small readsdrivers/spi/cadence_qspi.c+7 -10 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchPratyush YadavVaishnav Achath
1/2R-b
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH V4 0/2] spi: cqspi: Fix register reads in STIG Mode

Intent of these patches is to fix register reads in STIG mode and also use STIG mode while reading flash registers.
Currently if you try to read a register while in STIG mode there is no support for ADDR and thus naturally a register never gets read from the flash.

This series supercedes the previously sent:
https://lore.kernel.org/u-boot/[email protected]/

Logs demonstrating the usage and working of QSPI-NOR Flash (Cypress s25hs512t) can be found on the link below:
https://gist.github.com/DhruvaG2000/11e7b4ee6a381be9d86b69b2bc2616e4

change log:
----------

v4:
* Improve the commit message for PATCH 2/2
* Address Pratyush's review to use <= CQSPI_STIG_DATA_LEN_MAX instead.

v3: Improvements over the last 2 versions, I have added a bit mask to make sure nbytes dont overflow bit fields. Also minor improvements in wording of comments and commit log.

v2: add the setup ADDR bits patch because STIG read of registers wasn't present earlier.

v1: use STIG mode if reads are small.

Dhruva Gole (2):
spi: cadence_qspi: setup ADDR Bits in cmd reads
spi: cadence_qspi: use STIG mode for small reads

 drivers/spi/cadence_qspi.c     |  8 +++++++-
 drivers/spi/cadence_qspi_apb.c | 13 +++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)
Signature · 1 line
2.25.1