From 3cf5555d90fa1641b10ff683501b1ef40e4032f9 Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Fri, 26 Aug 2011 11:55:05 +0100 Subject: [PATCH] usb: gadget: Add host_request_flag for hnp polling 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 Signed-off-by: Heikki Krogerus Signed-off-by: Alan Cox --- include/linux/usb/gadget.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index c56cdac..0b818ab 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h @@ -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; }; -- 2.7.4