]> git.baikalelectronics.ru Git - kernel.git/commit
[MTD] Fix fwh_lock locking
authorShashi Rao <shashi@sun.com>
Wed, 28 Mar 2007 22:56:28 +0000 (15:56 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 17 Apr 2007 18:11:20 +0000 (14:11 -0400)
commitfa6756f57555048515ebad2788ed9d6fc428a970
tree78ae9a2f10daa5e21c1761039146dffad1377a09
parentce3c2951bb176d8e4465cb432519937121296a9c
[MTD] Fix fwh_lock locking

This is on a custom board with a mapping driver access to an ST
M50LPW080 chip. This chip is probed successfully with
do_map_probe("jedec_probe",...). If I use the mtdchar interface to
perform unlock->erase->program->lock on any of the 16 eraseblocks in the
chip, the chip is left in FL_STATUS mode while the data structures
believe that the chip is in FL_READY mode. Hence, any subsequent reads
to any flash byte results in 0x80 being read.

Signed-off-by: Shashi Rao <shashi@sun.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/chips/fwh_lock.h