Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f5dff01 authored by Hemant Kumar's avatar Hemant Kumar Committed by Mayank Rana
Browse files

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: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 6ccd55c0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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