]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mtd: rawnand: davinci: Reduce polling interval in NAND_OP_WAITRDY_INSTR
authorBastien Curutchet <bastien.curutchet@bootlin.com>
Fri, 3 Jan 2025 08:13:49 +0000 (09:13 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 8 Jan 2025 18:26:48 +0000 (19:26 +0100)
commit6df2d9553e168fe32dd49873dd254a63ca913307
tree34bc5904682bea712a1c054a410340bdcd17344d
parentb9371866799d67a80be0ea9e01bd41987db22f26
mtd: rawnand: davinci: Reduce polling interval in NAND_OP_WAITRDY_INSTR

For each NAND_OP_WAITRDY_INSTR operation, the NANDFSR register is
polled only once every 100 us to check for the EMA_WAIT pin. This
isn't frequent enough and causes delays in NAND accesses.

Set the polling interval to 5 us. It increases the page read speed
reported by flash_speed by ~30% (~10% on page writes).

Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/davinci_nand.c