Re: [PATCH] usb: gadget: obex: select correct ep descriptors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 10 February 2009, Felipe Balbi wrote:
> We where selecting wrong ep descriptors causing
> some troubles while sending files over obex interface.
> 
> The problem was a typo while usb_find_endpoint() was being
> called for HS endpoints.
> 
> Cc: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>

Acked-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>

For 2.6.29-rc ... though I'd call it a cut'n'paste-o.  ;)


> Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxx>
> ---
>  drivers/usb/gadget/f_obex.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/gadget/f_obex.c b/drivers/usb/gadget/f_obex.c
> index 80c2e7e..38aa896 100644
> --- a/drivers/usb/gadget/f_obex.c
> +++ b/drivers/usb/gadget/f_obex.c
> @@ -366,9 +366,9 @@ obex_bind(struct usb_configuration *c, struct usb_function *f)
>  		f->hs_descriptors = usb_copy_descriptors(hs_function);
>  
>  		obex->hs.obex_in = usb_find_endpoint(hs_function,
> -				f->descriptors, &obex_hs_ep_in_desc);
> +				f->hs_descriptors, &obex_hs_ep_in_desc);
>  		obex->hs.obex_out = usb_find_endpoint(hs_function,
> -				f->descriptors, &obex_hs_ep_out_desc);
> +				f->hs_descriptors, &obex_hs_ep_out_desc);
>  	}
>  
>  	/* Avoid letting this gadget enumerate until the userspace
> -- 
> 1.6.1.265.g9a013
> 
> 


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux