diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-07-17 02:44:24 +0200 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2015-08-14 03:13:10 +0200 |
commit | 3520d462b95fff1c445faec6f54953cd8da25ca7 (patch) | |
tree | 427c0a46af8037db323c378deee3b06b6452a99c | |
parent | usb: chipidea: imx: enable CI_HDRC_SET_NON_ZERO_TTHA (diff) | |
download | linux-3520d462b95fff1c445faec6f54953cd8da25ca7.tar.xz linux-3520d462b95fff1c445faec6f54953cd8da25ca7.zip |
usb: chipidea: udc: add USB_DEVICE_A_HNP_SUPPORT request support
We can support USB OTG 1.3 USB_DEVICE_A_HNP_SUPPORT request when
the driver supports OTG FSM mode.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
-rw-r--r-- | drivers/usb/chipidea/udc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 764f668d45a9..27cbd1c2f47f 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c @@ -1090,6 +1090,13 @@ __acquires(ci->lock) if (ci_otg_is_fsm_mode(ci)) err = otg_a_alt_hnp_support(ci); break; + case USB_DEVICE_A_HNP_SUPPORT: + if (ci_otg_is_fsm_mode(ci)) { + ci->gadget.a_hnp_support = 1; + err = isr_setup_status_phase( + ci); + } + break; default: goto delegate; } |