From: Patrick Sestier Date: Fri, 15 Apr 2011 14:25:25 +0000 (+0000) Subject: sf: kick watchdog when polling X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=bd0d19cc5f346ff6504d47497ec799e066168b96;p=u-boot.git sf: kick watchdog when polling The status polling can take a while, so make sure we kick the watchdog after each successful poll. Signed-off-by: Patrick Sestier Signed-off-by: Mike Frysinger --- diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index c75b716fd4..016b5865c2 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -11,6 +11,7 @@ #include #include #include +#include #include "spi_flash_internal.h" @@ -105,6 +106,8 @@ int spi_flash_cmd_poll_bit(struct spi_flash *flash, unsigned long timeout, timebase = get_timer(0); do { + WATCHDOG_RESET(); + ret = spi_xfer(spi, 8, NULL, &status, 0); if (ret) return -1;