mtd: nand: raw: atmel: Fix comment in timings preparation
authorAlexander Dahl <ada@thorsis.com>
Mon, 26 Feb 2024 12:25:37 +0000 (13:25 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 14 Mar 2024 23:04:50 +0000 (00:04 +0100)
Looks like a copy'n'paste mistake introduced when initially adding the
dynamic timings feature with commit f9ce2eddf176 ("mtd: nand: atmel: Add
->setup_data_interface() hooks").  The context around this and
especially the code itself suggests 'read' is meant instead of write.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
Reviewed-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240226122537.75097-1-ada@thorsis.com
drivers/mtd/nand/raw/atmel/nand-controller.c

index 4cb478bbee4a480ebb32113c9fe4eb8250101796..dc75d50d52e84e29e55484070d66858bd83aadfa 100644 (file)
@@ -1378,7 +1378,7 @@ static int atmel_smc_nand_prepare_smcconf(struct atmel_nand *nand,
                return ret;
 
        /*
-        * The write cycle timing is directly matching tWC, but is also
+        * The read cycle timing is directly matching tRC, but is also
         * dependent on the setup and hold timings we calculated earlier,
         * which gives:
         *