]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: mxc-nand: Only enable hardware checksumming for fully detected flashes
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 10 Feb 2015 18:59:56 +0000 (19:59 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Mar 2015 22:20:19 +0000 (15:20 -0700)
commit7e0ffbd932c5459b0aadf0d7ad8ad09e6093637b
tree07f8c0dcd92dec8fb60963890e55a354e46b0dfb
parentae50839ca990e295a0eaf71939e92311ae71877a
mtd: mxc-nand: Only enable hardware checksumming for fully detected flashes

At least on i.MX25 (i.e. NFCv2) preset_v2 is called with mtd->writesize
== 0 that is before the connect flash chip is detected. It then
configures for 8 bit ECC mode which needs 26 bytes of OOB per 512 bytes
main section. For flashes with a smaller OOB area issuing a read page
command makes the controller stuck with this config.

Note that this currently doesn't hurt because the first read page
command is issued only after detection is complete and preset is called
once more.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/mxc_nand.c