usb: gadget: Add host_request_flag for hnp polling
authorHao Wu <hao.wu@intel.com>
Fri, 26 Aug 2011 10:55:05 +0000 (11:55 +0100)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:38:33 +0000 (12:38 -0800)
HNP polling is a new feature from USB OTG 2.0 spec, OTG host will
poll the host request flag from the OTG device side using get_status().
This patch add one member in usb_gadget data structure for this purpose.

Change-Id: Ica076eaf0b2635bfe00e666c266c4db9590a4592
Signed-off-by: Hao Wu <hao.wu@intel.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
include/linux/usb/gadget.h

index c56cdac..0b818ab 100644 (file)
@@ -490,6 +490,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;
        const char                      *name;
        struct device                   dev;
 };