Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+7
+7
drivers/usb/chipidea/udc.c
··· 1090 1090 if (ci_otg_is_fsm_mode(ci)) 1091 1091 err = otg_a_alt_hnp_support(ci); 1092 1092 break; 1093 + case USB_DEVICE_A_HNP_SUPPORT: 1094 + if (ci_otg_is_fsm_mode(ci)) { 1095 + ci->gadget.a_hnp_support = 1; 1096 + err = isr_setup_status_phase( 1097 + ci); 1098 + } 1099 + break; 1093 1100 default: 1094 1101 goto delegate; 1095 1102 }