From d4894e61db48d1c850662dac5b0dcc9e6fffb3eb Mon Sep 17 00:00:00 2001 From: MennerAusR <62175320+mennerausr@users.noreply.github.com> Date: Sun, 19 Mar 2023 19:18:20 +0100 Subject: [PATCH 1/3] Fix for v2awifi --- drivers/usb/gadget/composite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 6fb8dec7c7f5..aefe3b933794 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c @@ -1538,7 +1538,7 @@ static u8 override_id(struct usb_composite_dev *cdev, u8 *desc) return *desc; } -#ifdef CONFIG_V1A +#if defined(CONFIG_V1A) || defined(CONFIG_V2A) static void composite_redriver_work(struct work_struct *data) { struct usb_composite_dev *cdev = container_of(data, struct usb_composite_dev, redriver_work); @@ -1658,7 +1658,7 @@ static int composite_bind(struct usb_gadget *gadget) goto fail; INFO(cdev, "%s ready\n", composite->name); -#ifdef CONFIG_V1A +#if defined(CONFIG_V1A) || defined(CONFIG_V2A) INIT_WORK(&cdev->redriver_work, composite_redriver_work); #endif return 0; From 5623a69194ed44f76cc88d07bfabe8a4f40775ba Mon Sep 17 00:00:00 2001 From: MennerAusR <62175320+mennerausr@users.noreply.github.com> Date: Sun, 19 Mar 2023 19:20:26 +0100 Subject: [PATCH 2/3] Fix for v2awifi --- include/linux/usb/composite.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index 979a8dbe5572..9bb1134e9b27 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h @@ -405,7 +405,7 @@ struct usb_composite_dev { */ bool mute_switch; bool force_disconnect; -#ifdef CONFIG_V1A +#if defined(CONFIG_V1A) || defined(CONFIG_V2A) struct work_struct redriver_work; #endif #endif From 2045fd27247a7b46d06b04a0a1c7652f602ddc77 Mon Sep 17 00:00:00 2001 From: MennerAusR <62175320+mennerausr@users.noreply.github.com> Date: Sun, 19 Mar 2023 19:21:55 +0100 Subject: [PATCH 3/3] Fix for v2awifi --- drivers/usb/gadget/exynos_ss_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/exynos_ss_udc.c b/drivers/usb/gadget/exynos_ss_udc.c index ce10f7f8b65c..8824ddd8e4cb 100644 --- a/drivers/usb/gadget/exynos_ss_udc.c +++ b/drivers/usb/gadget/exynos_ss_udc.c @@ -2548,7 +2548,7 @@ static void exynos_ss_udc_irq_connectdone(struct exynos_ss_udc *udc) } #endif #endif -#ifdef CONFIG_V1A +#if defined(CONFIG_V1A) || defined(CONFIG_V2A) udc->speed_limit = udc->gadget.speed; printk(KERN_ERR"usb: Update the speed limit value %d \n",udc->speed_limit); #endif