Message ID | 1302923589-19226-1-git-send-email-vapier@gentoo.org |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c index 4aaa88f..abe2571 100644 --- a/drivers/mtd/chips/cfi_cmdset_0001.c +++ b/drivers/mtd/chips/cfi_cmdset_0001.c @@ -2089,6 +2089,11 @@ static int __xipram do_xxlock_oneblock(struct map_info *map, struct flchip *chip goto out; } + if (chip->state == FL_STATUS) { + /* it goes ok, put chip into array mode */ + map_write(map, CMD(0xff), adr); + chip->state = FL_READY; + } xip_enable(map, chip, adr); out: put_chip(map, chip, adr); mutex_unlock(&chip->mutex);