Files
twx-linux/include/linux
Brian Norris 3dad2344e9 mtd: nand: force NAND_CMD_READID onto 8-bit bus
The NAND command helpers tend to automatically shift the column address
for x16 bus devices, since most commands expect a word address, not a
byte address. The Read ID command, however, expects an 8-bit address
(i.e., 0x00, 0x20, or 0x40 should not be translated to 0x00, 0x10, or
0x20).

This fixes the column address for a few drivers which imitate the
nand_base defaults. Note that I don't touch sh_flctl.c, since it already
handles this problem slightly differently (note its comment "READID is
always performed using an 8-bit bus").

I have not tested this patch, as I only have x8 parts up for testing at
this point. Hopefully that can change soon...

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Tested-By: Pekon Gupta <pekon@ti.com>
2014-03-10 22:42:22 -07:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-10-08 13:50:20 +10:30
…
…
…
…
…
…
2012-12-02 00:05:12 +00:00
…
…
2009-04-01 08:59:23 -07:00
…
…
2013-11-08 08:59:44 -07:00
…
…
2011-08-03 11:30:42 -04:00
…
2008-06-06 11:29:10 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-11-15 09:32:21 +09:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-02-13 10:08:52 +05:30
2007-02-09 17:39:36 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-03-04 07:55:47 -08:00
…
…
…
…
…
…
2014-01-26 22:48:35 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-05-31 17:49:32 -07:00
…
…
…
2014-02-25 07:37:52 -08:00
…
…
…
2014-01-25 08:55:09 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-12-19 10:17:11 -07:00
…
…
…
…
…
…
…
…
…
…
…
2014-01-27 21:02:39 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-01-25 03:14:05 -05:00
…
…
…
…
…
…
2014-01-27 19:27:53 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2010-02-10 17:47:17 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-01-28 13:20:09 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-01-27 21:02:39 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-08-21 16:28:31 +02:00
…
…
2010-11-29 08:55:25 +11:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-01-30 16:56:55 -08:00
…