projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23a70bf
)
sf: kick watchdog when polling
author
Patrick Sestier
<psestier@mircom.com>
Fri, 15 Apr 2011 14:25:25 +0000
(14:25 +0000)
committer
Wolfgang Denk
<wd@denx.de>
Wed, 1 Jun 2011 20:21:42 +0000
(22:21 +0200)
The status polling can take a while, so make sure we kick the
watchdog after each successful poll.
Signed-off-by: Patrick Sestier <psestier@mircom.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
drivers/mtd/spi/spi_flash.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/spi/spi_flash.c
b/drivers/mtd/spi/spi_flash.c
index
c75b716
..
016b586
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;