|
@@ -65,11 +65,12 @@ static int fwh_xxlock_oneblock(struct map_info *map, struct flchip *chip,
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
+ chip->oldstate = chip->state;
|
|
|
chip->state = xxlt->state;
|
|
|
map_write(map, CMD(xxlt->val), adr);
|
|
|
|
|
|
/* Done and happy. */
|
|
|
- chip->state = FL_READY;
|
|
|
+ chip->state = chip->oldstate;
|
|
|
put_chip(map, chip, adr);
|
|
|
spin_unlock(chip->mutex);
|
|
|
return 0;
|