Skip to content

spi-nor: aspeed: add support for the 4B opcodes

Cédric Le Goater openbmc 1 version Applied

Status from this message: Applied to dev-5.0.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 19 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4mtd: spi-nor: aspeed: introduce a aspeed_smc_default_read() helperdrivers/mtd/spi-nor/aspeed-smc.c+12 -73 replies
2/4mtd: spi-nor: aspeed: clarify 4BYTE address mode maskdrivers/mtd/spi-nor/aspeed-smc.c+9 -14 replies
3/4mtd: spi-nor: aspeed: use memcpy_fromio() to capture the optimization bufferdrivers/mtd/spi-nor/aspeed-smc.c+2 -49 replies
4/4mtd: spi-nor: aspeed: add support for the 4B opcodesdrivers/mtd/spi-nor/aspeed-smc.c+9 -21 reply

Reviews trailers per patch

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

Read the v1 thread

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