]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: Add WATCHDOG_RESET call to polling loop
authorStefan Roese <sr@denx.de>
Fri, 26 Nov 2010 14:43:28 +0000 (15:43 +0100)
committerRemy Bohmer <linux@bohmer.net>
Fri, 26 Nov 2010 20:21:50 +0000 (21:21 +0100)
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 <sr@denx.de>
Cc: Remy Bohmer <linux@bohmer.net>
drivers/usb/host/ehci-hcd.c

index c7fba104899fe336a160b68f2a837c9cb35b11f0..c7de6f0544a4005760a09a1715a7e9f7cb219b5e 100644 (file)
@@ -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. */