Re: [PATCH 06/13] USB: serial: ch341: fix initial line settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I'm not sure what device we're dealing with here, but it seems it would
> not be supported by the vendor (whose version of this driver also uses
> the init-command).
>
> Perhaps you could give the attached vendor driver a quick spin just to
> confirm that? It's a rebased version against usb-next.
>
> I've also pushed a commit that tries to dump the registers differently
> (reading together with register 0x25):
>
>         3baa1eff4245 ("dbg: ch341: dump registers differently")

00019-g3baa1ef:

Dec 20 04:30:50 willard kernel: usbcore: registered new interface driver ch341
Dec 20 04:30:50 willard kernel: usbserial: USB Serial support
registered for ch341-uart
Dec 20 04:31:14 willard kernel: usb 6-2: new full-speed USB device
number 11 using uhci_hcd
Dec 20 04:31:14 willard kernel: usb 6-2: New USB device found,
idVendor=1a86, idProduct=7523
Dec 20 04:31:14 willard kernel: usb 6-2: New USB device strings:
Mfr=0, Product=2, SerialNumber=0
Dec 20 04:31:14 willard kernel: usb 6-2: Product: USB2.0-Ser!
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: ch341-uart converter detected
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [00] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [01] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [02] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [03] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [04] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [05] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [06] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [07] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [08] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [09] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0a] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0b] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0c] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0d] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0e] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0f] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [10] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [11] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [12] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [13] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [14] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [15] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [16] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [17] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [18] = c3
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [19] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1a] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1b] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1c] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1d] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1e] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1f] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [20] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [21] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [22] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [23] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [24] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [25] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [26] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [27] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [28] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [29] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2a] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2b] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2c] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2d] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2e] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2f] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: init 0 0
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [00] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [01] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [02] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [03] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [04] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [05] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [06] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [07] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [08] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [09] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0a] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0b] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0c] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0d] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0e] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0f] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [10] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [11] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [12] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [13] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [14] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [15] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [16] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [17] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [18] = c3
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [19] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1a] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1b] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1c] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1d] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1e] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1f] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [20] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [21] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [22] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [23] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [24] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [25] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [26] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [27] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [28] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [29] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2a] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2b] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2c] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2d] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2e] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2f] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: write 0x31 0xb282
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [00] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [01] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [02] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [03] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [04] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [05] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [06] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [07] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [08] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [09] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0a] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0b] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0c] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0d] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0e] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0f] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [10] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [11] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [12] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [13] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [14] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [15] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [16] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [17] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [18] = f1
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [19] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1a] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1b] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1c] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1d] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1e] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1f] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [20] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [21] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [22] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [23] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [24] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [25] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [26] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [27] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [28] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [29] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2a] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2b] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2c] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2d] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2e] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2f] = 00
Dec 20 04:31:14 willard kernel: usb 6-2: ch341_dbg - [0x2518] = f1 00,
[0x1213] = 00 00 (pre version)
Dec 20 04:31:14 willard kernel: usb 6-2: ch341_dbg - [0x2518] = f1 00,
[0x1213] = 00 00 (post init-0)
Dec 20 04:31:14 willard kernel: usb 6-2: ch341_set_baudrate_lcr -
speed = 9600, lcr = c3, a = b202
Dec 20 04:31:14 willard kernel: usb 6-2: ch341_dbg - [0x2518] = f1 00,
[0x1213] = 00 00 (post init - lcr reset)
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [00] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [01] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [02] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [03] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [04] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [05] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [06] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [07] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [08] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [09] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0a] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0b] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0c] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0d] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0e] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [0f] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [10] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [11] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [12] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [13] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [14] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [15] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [16] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [17] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [18] = f1
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [19] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1a] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1b] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1c] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1d] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1e] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [1f] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [20] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [21] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [22] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [23] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [24] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [25] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [26] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [27] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [28] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [29] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2a] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2b] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2c] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2d] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2e] = 00
Dec 20 04:31:14 willard kernel: ch341 6-2:1.0: [2f] = 00
Dec 20 04:31:14 willard kernel: usb 6-2: ch341-uart converter now
attached to ttyUSB0
Dec 20 04:31:25 willard kernel: usb 6-2: ch341_set_baudrate_lcr -
speed = 19200, lcr = c3, a = d902
Dec 20 04:31:25 willard kernel: usb 6-2: ch341_dbg - [0x2518] = f1 00,
[0x1213] = 00 00 (post init - lcr reset)
Dec 20 04:31:36 willard kernel: usb 6-2: ch341_set_baudrate_lcr -
speed = 115200, lcr = c3, a = cc03
Dec 20 04:31:36 willard kernel: usb 6-2: ch341_dbg - [0x2518] = f1 00,
[0x1213] = 00 00 (post init - lcr reset)
Dec 20 04:32:04 willard kernel: usb 6-2: ch341_set_baudrate_lcr -
speed = 115200, lcr = c0, a = cc03
Dec 20 04:32:04 willard kernel: usb 6-2: ch341_dbg - [0x2518] = f1 00,
[0x1213] = 00 00 (post init - lcr reset)
Dec 20 04:32:08 willard kernel: usb 6-2: ch341_set_baudrate_lcr -
speed = 115200, lcr = c3, a = cc03
Dec 20 04:32:08 willard kernel: usb 6-2: ch341_dbg - [0x2518] = f1 00,
[0x1213] = 00 00 (post init - lcr reset)
Dec 20 04:32:13 willard kernel: usb 6-2: ch341_set_baudrate_lcr -
speed = 9600, lcr = c3, a = b202
Dec 20 04:32:13 willard kernel: usb 6-2: ch341_dbg - [0x2518] = f1 00,
[0x1213] = 00 00 (post init - lcr reset)
Dec 20 04:32:18 willard kernel: usb 6-2: ch341_set_baudrate_lcr -
speed = 115200, lcr = c3, a = cc03
Dec 20 04:32:18 willard kernel: usb 6-2: ch341_dbg - [0x2518] = f1 00,
[0x1213] = 00 00 (post init - lcr reset)
Dec 20 04:32:24 willard kernel: usb 6-2: ch341_set_baudrate_lcr -
speed = 115200, lcr = c3, a = cc03
Dec 20 04:32:24 willard kernel: usb 6-2: ch341_dbg - [0x2518] = f1 00,
[0x1213] = 00 00 (post init - lcr reset)
Dec 20 04:32:24 willard kernel: usb 6-2: ch341_set_baudrate_lcr -
speed = 19200, lcr = c3, a = d902
Dec 20 04:32:24 willard kernel: usb 6-2: ch341_dbg - [0x2518] = f1 00,
[0x1213] = 00 00 (post init - lcr reset)
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]