nand/denali: change read_status function method
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Wed, 11 Aug 2010 09:14:59 +0000 (17:14 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 12 Aug 2010 10:10:37 +0000 (11:10 +0100)
commitf0bc0c778fe12e43658193fae975fc5762e98773
tree9d387a0de47c05cfef548cdaa149317aeb8ab51c
parentb292c341e2304b1d937843711c63d1e141d7b589
nand/denali: change read_status function method

In mtd->write, Denali controller will use MODE_11 mode to read
NAND flash status, then return back to MODE_1O mode to do page
write.
Here comes a bug for this kind of using, sometimes controller will
not write data to NAND and just return a good interrupt to tell
driver writing work is done. The data in this page is all 0xff and
this page can not be written again. The reason is unknow.

So read Denali controller register WRITE_PROTECT to get NAND status
instead.

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