]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: mxc-nand: Do the word to byte mangling in the read_byte callback
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 10 Feb 2015 18:59:57 +0000 (19:59 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Mar 2015 22:20:29 +0000 (15:20 -0700)
commit572eb0224901f84a4debbe87be4edc331b8f60ce
tree85ec5c38dab6ea75421ec1109c3d18a01e6b8dd2
parentb5be5c6646dc24f18d7880a4a38aa650c0b31aa9
mtd: mxc-nand: Do the word to byte mangling in the read_byte callback

When the hardware operates in 16 bit mode it always reads 16 bits even
for operations that only have the lower 8 bits defined. So the upper
bits must be discarded. Do this in the read_byte callback instead of
when reading the NAND id to support reading byte wise more than 5 bytes
and at other occations (like reading the ONFI parameter page).

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