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 <sr@denx.de> Cc: Remy Bohmer <linux@bohmer.net>
This commit is contained in:
parent
222d6dff27
commit
67333f76b6
|
@ -25,6 +25,7 @@
|
||||||
#include <usb.h>
|
#include <usb.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
#include <watchdog.h>
|
||||||
|
|
||||||
#include "ehci.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);
|
token = hc32_to_cpu(vtd->qt_token);
|
||||||
if (!(token & 0x80))
|
if (!(token & 0x80))
|
||||||
break;
|
break;
|
||||||
|
WATCHDOG_RESET();
|
||||||
} while (get_timer(ts) < CONFIG_SYS_HZ);
|
} while (get_timer(ts) < CONFIG_SYS_HZ);
|
||||||
|
|
||||||
/* Disable async schedule. */
|
/* Disable async schedule. */
|
||||||
|
|
Loading…
Reference in New Issue