]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[MTD] [NAND] nand_base.c: reset chip first
authorKarl Beldan <karl.beldan@gmail.com>
Mon, 15 Sep 2008 12:37:29 +0000 (14:37 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 16 Sep 2008 15:18:12 +0000 (08:18 -0700)
commitef89a8801321e0d0665c327c9d77d602ef764c87
treed28c31ae81490f13df8805bbadbd1dfbbfecc98b
parent8afbc114542a6810b0a2e658abda6e911121cd22
[MTD] [NAND] nand_base.c: reset chip first

Some chips require a RESET after power-up (e.g. Micron MT29FxGxxxxx).
The first command sent is NAND_CMD_READID.
Issue a NAND_CMD_RESET in nand_scan_ident before reading the device id.
Tested with an MT29F4G08AAC.

Signed-off-by: Karl Beldan <karl.beldan@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c