From: Li Jun <b47624@xxxxxxxxxxxxx> Adds host_request_flag for gadget to store host request information from application, which can be used to response to HNP polling from host. Signed-off-by: Li Jun <jun.li@xxxxxxxxxxxxx> --- include/linux/usb/gadget.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index e2f00fd..6443512 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h @@ -521,6 +521,8 @@ struct usb_gadget_ops { * only supports HNP on a different root port. * @b_hnp_enable: OTG device feature flag, indicating that the A-Host * enabled HNP support. + * @host_request_flag: OTG device feature flag, indicating if A-Peripheral + * or B-Peripheral wants to take host role. * @quirk_ep_out_aligned_size: epout requires buffer size to be aligned to * MaxPacketSize. * @is_selfpowered: if the gadget is self-powered. @@ -563,6 +565,7 @@ struct usb_gadget { unsigned b_hnp_enable:1; unsigned a_hnp_support:1; unsigned a_alt_hnp_support:1; + unsigned host_request_flag:1; unsigned quirk_ep_out_aligned_size:1; unsigned is_selfpowered:1; }; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html