Skip to contentSkip to conversation

USB: serial: ch341: add new Product ID

PATCH In review [email protected] 2 participants 2 messages Feb 25, 2021 – Feb 26, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 USB: serial: ch341: add new Product ID

Add PID for CH340 that's found on cheap programers. They are sometimes refered to as ANU232MI like in this one:
https://www.nordfield.com/downloads/anu232mi/ANU232MI-datasheet.pdf

The driver works flawlessly as soon as the new PID (0x9986) is added to it.

---
drivers/usb/serial/ch341.c | 1 +

1 file changed, 1 insertion(+)
drivers/usb/serial/ch341.c +0 -0
index 28deaaec581f..f26861246f65 100644
@@ -86,6 +86,7 @@ static const struct usb_device_id id_table[] = {

{ USB_DEVICE(0x1a86, 0x7522) },
{ USB_DEVICE(0x1a86, 0x7523) },
{ USB_DEVICE(0x4348, 0x5523) },
+ { USB_DEVICE(0x9986, 0x7523) },
{ },
};
MODULE_DEVICE_TABLE(usb, id_table);

Signature · 1 line
2.30.1
maintainer
#1 lore raw
Quoted 7 lines · On Thu, Feb 25, 2021 at 07:33:14PM +0000, [email protected] wrote:

Add PID for CH340 that's found on cheap programers. They are sometimes refered to as ANU232MI like in this one:
https://www.nordfield.com/downloads/anu232mi/ANU232MI-datasheet.pdf

The driver works flawlessly as soon as the new PID (0x9986) is added to it.

This name doesn't match your "From:" line in your email :(

Quoted 9 lines

---
drivers/usb/serial/ch341.c | 1 +

1 file changed, 1 insertion(+)
drivers/usb/serial/ch341.c +0 -0
index 28deaaec581f..f26861246f65 100644

drivers/usb/serial/ch341.c static const struct usb_device_id id_table[] = { · line 92

Quoted 7 lines
drivers/usb/serial/ch341.c +1 -0
@@ -86,6 +86,7 @@ static const struct usb_device_id id_table[] = {
 { USB_DEVICE(0x1a86, 0x7522) },
 { USB_DEVICE(0x1a86, 0x7523) },
 { USB_DEVICE(0x4348, 0x5523) },
+ { USB_DEVICE(0x9986, 0x7523) },
 { },
 };
 MODULE_DEVICE_TABLE(usb, id_table);

Your patch is corrupted and can not be applied :(

Please fix up your email client and try again.

thanks,

greg k-h