From: Uwe Kleine-König Date: Tue, 10 Feb 2015 18:59:57 +0000 (+0100) Subject: mtd: mxc-nand: Do the word to byte mangling in the read_byte callback X-Git-Tag: omap-for-v4.1/fixes-rc1~47^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f410690f511f9531fdc0865a931522b049d7b29;p=pandora-kernel.git 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 Signed-off-by: Brian Norris --- Reading git-diff-tree failed