lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID:
 <TYUPR06MB621753631B9F7836583E7BEED2AB2@TYUPR06MB6217.apcprd06.prod.outlook.com>
Date: Thu, 25 Jul 2024 06:40:14 +0000
From: 胡连勤 <hulianqin@...o.com>
To: "akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>
CC: opensource.kernel <opensource.kernel@...o.com>
Subject: Subject: [PATCH] usb: gadget:Fixed the problem of abnormal function
 of mobile  phone as UVC camera.

From b0058484e3fe7830c2092d5d19b46bf1bab73d83 Mon Sep 17 00:00:00 2001
From: Lianqin Hu <hulianqin@...o.com>
Date: Wed, 24 Jul 2024 18:52:27 +0800
Subject: [PATCH] usb: gadget:Fixed the problem of abnormal function of mobile
 phone as UVC camera.

Android 15 USB function option interface adds camera function.
after switching to camera function, USB enumeration is abnormal.
the reason is that bind_deactivated is set to true in f_uvc driver,
which causes gadget->deactivated to be set to true during
usb_add_function,and dwc3 controller cannot perform pullup operation.

Therefore, modify f_uvc driver and remove the setting operation
of func.bind_deactivated.

Signed-off-by: Lianqin Hu <hulianqin@...o.com>
---
 drivers/usb/gadget/function/f_uvc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/usb/gadget/function/f_uvc.c b/drivers/usb/gadget/function/f_uvc.c
index 40187b7112e7..6d63bea14211 100644
--- a/drivers/usb/gadget/function/f_uvc.c
+++ b/drivers/usb/gadget/function/f_uvc.c
@@ -1107,7 +1107,6 @@ static struct usb_function *uvc_alloc(struct usb_function_instance *fi)
 	uvc->func.disable = uvc_function_disable;
 	uvc->func.setup = uvc_function_setup;
 	uvc->func.free_func = uvc_free;
-	uvc->func.bind_deactivated = true;
 
 	return &uvc->func;
 
-- 
2.39.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ