projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e765bfb
)
usb: chipidea: udc: add USB_DEVICE_A_HNP_SUPPORT request support
author
Peter Chen
<peter.chen@freescale.com>
Fri, 17 Jul 2015 00:44:24 +0000
(08:44 +0800)
committer
Peter Chen
<peter.chen@freescale.com>
Fri, 14 Aug 2015 01:13:10 +0000
(09:13 +0800)
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>
drivers/usb/chipidea/udc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/chipidea/udc.c
b/drivers/usb/chipidea/udc.c
index 764f668d45a9bb6ad4cde8ea0f4a8b0661dead86..27cbd1c2f47f0c08003397d9d698b971ba2c6bd2 100644
(file)
--- 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;
}