]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: nand: raw: atmel: Respect tAR, tCLR in read setup timing
authorAlexander Sverdlin <alexander.sverdlin@siemens.com>
Thu, 21 Aug 2025 12:00:57 +0000 (14:00 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 28 Aug 2025 12:28:13 +0000 (14:28 +0200)
commitfd779eac2d659668be4d3dbdac0710afd5d6db12
tree60da6cd12e013c5db5e93082208769243621e268
parent811c0da4542df3c065f6cb843ced68780e27bb44
mtd: nand: raw: atmel: Respect tAR, tCLR in read setup timing

Having setup time 0 violates tAR, tCLR of some chips, for instance
TOSHIBA TC58NVG2S3ETAI0 cannot be detected successfully (first ID byte
being read duplicated, i.e. 98 98 dc 90 15 76 14 03 instead of
98 dc 90 15 76 ...).

Atmel Application Notes postulated 1 cycle NRD_SETUP without explanation
[1], but it looks more appropriate to just calculate setup time properly.

Link: https://ww1.microchip.com/downloads/aemDocuments/documents/MPU32/ApplicationNotes/ApplicationNotes/doc6255.pdf
Cc: stable@vger.kernel.org
Fixes: f9ce2eddf176 ("mtd: nand: atmel: Add ->setup_data_interface() hooks")
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Tested-by: Alexander Dahl <ada@thorsis.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/atmel/nand-controller.c