/* Latency issues. Drop the lock, wait a while and retry */
UDELAY(map, chip, adr, 1);
/* Latency issues. Drop the lock, wait a while and retry */
UDELAY(map, chip, adr, 1);
/*
* Handle devices with one erase region, that only implement
* the chip erase command.
/*
* Handle devices with one erase region, that only implement
* the chip erase command.
if (time_after(jiffies, timeo)) {
printk(KERN_WARNING "MTD %s(): software timeout\n",
if (time_after(jiffies, timeo)) {
printk(KERN_WARNING "MTD %s(): software timeout\n",
chip->state = FL_READY;
xip_enable(map, chip, adr);
put_chip(map, chip, adr);
chip->state = FL_READY;
xip_enable(map, chip, adr);
put_chip(map, chip, adr);