Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6da40af authored by Li Jun's avatar Li Jun Committed by Felipe Balbi
Browse files

usb: chipidea: udc: bypass otg status selector handling to gadget driver



Since gadget driver will handle this request, so controller driver bypass
it.

Acked-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarLi Jun <jun.li@nxp.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent ae57e97a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1067,7 +1067,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;