Hi,
I've been using ZTE AC2736 USB mobile broadband modem for my internet
connection. When I insert the device, it is detected as ttyUSB0 as shown
in the below output from dmesg:
[ 441.468113] usb 4-1: new full speed USB device using uhci_hcd and
address 2
[ 442.352194] usb 4-1: USB disconnect, address 2
[ 442.729846] Initializing USB Mass Storage driver...
[ 442.729985] usbcore: registered new interface driver usb-storage
[ 442.729989] USB Mass Storage support registered.
[ 443.832105] usb 4-1: new full speed USB device using uhci_hcd and
address 3
[ 443.998271] ztemtusbserial_generic 4-1:1.0: generic converter detected
[ 443.998572] usb 4-1: generic converter now attached to ttyUSB0
[ 444.003129] ztemtusbserial_generic 4-1:1.1: generic converter detected
[ 444.003932] usb 4-1: generic converter now attached to ttyUSB1
[ 444.006323] ztemtusbserial_generic 4-1:1.2: generic converter detected
[ 444.006450] usb 4-1: generic converter now attached to ttyUSB2
[ 444.008468] ztemtusbserial_generic 4-1:1.3: generic converter detected
[ 444.008598] usb 4-1: generic converter now attached to ttyUSB3
[ 444.010807] ztemtusbserial_generic 4-1:1.4: generic converter detected
[ 444.010936] usb 4-1: generic converter now attached to ttyUSB4
[ 444.011361] ztemtusbserial_generic 4-1:1.5: generic converter detected
[ 444.011481] usb 4-1: generic converter now attached to ttyUSB5
[ 444.054993] usbcore: registered new interface driver usbserial
[ 444.055011] USB Serial support registered for generic
[ 444.055417] usbcore: registered new interface driver usbserial_generic
[ 444.055420] usbserial: USB Serial Driver core
[ 444.113409] USB Serial support registered for GSM modem (1-port)
[ 444.113884] usbcore: registered new interface driver option
[ 444.113886] option: v0.7.2:USB Driver for GSM modems
Recently I started using a generic USB-to-serial adapter which is also
detected as ttyUSB0 and because of that I get the following crash report
in dmesg and the internet connection is disconnected.
[11451.596161] usb 5-1: new full speed USB device using uhci_hcd and
address 3
[11451.897057] USB Serial support registered for FTDI USB Serial Device
[11451.897887] ftdi_sio 5-1:1.0: FTDI USB Serial Device converter detected
[11451.897949] usb 5-1: Detected FT232RL
[11451.897952] usb 5-1: Number of endpoints 2
[11451.897955] usb 5-1: Endpoint 1 MaxPacketSize 64
[11451.897957] usb 5-1: Endpoint 2 MaxPacketSize 64
[11451.897959] usb 5-1: Setting MaxPacketSize 64
[11451.899189] ------------[ cut here ]------------
[11451.899196] WARNING: at /build/buildd/linux-2.6.35/fs/sysfs/dir.c:451
sysfs_add_one+0x9d/0x110()
[11451.899198] Hardware name: 7663AP9
[11451.899200] sysfs: cannot create duplicate filename '/class/tty/ttyUSB0'
[11451.899201] Modules linked in: dm_crypt i2c_algo_bit nand_ids
ipt_REJECT stp agpgart sdhci sdhci_pci snd_page_alloc x_tables soundcore
ftdi_sio(+) intel_agp usbhid ip6_tables snd kvm_intel e1000e cfg80211
drm ip6table_filter pcmcia_rsrc ip_tables iptable_filter yenta_socket
ieee1394 xt_state sm_common output bluetooth video r852 ohci1394 psmouse
xt_tcpudp drm_kms_helper nf_defrag_ipv4 ttm nand kvm mac80211 bridge
nouveau nf_conntrack_ipv6 snd_seq_device nf_conntrack_ipv4 snd_timer
ip6t_ah xor parport ip6t_REJECT nf_nat pcmcia xt_limit lp serio_raw
iptable_nat ip6t_LOG ipt_MASQUERADE snd_seq tpm_bios nvram tpm tpm_tis
ipt_LOG nf_conntrack dm_raid45 ppdev binfmt_misc snd_seq_midi_event
led_class hid ztemt usb_wwan iwlcore usb_storage iwlagn snd_rawmidi
nf_conntrack_ftp snd_seq_midi usbserial joydev pcmcia_core mtd
thinkpad_acpi option crc_ccitt snd_hwdep nand_ecc snd_pcm ppp_async
bsd_comp zlib_deflate ppp_deflate snd_hda_codec snd_hda_intel arc4
snd_hda_codec_analog
[11451.899273] Pid: 5723, comm: modprobe Not tainted 2.6.35-24-lttng
#37~lttng1-Ubuntu
[11451.899276] Call Trace:
[11451.899282] [<c014b6f2>] warn_slowpath_common+0x72/0xa0
[11451.899285] [<c02762bd>] ? sysfs_add_one+0x9d/0x110
[11451.899288] [<c02762bd>] ? sysfs_add_one+0x9d/0x110
[11451.899291] [<c014b7c3>] warn_slowpath_fmt+0x33/0x40
[11451.899294] [<c02762bd>] sysfs_add_one+0x9d/0x110
[11451.899297] [<c02769a9>] sysfs_do_create_link+0xf9/0x1d0
[11451.899300] [<c0276967>] ? sysfs_do_create_link+0xb7/0x1d0
[11451.899303] [<c0276ab7>] sysfs_create_link+0x17/0x20
[11451.899307] [<c0401b5d>] device_add_class_symlinks+0x5d/0xd0
[11451.899310] [<c040281f>] device_add+0x1cf/0x3b0
[11451.899314] [<c040abc5>] ? device_pm_init+0x35/0x40
[11451.899317] [<c0402a17>] device_register+0x17/0x20
[11451.899320] [<c0402af7>] device_create_vargs+0xd7/0xe0
[11451.899323] [<c0402b2d>] device_create+0x2d/0x30
[11451.899327] [<c03dc0f0>] tty_register_device+0x90/0x130
[11451.899331] [<c0274f0a>] ? sysfs_add_file_mode+0x5a/0x90
[11451.899335] [<c0274f58>] ? sysfs_add_file+0x18/0x20
[11451.899347] [<fb076e96>] usb_serial_device_probe+0x96/0xf0 [usbserial]
[11451.899350] [<c0276ab7>] ? sysfs_create_link+0x17/0x20
[11451.899354] [<c0404c90>] really_probe+0x50/0x150
[11451.899356] [<c040c307>] ? pm_runtime_barrier+0x57/0xb0
[11451.899360] [<c0404dcc>] driver_probe_device+0x3c/0x60
[11451.899363] [<c0404ec9>] __device_attach+0x49/0x60
[11451.899366] [<c0403fd3>] bus_for_each_drv+0x53/0x80
[11451.899369] [<c0404f92>] device_attach+0x72/0x90
[11451.899372] [<c0404e80>] ? __device_attach+0x0/0x60
[11451.899375] [<c0403df5>] bus_probe_device+0x25/0x40
[11451.899377] [<c04028ec>] device_add+0x29c/0x3b0
[11451.899382] [<c0356b54>] ? kobject_set_name_vargs+0x64/0x70
[11451.899390] [<fb075592>] usb_serial_probe+0xde2/0x15c0 [usbserial]
[11451.899397] [<fb076aa0>] ?
usb_serial_generic_write_bulk_callback+0x0/0x120 [usbserial]
[11451.899400] [<c0276177>] ? __sysfs_add_one+0x27/0xd0
[11451.899404] [<c040b3ad>] ? __pm_runtime_resume+0x4d/0x440
[11451.899408] [<c012d718>] ? default_spin_lock_flags+0x8/0x10
[11451.899412] [<c05cda2f>] ? _raw_spin_lock_irqsave+0x2f/0x50
[11451.899415] [<c040ba77>] ? __pm_runtime_set_status+0x167/0x1e0
[11451.899418] [<c040b833>] ? pm_runtime_resume+0x33/0x50
[11451.899422] [<c0479ffc>] usb_probe_interface+0xec/0x1b0
[11451.899425] [<c0276ab7>] ? sysfs_create_link+0x17/0x20
[11451.899429] [<c0404c90>] really_probe+0x50/0x150
[11451.899431] [<c040c307>] ? pm_runtime_barrier+0x57/0xb0
[11451.899435] [<c0404dcc>] driver_probe_device+0x3c/0x60
[11451.899438] [<c0404e71>] __driver_attach+0x81/0x90
[11451.899441] [<c0404293>] bus_for_each_dev+0x53/0x80
[11451.899444] [<c0404b5e>] driver_attach+0x1e/0x20
[11451.899447] [<c0404df0>] ? __driver_attach+0x0/0x90
[11451.899450] [<c0404525>] bus_add_driver+0xd5/0x280
[11451.899453] [<c040516a>] driver_register+0x6a/0x130
[11451.899461] [<fb073d1b>] ? usb_serial_register+0x7b/0xe0 [usbserial]
[11451.899466] [<c05cb2f2>] ? printk+0x68/0x76
[11451.899469] [<c0479d11>] usb_register_driver+0x81/0x130
[11451.899475] [<fb073d1b>] ? usb_serial_register+0x7b/0xe0 [usbserial]
[11451.899483] [<f80b0000>] ? set_serial_info+0x200/0x220 [ftdi_sio]
[11451.899489] [<f818609a>] ftdi_init+0x9a/0xc1 [ftdi_sio]
[11451.899493] [<c0101132>] do_one_initcall+0x32/0x1a0
[11451.899499] [<f8186000>] ? ftdi_init+0x0/0xc1 [ftdi_sio]
[11451.899502] [<c01820fb>] sys_init_module+0x9b/0x200
[11451.899506] [<c05cdf7c>] syscall_call+0x7/0xb
[11451.899508] ---[ end trace dd5480d43530d604 ]---
[11451.899533] usb 5-1: FTDI USB Serial Device converter now attached to
ttyUSB0
[11451.899548] usbcore: registered new interface driver ftdi_sio
[11451.899550] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
Please help me solving this problem as I need both the devices to be
working simultaneously.
Regards,
Avik
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html