]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: onfi: Adapt the parameter page read to constraint controllers
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 7 May 2020 10:52:37 +0000 (12:52 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 11 May 2020 07:51:43 +0000 (09:51 +0200)
commit5940125e9a214c1bf572ca14b5f78947a60ffe5e
treed33e664d40cf5fb8effd17edd24c499e8b47731b
parenta825b5b64b5381914b403ac519771d4dbfd08c29
mtd: rawnand: onfi: Adapt the parameter page read to constraint controllers

We already know that there are controllers not able to read the three
copies of the parameter page in one go. The workaround was to first
request the controller to assert command and address cycles on the
NAND bus to trigger a parameter page read, and then do a simple read
operation for each page.

But there are also controllers which are not able to split the
parameter page read between the command/address cycles and the actual
data operation.

Let's use a regular PARAMETER PAGE READ operation for the first
iteration and use either a CHANGE READ COLUMN or a simple DATA READ
operation for the following copies, depending on what the controller
supports. The default behavior for non-exec-op compliant drivers
remains the same: DATA READ.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-mtd/20200507105241.14299-10-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/nand_onfi.c