From ffe172b61098d1115321cc6199bf273b7dd00c5c Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Tue, 10 Nov 2015 13:58:17 -0800 Subject: 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 --- include/linux/usb/composite.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/linux') 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 #include +/* 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 -- cgit v1.2.3