summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemant Kumar <hemantk@codeaurora.org>2015-11-10 13:58:17 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:03:08 -0700
commitffe172b61098d1115321cc6199bf273b7dd00c5c (patch)
treef67759c632405c29a29b3b91b382109d75a2459f
parent7bc7efae3f8c2b9872b7d517a14f476a8b9a0c1d (diff)
usb: gadget: f_gsi: Add support for super speed function suspend
Register gsi function suspend callback with composite device to handle super speed function suspend and resume. Also, move function suspend option masks to composite device layer. Change-Id: Ie316973d855612ddc5440934344d18b04d49c567 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
-rw-r--r--include/linux/usb/composite.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h
index 98b39ed43f5b..acecf5fa6a63 100644
--- a/include/linux/usb/composite.h
+++ b/include/linux/usb/composite.h
@@ -41,6 +41,10 @@
#include <linux/log2.h>
#include <linux/configfs.h>
+/* FUNCTION_SUSPEND: suspend options from usb 3.0 spec Table 9-7 */
+#define FUNC_SUSPEND_OPT_SUSP_MASK BIT(0)
+#define FUNC_SUSPEND_OPT_RW_EN_MASK BIT(1)
+
/*
* USB function drivers should return USB_GADGET_DELAYED_STATUS if they
* wish to delay the data/status stages of the control transfer till they