Re: [PATCH v3 4/8] usb: chipidea: udc: bypass otg status selector request handling to gadget driver

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

 



On Tue, Mar 17, 2015 at 10:37:48PM +0800, Li Jun wrote:
> Since gadget driver will handle this request, so controller driver bypass it.
> 
> Signed-off-by: Li Jun <jun.li@xxxxxxxxxxxxx>
> ---
>  drivers/usb/chipidea/udc.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c
> index 4254792..a65cdaf 100644
> --- a/drivers/usb/chipidea/udc.c
> +++ b/drivers/usb/chipidea/udc.c
> @@ -1014,7 +1014,8 @@ __acquires(ci->lock)
>  		}
>  		break;
>  	case USB_REQ_GET_STATUS:
> -		if (type != (USB_DIR_IN|USB_RECIP_DEVICE)   &&
> +		if ((type != (USB_DIR_IN|USB_RECIP_DEVICE) ||
> +			le16_to_cpu(req.wIndex) == OTG_STS_SELECTOR) &&
>  		    type != (USB_DIR_IN|USB_RECIP_ENDPOINT) &&
>  		    type != (USB_DIR_IN|USB_RECIP_INTERFACE))
>  			goto delegate;
> -- 
> 1.7.9.5
> 

Acked-by: Peter Chen <peter.chen@xxxxxxxxxxxxx>

-- 

Best Regards,
Peter Chen
--
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