projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sf: kick watchdog when polling
[oweals/u-boot.git]
/
drivers
/
mtd
/
spi
/
spi_flash.c
diff --git
a/drivers/mtd/spi/spi_flash.c
b/drivers/mtd/spi/spi_flash.c
index c75b716fd43b6f984769348e4d95873d36030c6d..016b5865c2373a0144749e2bfffae71f527bfad0 100644
(file)
--- a/
drivers/mtd/spi/spi_flash.c
+++ b/
drivers/mtd/spi/spi_flash.c
@@
-11,6
+11,7
@@
#include <malloc.h>
#include <spi.h>
#include <spi_flash.h>
+#include <watchdog.h>
#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;