[U-Boot] [PATCH v5 10/15] usb: ohci: Do not resubmit and leak urbs for interrupt packets

Simon Glass sjg at chromium.org
Tue May 12 00:37:24 CEST 2015


On 10 May 2015 at 06:10, Hans de Goede <hdegoede at redhat.com> wrote:
> The u-boot usb code uses polling for all endpoints, including interrupt
> endpoints, so urbs should never be automatically resubmitted.
>
> This also fixes a leak of the urb, as submit_int_msg() did not check if
> an already re-submitted urb exists before creating a new one.
>
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> Acked-by: Marek Vasut <marex at denx.de>
> ---
>  drivers/usb/host/ohci-hcd.c | 41 ++---------------------------------------
>  1 file changed, 2 insertions(+), 39 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list