mtd: teach mxc-nand about ONFI probing
Get series with b4
b4 am 20150311234249.GE32500@ld-irv-0074Versions newest first
- v1 Latest0 of 6 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 6 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] mtd: teach mxc-nand about ONFI probing
Quoted 16 lines · Uwe Kleine-K?nig
Hello,
this series implements support for ONFI probing in mxc-nand. Before a PARAM command was just ignored and the following
read_bytesread whatever then happened to be available from the controller's RAM. But actually this wasn't that bad because the driver already failed to read the ONFI marker at offset 32 in response to the READID command and so the PARAM command wasn't issued at all :-)Patch 1 is a robustness fix. Patch 2 is necessary to not make the controller stuck when the READPAGE command is issued before the flash chip is identified. Patch 3 is needed to be able to read more than 6 bytes in the
read_bytecallback. Finally patch 4 fixes the driver to allow reading out the READID ONFI marker and patch 5 implements support for the PARAM command.
Quoted 8 lines
Patch 6 implements a WARN that triggers when the core requests an unknown command from the driver. In the case of missing PARAM support it wouldn't have triggered because READID at offset
0x20failed, too, but it might be worthwhile anyhow; I'm not sure though, so I marked it RFC. Not sure the set of commands will grow in the near future ...Best regards
Uwe
Looks OK to me. Pushed all to l2-mtd.git.
Brian