diff options
author | Oliver Neukum | 2024-06-20 11:37:39 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2024-06-20 19:32:44 +0200 |
commit | fd80731e5e9d1402cb2f85022a6abf9b1982ec5f (patch) | |
tree | 865e7e40372b8668bc0d6c04deb2c71c80c9fb6a /drivers/usb | |
parent | 6ba59ff4227927d3a8530fc2973b80e94b54d58f (diff) |
usb: gadget: printer: SS+ support
We need to treat super speed plus as super speed, not the default,
which is full speed.
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Cc: stable <stable@kernel.org>
Link: https://lore.kernel.org/r/20240620093800.28901-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/function/f_printer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/f_printer.c b/drivers/usb/gadget/function/f_printer.c index ba7d180cc9e6..4c0b7c2970f1 100644 --- a/drivers/usb/gadget/function/f_printer.c +++ b/drivers/usb/gadget/function/f_printer.c @@ -213,6 +213,7 @@ static inline struct usb_endpoint_descriptor *ep_desc(struct usb_gadget *gadget, struct usb_endpoint_descriptor *ss) { switch (gadget->speed) { + case USB_SPEED_SUPER_PLUS: case USB_SPEED_SUPER: return ss; case USB_SPEED_HIGH: |