usb: gadget: composite: handle otg status selector request from OTG host
authorLi Jun <jun.li@nxp.com>
Fri, 19 Feb 2016 02:04:44 +0000 (10:04 +0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:36 +0000 (15:14 +0200)
commitc5348b621bd8a61fab3de9f69bf14c8545d7d642
treeae95c5683e78cf158ff7a006144b6e27b51bf71c
parentd6da40af0ead4dc6cb69071c1ec44a823144927d
usb: gadget: composite: handle otg status selector request from OTG host

If gadget with HNP polling support receives GetStatus request of otg
status selector, it feedback to host with host request flag to indicate
if it wants to take host role.

Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/composite.c