On Sat, 2002-10-26 at 00:06, Duncan Sands wrote:
> +     status = inw(io_addr + USBCMD);
> +     outw(status & ~USBCMD_RS, io_addr + USBCMD);
> +
> +     /* Wait for the current transaction to finish */
> +     status = inw(io_addr + USBSTS);
> +     while (!(status & USBSTS_HCH))
> +             status = inw(io_addr + USBSTS);
> +
>       outw(USBCMD_EGSM, io_addr + USBCMD);

These loops need timeouts. Suppose I unplugged the USB controller on my
cardbus at that moment ?




-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to