mtd: nand: don't use read_buf for 8-bit ONFI transfers
authorBrian Norris <computersforpeace@gmail.com>
Sat, 30 Nov 2013 06:04:28 +0000 (22:04 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 11 Mar 2014 05:42:23 +0000 (22:42 -0700)
commitbd9c6e99b58255b9de1982711ac9487c9a2f18be
treeb0c1ff4a9640b513b6a871679feb5c3ba55292c0
parent3dad2344e92c6e1aeae42df1c4824f307c51bcc7
mtd: nand: don't use read_buf for 8-bit ONFI transfers

Use a repeated read_byte() instead of read_buf(), since for x16 buswidth
devices, we need to avoid the upper I/O[16:9] bits. See the following
commit for reference:

commit 05f7835975dad6b3b517f9e23415985e648fb875
Author: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Date:   Thu Dec 5 22:22:04 2013 +0100

    mtd: nand: don't use {read,write}_buf for 8-bit transfers

Now, I think that all barriers to probing ONFI on x16 devices are
removed, so remove the check from nand_flash_detect_onfi().

Tested on 8-bit ONFI NAND (Micron MT29F32G08CBADAWP).

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Tested-By: Pekon Gupta <pekon@ti.com>
drivers/mtd/nand/nand_base.c