Skip to content

spi: cadence_qspi: Fixes for DTR ops and improve STIG support

Dhruva Gole u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v12 patches 2 repliesSuperseded

Changelog from the cover letter

* Preserve Apurva's authorship
* Split the cmdctrl reg clearing patch into a seperate one
* Address few other comments from Pratyush on the previous series

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3spi: cadence-quadspi: Fix check condition for DTR opsdrivers/spi/cadence_qspi.c drivers/spi/cadence_qspi_apb.c+19 -30 replies
2/3spi: cadence-quadspi: Use STIG mode for all ops with small payloaddrivers/spi/cadence_qspi.c drivers/spi/cadence_qspi_apb.c+24 -230 replies
3/3spi: cadence-quadspi: Reset CMD_CTRL Reg on cmd r/w completiondrivers/spi/cadence_qspi_apb.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH V2 0/3] spi: cadence_qspi: Fixes for DTR ops and improve STIG support

This series aims to address some critical bugs in the cadence qspi driver like the need to Flush the CMDCTRL reg after the execution due to a hardware limitation and also fixes the check conditions for DTR ops.

previously posted:
https://lore.kernel.org/u-boot/[email protected]/

Changelog:
* Preserve Apurva's authorship
* Split the cmdctrl reg clearing patch into a seperate one
* Address few other comments from Pratyush on the previous series

Logs (on AM62x SK EVM):

...
U-Boot 2023.04-rc5-00589-g1a9171bfbc66 (Apr 12 2023 - 16:16:19 +0530)

SoC:   AM62X SR1.0 HS-FS
Model: Texas Instruments AM625 SK
DRAM:  2 GiB
Core:  50 devices, 20 uclasses, devicetree: separate
MMC:   mmc@fa10000: 0, mmc@fa00000: 1, mmc@fa20000: 2
Loading Environment from nowhere... OK
In:    serial@2800000
Out:   serial@2800000
Err:   serial@2800000
Net:   eth0: ethernet@8000000port@1
Hit any key to stop autoboot:  0

=>
=> sf probe
SF: Detected s28hs512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB => random $loadaddr 0x200000
2097152 bytes filled with random data
=> sf update $loadaddr 0x0 0x200000
device 0 offset 0x0, size 0x200000
2097152 bytes written, 0 bytes skipped in 13.365s, speed 160643 B/s => sf read 0x90000000 0x0 0x200000
device 0 offset 0x0, size 0x200000
SF: 2097152 bytes @ 0x0 Read: OK
=> cmp.b $loadaddr 0x90000000 0x200000
Total of 2097152 byte(s) were the same

local git log:
...
1a9171bfbc66 (HEAD -> next) spi: cadence-quadspi: Reset CMD_CTRL Reg on cmd r/w completion f60c2702c9df spi: cadence-quadspi: Use STIG mode for all ops with small payload f84f1b610f90 spi: cadence-quadspi: Fix check condition for DTR ops a25dcda452bf (origin/next) Revert "disk: Use a helper function to reduce duplication"
...

Apurva Nandan (2):
spi: cadence-quadspi: Fix check condition for DTR ops
spi: cadence-quadspi: Use STIG mode for all ops with small payload

Dhruva Gole (1):
spi: cadence-quadspi: Reset CMD_CTRL Reg on cmd r/w completion

 drivers/spi/cadence_qspi.c     | 16 +++++++---
 drivers/spi/cadence_qspi_apb.c | 56 +++++++++++++++++++++-------------
 2 files changed, 46 insertions(+), 26 deletions(-)
Signature · 1 line
2.25.1