Sorry, just #6650 is effected.

On Wed, Jun 22, 2011 at 6:10 PM, Bob Liu <[email protected]> wrote:
> commit:
> http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=53a31d1cabd700ab7605363069f3a8aaad330a2e
> branch:
> http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/trunk
>
> Commit 2edb11cbac fixed req->length in composite_setup() but which will
> cause all g_zero test failed like:
> root#> ./testusb -D /proc/bus/usb/002/021 -t14 -c 15000 -s 256 -v 1
> unknown speed   /proc/bus/usb/002/021
> /proc/bus/usb/002/021 test 14 --> 32 (Broken pipe)
>
> This patch fix req->length in sourcesink_setup() to fix those failure.
>
> Signed-off-by: Bob Liu <[email protected]>
> ---
>  drivers/usb/gadget/f_sourcesink.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/usb/gadget/f_sourcesink.c
> b/drivers/usb/gadget/f_sourcesink.c
> index e403a53..c98365a 100644
> --- a/drivers/usb/gadget/f_sourcesink.c
> +++ b/drivers/usb/gadget/f_sourcesink.c
> @@ -435,6 +435,8 @@ static int sourcesink_setup(struct usb_configuration *c,
>       u16                     w_value = le16_to_cpu(ctrl->wValue);
>       u16                     w_length = le16_to_cpu(ctrl->wLength);
>
> +     req->length = USB_BUFSIZ;
> +
>       /* composite driver infrastructure handles everything except
>        * the two control test requests.
>        */
>

-- 
Regards,
--Bob
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to