spi: dw: Add support for DUAL/QUAD/OCTAL modes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest posting 6/60 of 10 patches 0 repliesNew
- v2 posting 5/60 of 10 patches 0 repliesSuperseded
- v2 posting 4/610 patches 0 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 posting 3/6 | 0 of 14 patches | 0 replies | Superseded | |
| v2 posting 2/6 | 0 of 14 patches | 0 replies | Superseded | |
| v2 posting 1/6 | 14 patches | 0 replies | Superseded | |
| v1 | 14 patches | 0 replies | Superseded |
Patches in v2 posting 6/6 No applies recorded yet
None of the 10 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/10] spi: dw: Add support for DUAL/QUAD/OCTAL modes
Quoted 44 lines · Jagan Teki
Quoted 33 lines · Sean Anderson
Quoted 31 lines · Sean Anderson
This series adds support for enhanced SPI modes. It was tested on a K210 (DWC SSI with QSPI flash).
If anyone has a designware device with QSPI flash attached (especially a DW SSI APB device), I'd greatly appreciate them testing out this patch series. Given that there has been no testing of v2 over the past month, I don't think lack of testing should hold up this series.
Changes in v3:
- Dropped merged patches
- Rebased on u-boot/masterChanges in v2:
- Add more information toexec_opdebug message
- Actually mask interrupts
- Merge CAP_{DUAL,QUAD,OCTAL} intoCAP_ENHANCED
- Fix some inconsistencies in register naming and usage
- Moved some hunks between commits so things make more senseSean Anderson (10):
mtd: spi-mem: Exportspi_mem_default_supports_op
spi: spi-mem: Add debug message for spi-mem ops
spi: dw: Log status register on timeout
spi: dw: Actually mask interrupts
spi: dw: Switch to capabilities
spi: dw: Rewritepoll_transferlogic
spi: dw: Add ENHANCED cap
spi: dw: Define registers for enhanced mode
spi: dw: Support enhanced SPI
spi: dw: Support clock stretchingQuoted 7 lines
Quoted 5 lines
drivers/spi/designware_spi.c | 647 ++++++++++++++++++++++++----------- drivers/spi/spi-mem.c | 7 + include/spi-mem.h | 3 + 3 files changed, 451 insertions(+), 206 deletions(-)Looks like I forgot to bump the version. This should be v3. I can resend if necessary.
Yes, Please.
Quoted 7 lines
There are few comments,
1. Patch "spi: spi-mem: Add debug message for spi-mem ops"
As we discussed in the previous version, drop the unnecessary debug statements after ops execution as this patch trying to add more verbose to before ops execution.
From last time:
Quoted 11 lines
Quoted 10 lines
Review
Quoted 6 lines
(quoted diff) +6
-0+ dev_dbg(slave->dev, + "exec %02Xh %u-%u-%u addr=%llx dummy cycles=%u data bytes=%u\n", + op->cmd.opcode, op->cmd.buswidth, op->addr.buswidth, + op->data.buswidth, op->addr.val, + op->dummy.buswidth ? op->dummy.nbytes * 8 / op->dummy.buswidth : 0, + op->data.nbytes);This looks unnecessary to me, we have debug prints at the end of the function, which indeed sufficient.
Quoted 6 lines
This is insufficient. First, that information is printed after the op is executed. This is too late if one is trying to debug (e.g.) a hang in the spi driver. It's also missing opcode, widths, address, and dummy bytes. The only duplicated info here is nbytes. Since this is debugging information, I think we should print what is most useful for people debugging this subsystem.
I would like if you could respond to my response before I remove this.
Quoted 2 lines
2. Comments in Patch v2,06/10
I will look into that before resending.
--Sean
Quoted 3 lines
Jagan.