if (state != FL_READING)
cond_resched();
- touch_softlockup_watchdog();
}
/* To get correct interrupt status in timeout case */
interrupt = this->read_word(this->base + ONENAND_REG_INTERRUPT);
{
struct onenand_chip *this = mtd->priv;
- /* To prevent soft lockup */
- touch_softlockup_watchdog();
-
wait_for_completion(&this->complete);
return onenand_wait(mtd, state);
/* We use interrupt wait first */
this->wait = onenand_interrupt_wait;
- /* To prevent soft lockup */
- touch_softlockup_watchdog();
-
timeout = msecs_to_jiffies(100);
remain = wait_for_completion_timeout(&this->complete, timeout);
if (!remain) {
stats = mtd->ecc_stats;
while (read < len) {
+ cond_resched();
+
thislen = min_t(int, mtd->writesize, len - read);
column = from & (mtd->writesize - 1);
column = from & (mtd->oobsize - 1);
while (read < len) {
+ cond_resched();
+
thislen = mtd->oobsize - column;
thislen = min_t(int, thislen, len);
int thislen = min_t(int, bytes, len - written);
u_char *wbuf = (u_char *) buf;
+ cond_resched();
+
this->command(mtd, ONENAND_CMD_BUFFERRAM, to, bytes);
/* Partial page write */
while (written < len) {
int thislen = min_t(int, mtd->oobsize, len - written);
+ cond_resched();
+
column = to & (mtd->oobsize - 1);
this->command(mtd, ONENAND_CMD_BUFFERRAM, to, mtd->oobsize);
instr->state = MTD_ERASING;
while (len) {
+ cond_resched();
/* Check if we have a bad block, we do not erase bad blocks */
if (onenand_block_checkbad(mtd, addr, 0, 0)) {