Using the HL-340 USB-serial adapter with Linux (1a86:7523, driver ch341)
Here is what dmesg reports :
It works fine with the ch341 driver, I just had to add one line to drivers/usb/serial/ch341.c:
The relevant lines from my .config are:
From the module comments:
I'm currently using a "vanilla" kernel 2.6.25.4.
New USB device found, idVendor=1a86, idProduct=7523
New USB device strings: Mfr=0, Product=2, SerialNumber=0
Product: USB2.0-Ser!
It works fine with the ch341 driver, I just had to add one line to drivers/usb/serial/ch341.c:
static struct usb_device_id id_table [] = {
{ USB_DEVICE(0x4348, 0x5523) },
{ USB_DEVICE(0x1a86, 0x7523) },
{ },
};
The relevant lines from my .config are:
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_CH341=m
From the module comments:
ch341.c implements a serial port driver for the Winchiphead CH341.
The CH341 device can be used to implement an RS232 asynchronous serial port, an IEEE-1284 parallel printer port or a memory-like interface. In all cases the CH341 supports an I2C interface as well. This driver only supports the asynchronous serial interface.
I'm currently using a "vanilla" kernel 2.6.25.4.