Re: [PATCH 60/62] usb: dwc3: gadget: disable XFER_NOT_READY

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

 



On 5/30/2016 4:46 AM, Felipe Balbi wrote:
> We don't need this IRQ anymore.
> 
> Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx>
> ---
>  drivers/usb/dwc3/gadget.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
> index 7a0c787cecdd..613dde9fb538 100644
> --- a/drivers/usb/dwc3/gadget.c
> +++ b/drivers/usb/dwc3/gadget.c
> @@ -463,8 +463,10 @@ static int dwc3_gadget_set_ep_config(struct dwc3 *dwc, struct dwc3_ep *dep,
>  		params.param2 |= dep->saved_state;
>  	}
>  
> -	params.param1 = DWC3_DEPCFG_XFER_COMPLETE_EN
> -		| DWC3_DEPCFG_XFER_NOT_READY_EN;
> +	params.param1 = DWC3_DEPCFG_XFER_COMPLETE_EN;
> +
> +	if (dep->number <= 1)
> +		params.param1 |= DWC3_DEPCFG_XFER_NOT_READY_EN;
>  
>  	if (usb_ss_max_streams(comp_desc) && usb_endpoint_xfer_bulk(desc)) {
>  		params.param1 |= DWC3_DEPCFG_STREAM_CAPABLE
> 

Still needed for ISOC too.

John

--
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