spi-nor: aspeed: add support for the 4B opcodes
Status from this message: Applied to dev-5.0.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | mtd: spi-nor: aspeed: introduce a aspeed_smc_default_read() helperdrivers/ | +12 | 3 replies | |
| 2/4 | mtd: spi-nor: aspeed: clarify 4BYTE address mode maskdrivers/ | +9 | 4 replies | |
| 3/4 | mtd: spi-nor: aspeed: use memcpy_fromio() to capture the optimization bufferdrivers/ | +2 | 9 replies | |
| 4/4 | mtd: spi-nor: aspeed: add support for the 4B opcodesdrivers/ | +9 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH dev-5.0 0/4] spi-nor: aspeed: add support for the 4B opcodes
Here is a little series providing cleanups on the Aspeed SMC Controller driver and adding support for the 4B opcodes which were recently added to the Linux kernels 5.0.x.
The use of the 4B opcodes was breaking the read of the golden buffer done at slow speed in the optimization read sequence. The code assumed that the chip was in 4B address mode, as if a EN4B opcode had been sent, but this is not the case anymore with 4B opcodes. The golden buffer is now read with a SPINOR_OP_READ_4B (0x13) when the chip supports 4B opcodes.
It should fix accesses to the palmetto PNOR and the Witherspoon BMC flash modules.
*Please test !*
Thanks,
C.
Cédric Le Goater (4):
mtd: spi-nor: aspeed: introduce a aspeed_smc_default_read() helper
mtd: spi-nor: aspeed: clarify 4BYTE address mode mask
mtd: spi-nor: aspeed: use memcpy_fromio() to capture the optimization
buffer
mtd: spi-nor: aspeed: add support for the 4B opcodes
drivers/mtd/spi-nor/aspeed-smc.c | 40 +++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 11 deletions(-)
Signature · 1 line
2.20.1