From 62b8f54877665e8f99ed1f0b9bb3d4e21e31ef41 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Fri, 2 Jun 2006 11:46:20 +0200 Subject: Fix watchdog handling in CFI flash driver Just use udelay() when waiting for status changes which will implicitely trigger the watchdog. --- drivers/cfi_flash.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'drivers') diff --git a/drivers/cfi_flash.c b/drivers/cfi_flash.c index 3717237..fd0a186 100644 --- a/drivers/cfi_flash.c +++ b/drivers/cfi_flash.c @@ -45,7 +45,6 @@ /* #define DEBUG */ #include -#include #include #include #include @@ -794,6 +793,7 @@ static int flash_status_check (flash_info_t * info, flash_sect_t sector, flash_write_cmd (info, sector, 0, info->cmd_reset); return ERR_TIMOUT; } + udelay (1); /* also triggers watchdog */ } return ERR_OK; } @@ -1308,10 +1308,6 @@ static int flash_write_cfiword (flash_info_t * info, ulong dest, if (flag) enable_interrupts (); -#if defined(CONFIG_MCF52x2) - WATCHDOG_RESET(); -#endif - return flash_full_status_check (info, find_sector (info, dest), info->write_tout, "write"); } -- cgit v1.1