diff mbox series

usb: quirks: Add DELAY_INIT and NO_LPM for Prolific PL2303 Serial Port

Message ID 20250303070047.153591-1-limiao870622@163.com
State New
Headers show
Series usb: quirks: Add DELAY_INIT and NO_LPM for Prolific PL2303 Serial Port | expand

Commit Message

Miao Li March 3, 2025, 7 a.m. UTC
From: Miao Li <limiao@kylinos.cn>

When used on Huawei hisi platforms, Prolific PL2303 Serial Port which
the VID:PID is in 067b:2731 might fail to enumerate at boot time and
doesn't work well with LPM enabled, combination quirks:
USB_QUIRK_DELAY_INIT + USB_QUIRK_NO_LPM
fixed the problems.

Signed-off-by: Miao Li <limiao@kylinos.cn>
---
 drivers/usb/core/quirks.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c
index dfcfc142bd5e..8aca5518e003 100644
--- a/drivers/usb/core/quirks.c
+++ b/drivers/usb/core/quirks.c
@@ -341,6 +341,10 @@  static const struct usb_device_id usb_quirk_list[] = {
 	{ USB_DEVICE(0x0638, 0x0a13), .driver_info =
 	  USB_QUIRK_STRING_FETCH_255 },
 
+	/* Prolific PL2303 Serial Port */
+	{ USB_DEVICE(0x067b, 0x2731), .driver_info = USB_QUIRK_DELAY_INIT |
+	  USB_QUIRK_NO_LPM },
+
 	/* Saitek Cyborg Gold Joystick */
 	{ USB_DEVICE(0x06a3, 0x0006), .driver_info =
 			USB_QUIRK_CONFIG_INTF_STRINGS },