]> bbs.cooldavid.org Git - net-next-2.6.git/commit
mtd: denali: update get nand para functions
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Thu, 5 Aug 2010 16:48:49 +0000 (00:48 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 5 Aug 2010 17:13:12 +0000 (18:13 +0100)
commitef41e1bb11fc21acad35c8c3b673fe9f2f29d819
tree404b6e50710d3d2d7796eb1854aee0f0547c12ae
parenteda936ef17b921e56239ab4db2027d76abf8bebc
mtd: denali: update get nand para functions

In denali driver, wTotalBlocks variable is useless, so just
remove them in get_toshiba_nand_para and get_hynix_nand_para
first. Other wTotalBlocks in denali.c and other variables in
dev_info struct are also useless, will remove them later.

Also add a parameter in get_hynix_nand_para to prepare to
remove dev_info struct. This parameter comes by reading NAND
ID directly. Reading register will report wrong value for
some NAND chips, e.g. some Micron MT29F32G08QAA chips.
So update NAND_CMD_READID method as well.

Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/denali.c