]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: onfi: Drop a useless parameter page read
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 28 Apr 2020 09:43:00 +0000 (11:43 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 11 May 2020 07:51:40 +0000 (09:51 +0200)
commit315a249724954e4f6657c1f82fb3ff2483d897a8
tree5d2442bfa3863bc1de50dfee8ae3b90f984cee1b
parent45713f05482e2d4364931f05bb80fe1b393d9705
mtd: rawnand: onfi: Drop a useless parameter page read

During detection the logic on the NAND bus is:

    /* Regular ONFI detection */
    1/ read the three NAND parameter pages

    /* Extended parameter page detection */
    2/ send "read the NAND parameter page" commands without reading
       actual data
    3/ move the column pointer to the extended page and read it

If fact, as long as there is nothing happening on the NAND bus between
1/ and 3/, the operation 2/ is redundant so remove it.

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