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>
This commit is contained in:
parent
e765bfb73f
commit
3520d462b9
@ -1090,6 +1090,13 @@ __acquires(ci->lock)
|
|||||||
if (ci_otg_is_fsm_mode(ci))
|
if (ci_otg_is_fsm_mode(ci))
|
||||||
err = otg_a_alt_hnp_support(ci);
|
err = otg_a_alt_hnp_support(ci);
|
||||||
break;
|
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:
|
default:
|
||||||
goto delegate;
|
goto delegate;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user