Skip to contentSkip to conversation

usb: Add WATCHDOG_RESET call to polling loop

PATCH New Stefan Roese 2 participants 2 messages Nov 26, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: Add WATCHDOG_RESET call to polling loop

This watchdog reset call is needed here, otherwise the lwmon5 board (PPC440EPx based) will reset upon the "usb reset" command.

---
 drivers/usb/host/ehci-hcd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/usb/host/ehci-hcd.c +2 -0
index 982f96e..b88488e 100644
@@ -25,6 +25,7 @@
 #include <usb.h>
 #include <asm/io.h>
 #include <malloc.h>
+#include <watchdog.h>
 
 #include "ehci.h"
 
@@ -452,6 +453,7 @@ ehci_submit_async(struct usb_device *dev, unsigned long pipe, void *buffer,
 		token = hc32_to_cpu(vtd->qt_token);
 		if (!(token & 0x80))
 			break;
+		WATCHDOG_RESET();
 	} while (get_timer(ts) < CONFIG_SYS_HZ);
 
 	/* Disable async schedule. */
Signature · 1 line
1.7.3.2
#1 lore raw

PATCH 1/1 usb: Add WATCHDOG_RESET call to polling loop

Hi,

2010/11/26 Stefan Roese <[email protected]>:

drivers/usb/host/ehci-hcd.c

Quoted 13 lines

This watchdog reset call is needed here, otherwise the lwmon5 board (PPC440EPx based) will reset upon the "usb reset" command.

---
?drivers/usb/host/ehci-hcd.c | ? ?2 ++
?1 files changed, 2 insertions(+), 0 deletions(-)

drivers/usb/host/ehci-hcd.c +0 -0
index 982f96e..b88488e 100644

Applied to u-boot-usb. Thanks.

Kind regards,

Remy