From: Stefan Roese Date: Fri, 26 Nov 2010 14:43:28 +0000 (+0100) Subject: usb: Add WATCHDOG_RESET call to polling loop X-Git-Tag: v2010.12-rc2~41^2^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67333f76b683cb19762c60f180a4e9c592064fc1;p=platform%2Fkernel%2Fu-boot.git 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. Signed-off-by: Stefan Roese Cc: Remy Bohmer --- diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index c7fba10..c7de6f0 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -25,6 +25,7 @@ #include #include #include +#include #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. */