diff mbox series

USB: serial: ch341: Add product ID for CH9102

Message ID 20241208081115.4036852-1-blake.k.lafleur@gmail.com (mailing list archive)
State New
Headers show
Series USB: serial: ch341: Add product ID for CH9102 | expand

Commit Message

Blake LaFleur Dec. 8, 2024, 8:11 a.m. UTC
Adds a PID for the CH9102 chipset that can be found in some cheap ESP
development boards.

Example: LILYGO T-Display (and its S3 variant)
https://lilygo.cc/products/lilygo%C2%AE-ttgo-t-display-1-14-inch-lcd-esp32-control-board

After patching the driver to include idProduct=0x55d4 the devices work
as expected.

Signed-off-by: Blake LaFleur <blake.k.lafleur@gmail.com>
---
 drivers/usb/serial/ch341.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Johan Hovold Dec. 11, 2024, 9:35 a.m. UTC | #1
On Sun, Dec 08, 2024 at 02:11:15AM -0600, Blake LaFleur wrote:
> Adds a PID for the CH9102 chipset that can be found in some cheap ESP
> development boards.
> 
> Example: LILYGO T-Display (and its S3 variant)
> https://lilygo.cc/products/lilygo%C2%AE-ttgo-t-display-1-14-inch-lcd-esp32-control-board
> 
> After patching the driver to include idProduct=0x55d4 the devices work
> as expected.

Thanks for the patch. This is the first time I hear of CH9102.

Are there any errors or messages at all in the logs when you use this
device or does it appear to be perfectly compatible with the older
models?

Could you post the output of lsusb -v (with masked serial numbers if you
prefer) so we have a record of any type identifying information should
it ever be needed?
 
> Signed-off-by: Blake LaFleur <blake.k.lafleur@gmail.com>
> ---
>  drivers/usb/serial/ch341.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c
> index d10e4c4848a0..302d8d8547cb 100644
> --- a/drivers/usb/serial/ch341.c
> +++ b/drivers/usb/serial/ch341.c
> @@ -81,6 +81,7 @@
>  #define CH341_QUIRK_SIMULATE_BREAK	BIT(1)
>  
>  static const struct usb_device_id id_table[] = {
> +	{ USB_DEVICE(0x1a86, 0x55d4) },

nit: please try to keep the entries sorted by pid.

>  	{ USB_DEVICE(0x1a86, 0x5523) },
>  	{ USB_DEVICE(0x1a86, 0x7522) },
>  	{ USB_DEVICE(0x1a86, 0x7523) },

Johan
diff mbox series

Patch

diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c
index d10e4c4848a0..302d8d8547cb 100644
--- a/drivers/usb/serial/ch341.c
+++ b/drivers/usb/serial/ch341.c
@@ -81,6 +81,7 @@ 
 #define CH341_QUIRK_SIMULATE_BREAK	BIT(1)
 
 static const struct usb_device_id id_table[] = {
+	{ USB_DEVICE(0x1a86, 0x55d4) },
 	{ USB_DEVICE(0x1a86, 0x5523) },
 	{ USB_DEVICE(0x1a86, 0x7522) },
 	{ USB_DEVICE(0x1a86, 0x7523) },