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

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

 



On Tue, Dec 20, 2016 at 1:13 AM, Johan Hovold <johan@xxxxxxxxxx> wrote:
> Perhaps you could give the attached vendor driver a quick spin just to
> confirm that? It's a rebased version against usb-next.

This is plain jane usb-next with your vendor patch, which I applied in
a local branch:

 00001-gfadd29d:

Dec 20 07:18:36 willard kernel: PKCS#7 signature not signed with a trusted key
Dec 20 07:18:36 willard kernel: ch341: module verification failed:
signature and/or required key missing - tainting kernel
Dec 20 07:18:36 willard kernel: usbcore: registered new interface driver ch341
Dec 20 07:18:36 willard kernel: usbserial: USB Serial support
registered for ch34x
Dec 20 07:18:44 willard kernel: usb 6-2: new full-speed USB device
number 12 using uhci_hcd
Dec 20 07:18:44 willard kernel: usb 6-2: New USB device found,
idVendor=1a86, idProduct=7523
Dec 20 07:18:44 willard kernel: usb 6-2: New USB device strings:
Mfr=0, Product=2, SerialNumber=0
Dec 20 07:18:44 willard kernel: usb 6-2: Product: USB2.0-Ser!
Dec 20 07:18:44 willard kernel: ch341 6-2:1.0: ch34x converter detected
Dec 20 07:18:44 willard kernel: ------------[ cut here ]------------
Dec 20 07:18:44 willard kernel: WARNING: CPU: 1 PID: 30168 at
/home/russell/src/usb-serial/drivers/usb/core/hcd.c:1584
usb_hcd_map_urb_for_dma+0x382/0x560
Dec 20 07:18:44 willard kernel: transfer buffer not dma capable
Dec 20 07:18:44 willard kernel: Modules linked in: ch341(E) ntfs msdos
pl2303 usbserial bnep arc4 iwldvm mac80211 btusb btrtl btbcm btintel
bluetooth snd_hda_codec_hdmi uvcvideo snd_hda_codec_conexant
snd_hda_codec_generic videobuf2_vmalloc videobuf2_memops
videobuf2_v4l2 videobuf2_core videodev iwlwifi snd_hda_inte
l coretemp media kvm_intel snd_hda_codec snd_hda_core kvm
thinkpad_acpi snd_hwdep mei_me mei nvram cfg80211 snd_pcm snd_seq_midi
snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device
Dec 20 07:18:44 willard kernel:  snd_timer irqbypass snd joydev input_leds
Dec 20 07:18:44 willard kernel:  serio_raw
Dec 20 07:18:44 willard kernel:  lpc_ich soundcore autofs4 amdkfd
amd_iommu_v2 radeon i915 i2c_algo_bit ttm e1000e drm_kms_helper
psmouse syscopyarea firewire_ohci sysfillrect sysimgblt fb_sys_fops
ahci libahci firewire_core drm crc_itu_t ptp wmi video pps_core [last
unloaded: ch341]
Dec 20 07:18:44 willard kernel: CPU: 1 PID: 30168 Comm: kworker/1:0
Tainted: G            E   4.9.0-rc2-2016-12-16-00013-gc510871 #1
Dec 20 07:18:44 willard kernel: Hardware name: LENOVO 406227U/406227U,
BIOS 7VET66WW (2.16 ) 04/22/2009
Dec 20 07:18:44 willard kernel: Workqueue: usb_hub_wq hub_event
Dec 20 07:18:44 willard kernel:  ffffa51f89e4f3a8 ffffffffae3e8ec3
ffffa51f89e4f3f8 0000000000000000
Dec 20 07:18:44 willard kernel:  ffffa51f89e4f3e8 ffffffffae07f90b
0000063033791ae0 ffff8ae139fe23c0
Dec 20 07:18:44 willard kernel:  0000000000000000 0000000002400000
0000000000000002 ffff8ae11a80a800
Dec 20 07:18:44 willard kernel: Call Trace:
Dec 20 07:18:44 willard kernel:  [<ffffffffae3e8ec3>] dump_stack+0x63/0x90
Dec 20 07:18:44 willard kernel:  [<ffffffffae07f90b>] __warn+0xcb/0xf0
Dec 20 07:18:44 willard kernel:  [<ffffffffae07f98f>]
warn_slowpath_fmt+0x5f/0x80
Dec 20 07:18:44 willard kernel:  [<ffffffffae60f392>]
usb_hcd_map_urb_for_dma+0x382/0x560
Dec 20 07:18:44 willard kernel:  [<ffffffffae6106e2>]
usb_hcd_submit_urb+0x1d2/0xac0
Dec 20 07:18:44 willard kernel:  [<ffffffffae0da37a>] ? vprintk_emit+0x2ea/0x4d0
Dec 20 07:18:44 willard kernel:  [<ffffffffae61213b>] usb_submit_urb+0x2eb/0x570
Dec 20 07:18:44 willard kernel:  [<ffffffffae612abe>]
usb_start_wait_urb+0x6e/0x170
Dec 20 07:18:44 willard kernel:  [<ffffffffae612c9c>] usb_control_msg+0xdc/0x130
Dec 20 07:18:44 willard kernel:  [<ffffffffc0877fd7>]
ch34x_attach+0x1d7/0x2b0 [ch341]
Dec 20 07:18:44 willard kernel:  [<ffffffffc0930410>]
usb_serial_probe+0xf10/0x1170 [usbserial]
Dec 20 07:18:44 willard kernel:  [<ffffffffae3eac48>] ?
ida_simple_get+0x98/0x100
Dec 20 07:18:44 willard kernel:  [<ffffffffae2adffa>] ?
kernfs_activate+0x7a/0xe0
Dec 20 07:18:44 willard kernel:  [<ffffffffae55d580>] ?
__pm_runtime_set_status+0x1e0/0x2a0
Dec 20 07:18:44 willard kernel:  [<ffffffffae617453>]
usb_probe_interface+0x153/0x2f0
Dec 20 07:18:44 willard kernel:  [<ffffffffae5519b4>]
driver_probe_device+0x224/0x430
Dec 20 07:18:44 willard kernel:  [<ffffffffae551d3c>]
__device_attach_driver+0x8c/0x100
Dec 20 07:18:44 willard kernel:  [<ffffffffae551cb0>] ?
__driver_attach+0xf0/0xf0
Dec 20 07:18:44 willard kernel:  [<ffffffffae54f5c7>] bus_for_each_drv+0x67/0xb0
Dec 20 07:18:44 willard kernel:  [<ffffffffae55161d>] __device_attach+0xdd/0x160
Dec 20 07:18:44 willard kernel:  [<ffffffffae551df3>]
device_initial_probe+0x13/0x20
Dec 20 07:18:44 willard kernel:  [<ffffffffae550832>] bus_probe_device+0x92/0xa0
Dec 20 07:18:44 willard kernel:  [<ffffffffae54e3ad>] device_add+0x3fd/0x670
Dec 20 07:18:44 willard kernel:  [<ffffffffae615359>]
usb_set_configuration+0x529/0x8d0
Dec 20 07:18:44 willard kernel:  [<ffffffffae6204ae>] generic_probe+0x2e/0x80
Dec 20 07:18:44 willard kernel:  [<ffffffffae6172be>] usb_probe_device+0x2e/0x70
Dec 20 07:18:44 willard kernel:  [<ffffffffae5519b4>]
driver_probe_device+0x224/0x430
Dec 20 07:18:44 willard kernel:  [<ffffffffae551d3c>]
__device_attach_driver+0x8c/0x100
Dec 20 07:18:44 willard kernel:  [<ffffffffae551cb0>] ?
__driver_attach+0xf0/0xf0
Dec 20 07:18:44 willard kernel:  [<ffffffffae54f5c7>] bus_for_each_drv+0x67/0xb0
Dec 20 07:18:44 willard kernel:  [<ffffffffae55161d>] __device_attach+0xdd/0x160
Dec 20 07:18:44 willard kernel:  [<ffffffffae551df3>]
device_initial_probe+0x13/0x20
Dec 20 07:18:44 willard kernel:  [<ffffffffae550832>] bus_probe_device+0x92/0xa0
Dec 20 07:18:44 willard kernel:  [<ffffffffae54e3ad>] device_add+0x3fd/0x670
Dec 20 07:18:44 willard kernel:  [<ffffffffae516e00>] ? random_poll+0x80/0x80
Dec 20 07:18:44 willard kernel:  [<ffffffffae60a63f>] usb_new_device+0x26f/0x4b0
Dec 20 07:18:44 willard kernel:  [<ffffffffae60c71e>] hub_event+0xf8e/0x1540
Dec 20 07:18:44 willard kernel:  [<ffffffffae09a65b>]
process_one_work+0x16b/0x480
Dec 20 07:18:44 willard kernel:  [<ffffffffae09a9bb>] worker_thread+0x4b/0x500
Dec 20 07:18:44 willard kernel:  [<ffffffffae09a970>] ?
process_one_work+0x480/0x480
Dec 20 07:18:44 willard kernel:  [<ffffffffae09a970>] ?
process_one_work+0x480/0x480
Dec 20 07:18:44 willard kernel:  [<ffffffffae0a0c19>] kthread+0xd9/0xf0
Dec 20 07:18:44 willard kernel:  [<ffffffffae0a0b40>] ? kthread_park+0x60/0x60
Dec 20 07:18:44 willard kernel:  [<ffffffffae8274b5>] ret_from_fork+0x25/0x30
Dec 20 07:18:44 willard kernel: ---[ end trace a6d2a2beec5e73c1 ]---
Dec 20 07:18:44 willard kernel: usb 6-2: ch34x converter now attached to ttyUSB0

and, it didn't work.  Got 0xff's out on the pl2303, got nothing
visible when characters sent in the other direction after setting
115200 8N1 on both sides.  And, fwiw, I've been rmmod ch341 ; insmod
$path/ch341.ko, where $path is the kernel module tree for the commit
build, all from a 00013-gc510871 base kernel without rebooting.

Not sure what the complaint about keys is about, I had not seen that before.
--
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]