[U-Boot] [PATCH] USB-CDC: called handle_interrupts inside usb_eth_send

Remy Bohmer linux at bohmer.net
Thu Aug 12 00:28:17 CEST 2010


Hi Stefano,

2010/8/11 Stefano Babic <sbabic at denx.de>:
> The patch removes an endless loop  in the usb_eth_send
> if the tx_complete is not called before going
> in the loop. The driver interrupt routine is called
> allowing the driver to check if the TX is completed.
>
> Signed-off-by: Stefano Babic <sbabic at denx.de>
> ---
>  drivers/usb/gadget/ether.c |   10 +++++++++-
>  1 files changed, 9 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
> index 1481d76..9eb43d7 100644
> --- a/drivers/usb/gadget/ether.c
> +++ b/drivers/usb/gadget/ether.c
> +       ts = get_timer(0);

> +       packet_sent=0;
This line breaks the at91sam9261 code. Can you please fix this?

Rest of the patches do not seem to break anything and look okay to me.
Thanks.

Kind regards,

Remy


More information about the U-Boot mailing list