summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/configfs.c
diff options
context:
space:
mode:
authorJohn Youn <John.Youn@synopsys.com>2016-02-06 02:06:35 +0100
committerFelipe Balbi <balbi@kernel.org>2016-03-04 14:14:24 +0100
commit554eead5436401ae3cfdb7d79fca24c14ebab143 (patch)
treefdd573b9709c377eb2952b8dd3bdefe19a74be79 /drivers/usb/gadget/configfs.c
parentusb: gadget: Update function for SuperSpeedPlus (diff)
downloadlinux-554eead5436401ae3cfdb7d79fca24c14ebab143.tar.xz
linux-554eead5436401ae3cfdb7d79fca24c14ebab143.zip
usb: gadget: Update config for SuperSpeedPlus
When a function is added to a configuration with usb_add_function(), the configuration speed flags are updated. These flags indicate for which speeds the configuration is valid for. This patch adds a flag in the configuration for SuperSpeedPlus and also updates this based on the existence of ssp_descriptors. Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'drivers/usb/gadget/configfs.c')
-rw-r--r--drivers/usb/gadget/configfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c
index 590c44989e5e..c6cc15ebeed6 100644
--- a/drivers/usb/gadget/configfs.c
+++ b/drivers/usb/gadget/configfs.c
@@ -1229,6 +1229,7 @@ static void purge_configs_funcs(struct gadget_info *gi)
}
c->next_interface_id = 0;
memset(c->interface, 0, sizeof(c->interface));
+ c->superspeed_plus = 0;
c->superspeed = 0;
c->highspeed = 0;
c->fullspeed = 0;