Re: [PATCH] usb: dwc3: gadget: add support for Bursts

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

 



Hi,

On Thu, Sep 29, 2011 at 12:59:20PM +0300, Felipe Balbi wrote:
> We already have the value from gadget drivers,
> just need to pass it to our controller.
> 
> Signed-off-by: Felipe Balbi <balbi@xxxxxx>
> ---
> 
> Still missing stream functionality, will come in a
> later patch.
> 
>  drivers/usb/dwc3/gadget.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
> index 179fb2a..54cbef2 100644
> --- a/drivers/usb/dwc3/gadget.c
> +++ b/drivers/usb/dwc3/gadget.c
> @@ -259,6 +259,7 @@ static int dwc3_gadget_set_ep_config(struct dwc3 *dwc, struct dwc3_ep *dep,
>  
>  	params.param0.depcfg.ep_type = usb_endpoint_type(desc);
>  	params.param0.depcfg.max_packet_size = usb_endpoint_maxp(desc);
> +	params.param0.depcfg.burst_size = dep->endpoint.maxburst - 1;

this minus 1 is wrong, gadget driver already gives me Burts - 1 value.
Fixed and pushed to for-next-test

-- 
balbi

Attachment: signature.asc
Description: Digital signature


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

  Powered by Linux