[PATCH] mtd/nand: don't use {read,write}_buf for 8-bit transfers
Huang Shijie
b32955 at freescale.com
Wed Feb 27 21:47:43 EST 2013
于 2013年02月27日 23:10, Uwe Kleine-König 写道:
> According to the Open NAND Flash Interface Specification (ONFI) Revision
> 3.1 "Parameters are always transferred on the lower 8-bits of the data
> bus." for the Get Features and Set Features commands.
>
yes. the set/get features should works in 8-bit.
I have never met a 16-bit onfi nand yet. :)
> So using read_buf and write_buf is wrong for 16-bit wide nand chips as
> they use I/O[15:0]. The Get Features command is easily fixed using 4
> times the read_byte callback. For Set Features error out as there is no
yes. for get features, it's easy to fix it.
> write_byte callback.
Most of the time, the nand controller will overwrite the write_buf hook...
I also think we need a write_byte callback.
thanks
Huang Shijie
More information about the linux-mtd
mailing list