]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
USB: gadget: f_acm: add support for SuperSpeed Plus
authortaehyun.cho <taehyun.cho@samsung.com>
Fri, 27 Nov 2020 14:05:56 +0000 (15:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:25:47 +0000 (11:25 +0100)
commit 3ee05c20656782387aa9eb010fdb9bb16982ac3f upstream.

Setup the SuperSpeed Plus descriptors for f_acm.  This allows the gadget
to work properly without crashing at SuperSpeed rates.

Cc: Felipe Balbi <balbi@kernel.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: taehyun.cho <taehyun.cho@samsung.com>
Signed-off-by: Will McVicker <willmcvicker@google.com>
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Link: https://lore.kernel.org/r/20201127140559.381351-3-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_acm.c

index 9fc98de836249eccfd7096c6dcbaf1d63643f15a..add0f7ead55cc4b83c5c16e91f0f142ca3c6947c 100644 (file)
@@ -684,7 +684,7 @@ acm_bind(struct usb_configuration *c, struct usb_function *f)
        acm_ss_out_desc.bEndpointAddress = acm_fs_out_desc.bEndpointAddress;
 
        status = usb_assign_descriptors(f, acm_fs_function, acm_hs_function,
-                       acm_ss_function, NULL);
+                       acm_ss_function, acm_ss_function);
        if (status)
                goto fail;