Huawei E620 USB Modem's micro usb drive doesn't work in jaunty, but works in hardy

Bug #375419 reported by ozstriker78
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ubuntu
New
Undecided
Unassigned
Nominated for Jaunty by ozstriker78

Bug Description

After upgrading to Jaunty, I was no longer able to use the micro sd drive on my Huawei Technologies Co., Ltd. E620 USB Modem.

lsusb shows this...
Bus 001 Device 006: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem

dmesg shows this...
[98710.288057] usb 1-3: new high speed USB device using ehci_hcd and address 6
[98710.433001] usb 1-3: configuration #1 chosen from 1 choice
[98710.437363] usb-storage: probe of 1-3:1.0 failed with error -5
[98710.438376] usb-storage: probe of 1-3:1.1 failed with error -5
[98710.439243] usb-storage: probe of 1-3:1.2 failed with error -5
[98710.442069] usb-storage: probe of 1-3:1.3 failed with error -1
[98711.027150] USB Serial support registered for GSM modem (1-port)
[98711.027258] option 1-3:1.0: GSM modem (1-port) converter detected
[98711.027504] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB0
[98711.027533] option 1-3:1.1: GSM modem (1-port) converter detected
[98711.027655] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB1
[98711.027681] option 1-3:1.2: GSM modem (1-port) converter detected
[98711.027810] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB2
[98711.027856] usbcore: registered new interface driver option
[98711.027863] option: v0.7.2:USB Driver for GSM modems

lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04

What used to happen in hardy was that the micro SD drive would just automount.

Revision history for this message
ozstriker78 (ozstriker78) wrote :

for what it's worth, the usb modem functionality works just fine.

Revision history for this message
ozstriker78 (ozstriker78) wrote :
Download full text (4.2 KiB)

Here is something interesting.... When I run this command...

rmmod usb-storage
modprobe usb-storage

dmesg shows this....

[ 5838.650653] usbcore: deregistering interface driver usb-storage
[ 5848.531000] Initializing USB Mass Storage driver...
[ 5848.544134] ------------[ cut here ]------------
[ 5848.544145] WARNING: at /build/buildd/linux-2.6.28/fs/proc/generic.c:551 proc_register+0x10b/0x1e0()
[ 5848.544153] proc_dir_entry 'scsi/usb-storage' already registered
[ 5848.544159] Modules linked in: usb_storage(+) ppp_deflate zlib_deflate bsd_comp ppp_async option xt_conntrack iptable_filter iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 ip_tables x_tables binfmt_misc radeon drm input_polldev lp pcmcia snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy joydev snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device iTCO_wdt iTCO_vendor_support thinkpad_acpi ipw2100 nsc_ircc intel_agp led_class ieee80211 ieee80211_crypt yenta_socket rsrc_nonstatic pcmcia_core snd soundcore ppdev video agpgart nvram irda snd_page_alloc shpchp parport_pc parport pcspkr psmouse serio_raw output crc_ccitt reiserfs sha256_generic aes_i586 aes_generic cbc usbhid e1000 dm_crypt fbcon tileblit font bitblit softcursor [last unloaded: usb_storage]
[ 5848.544343] Pid: 13031, comm: modprobe Tainted: G W 2.6.28-11-generic #42-Ubuntu
[ 5848.544350] Call Trace:
[ 5848.544366] [<c0139ab0>] warn_slowpath+0x60/0x80
[ 5848.544383] [<c02c66c2>] ? idr_get_empty_slot+0xe2/0x270
[ 5848.544393] [<c02c695f>] ? ida_get_new_above+0x10f/0x1c0
[ 5848.544403] [<c02c695f>] ? ida_get_new_above+0x10f/0x1c0
[ 5848.544413] [<c02c6b3d>] ? idr_pre_get+0x3d/0x70
[ 5848.544424] [<c01ff7fb>] proc_register+0x10b/0x1e0
[ 5848.544434] [<c01ffaa3>] proc_mkdir_mode+0x33/0x50
[ 5848.544451] [<c01ffacf>] proc_mkdir+0xf/0x20
[ 5848.544464] [<c0370e56>] scsi_proc_hostdir_add+0x46/0x80
[ 5848.544477] [<c0365108>] scsi_host_alloc+0x2b8/0x2d0
[ 5848.544487] [<c0368a90>] ? scsi_error_handler+0x0/0x120
[ 5848.544511] [<f80941c7>] storage_probe+0x47/0x860 [usb_storage]
[ 5848.544524] [<c020c036>] ? sysfs_addrm_finish+0x36/0xf0
[ 5848.544534] [<c020b7e3>] ? sysfs_add_one+0x13/0x50
[ 5848.544543] [<c020b87b>] ? sysfs_addrm_start+0x5b/0xa0
[ 5848.544556] [<c0501a4b>] ? mutex_lock+0xb/0x20
[ 5848.544567] [<c03bb2f4>] ? usb_autopm_do_device+0x64/0xf0
[ 5848.544587] [<c03bb942>] usb_probe_interface+0xa2/0x130
[ 5848.544597] [<c020c692>] ? sysfs_create_link+0x12/0x20
[ 5848.544615] [<c034f096>] really_probe+0xe6/0x180
[ 5848.544624] [<c03bada1>] ? usb_match_id+0x41/0x60
[ 5848.544641] [<c034f16e>] driver_probe_device+0x3e/0x50
[ 5848.544653] [<c034f209>] __driver_attach+0x89/0x90
[ 5848.544664] [<c034e943>] bus_for_each_dev+0x53/0x80
[ 5848.544676] [<c034eec9>] driver_attach+0x19/0x20
[ 5848.544685] [<c034f180>] ? __driver_attach+0x0/0x90
[ 5848.544694] [<c034e317>] bus_add_driver+0x1c7/0x240
[ 5848.544712] [<c034f3a9>] driver_register+0x69/0x140
[ 5848.544727] [<c02c0020>] ? as_init_queue+0x60/0xd0
[ 5848.544743] [<c03bbc0c>] usb_register_driver+0x7c/0x100
[ 5848.544753] [<c020b280>] ? sysfs_ilookup_...

Read more...

Revision history for this message
bigiulio (bigiulio) wrote :

Just to confirm exactly the same behaviour is observed in my environment (same configuration as ozstriker78 one)

Revision history for this message
ozstriker78 (ozstriker78) wrote :

I've updated to the new proposed kernel and it's still happening (usb-storage is failing).....

# uname -a
Linux localhost 2.6.28-13-generic #44-Ubuntu SMP Tue Jun 2 07:57:31 UTC 2009 i686 GNU/Linux
# dmesg
[ 167.992056] usb 1-3: new high speed USB device using ehci_hcd and address 4
[ 168.137276] usb 1-3: configuration #1 chosen from 1 choice
[ 168.140660] usb-storage: probe of 1-3:1.0 failed with error -1
[ 168.141381] usb 1-3: USB disconnect, address 4
[ 175.596053] usb 1-3: new high speed USB device using ehci_hcd and address 5
[ 175.741279] usb 1-3: configuration #1 chosen from 1 choice
[ 175.745538] usb-storage: probe of 1-3:1.0 failed with error -5
[ 175.746486] usb-storage: probe of 1-3:1.1 failed with error -5
[ 175.747664] usb-storage: probe of 1-3:1.2 failed with error -1
[ 175.750047] usb-storage: probe of 1-3:1.3 failed with error -1
[ 175.869052] usbcore: registered new interface driver usbserial
[ 175.869091] USB Serial support registered for generic
[ 175.869186] usbcore: registered new interface driver usbserial_generic
[ 175.869192] usbserial: USB Serial Driver core
[ 175.882780] USB Serial support registered for GSM modem (1-port)
[ 175.882874] option 1-3:1.0: GSM modem (1-port) converter detected
[ 175.883106] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB0
[ 175.883131] option 1-3:1.1: GSM modem (1-port) converter detected
[ 175.883251] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB1
[ 175.883303] usbcore: registered new interface driver option
[ 175.883309] option: v0.7.2:USB Driver for GSM modems

Revision history for this message
ozstriker78 (ozstriker78) wrote :

also, I've noticed that lsusb is showing a different device name. I believe this new name is accurate and that the one in the title of this bug is wrong...

# lsusb
Bus 001 Device 005: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem

Revision history for this message
ozstriker78 (ozstriker78) wrote :
Download full text (3.4 KiB)

I've even tried with the latest stable release of the kernel 2.6.29.4....

# uname -a
Linux localhost 2.6.29-02062904-generic #02062904 SMP Sun May 24 00:14:52 UTC 2009 i686 GNU/Linux
# dmesg
[ 192.812065] usb 1-3: new high speed USB device using ehci_hcd and address 3
[ 192.958902] usb 1-3: configuration #1 chosen from 1 choice
[ 193.058632] Initializing USB Mass Storage driver...
[ 193.059445] usb-storage: probe of 1-3:1.0 failed with error -1
[ 193.059495] usbcore: registered new interface driver usb-storage
[ 193.059504] USB Mass Storage support registered.
[ 193.083489] usb 1-3: USB disconnect, address 3
[ 200.408057] usb 1-3: new high speed USB device using ehci_hcd and address 4
[ 200.554921] usb 1-3: configuration #1 chosen from 1 choice
[ 200.598111] usb-storage: probe of 1-3:1.0 failed with error -5
[ 200.598613] usb-storage: probe of 1-3:1.1 failed with error -5
[ 200.603076] usb-storage: probe of 1-3:1.2 failed with error -1
[ 200.606444] usb-storage: probe of 1-3:1.3 failed with error -1
[ 200.677584] usbcore: registered new interface driver usbserial
[ 200.677602] USB Serial support registered for generic
[ 200.677643] usbcore: registered new interface driver usbserial_generic
[ 200.677646] usbserial: USB Serial Driver core
[ 200.691436] USB Serial support registered for GSM modem (1-port)
[ 200.691476] option 1-3:1.0: GSM modem (1-port) converter detected
[ 200.691604] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB0
[ 200.691615] option 1-3:1.1: GSM modem (1-port) converter detected
[ 200.691665] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB1
[ 200.691685] usbcore: registered new interface driver option
[ 200.691687] option: v0.7.2:USB Driver for GSM modems
[ 204.467771] BUG: scheduling while atomic: swapper/0/0x10010000
[ 204.467781] Modules linked in: option usbserial usb_storage xt_conntrack binfmt_misc radeon drm ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp lp pcmcia joydev snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device thinkpad_acpi iTCO_wdt iTCO_vendor_support nsc_ircc ipw2100 libipw led_class yenta_socket rsrc_nonstatic pcmcia_core lib80211 intel_agp snd soundcore ppdev psmouse serio_raw nvram irda pcspkr video agpgart snd_page_alloc shpchp parport_pc parport crc_ccitt output reiserfs sha256_generic aes_i586 aes_generic cbc usbhid e1000 dm_crypt
[ 204.467941]
[ 204.467949] Pid: 0, comm: swapper Not tainted (2.6.29-02062904-generic #02062904) 23736YU
[ 204.467958] EIP: 0060:[<c0315dec>] EFLAGS: 00000202 CPU: 0
[ 204.467973] EIP is at acpi_idle_enter_simple+0xfd/0x138
[ 204.467981] EAX: c07c2cd8 EBX: 00000d2f ECX: 0000002f EDX: 01183000
[ 204.467988] ESI: 00000000 EDI: f6ec6450 EBP: c0739f7c ESP: c0739f64
[ 204.467996] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[ 204.468003] CR0: 8005003b CR2: b7f34000 CR3: 34fc0000 CR4: 00000690
[ 204.468011] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[ 204.468018] DR6: ffff0...

Read more...

Revision history for this message
ozstriker78 (ozstriker78) wrote :

I have filed a new bug with bugzilla.kernel.org....

http://bugzilla.kernel.org/show_bug.cgi?id=13496

Hopefully it will get attention there. You may want to also post data about your hardware.
 Please see http://www.kernel.org/pub/linux/docs/lkml/reporting-bugs.html and follow the form the same way that I did. This will most likely get their attention.

Revision history for this message
ozstriker78 (ozstriker78) wrote :
Download full text (7.3 KiB)

It seems that there is some sort of race condition. I was able to get the
usb-storage driver to work, but it still seems to crash. I wrote a basic
script to rmmod all the related device drivers, then load them up in a specific
order, with a sleep statement.

Here is the script:

===== cut ========
rmmod usb_storage
rmmod option
rmmod usbserial
echo "sleeping for 2 seconds to let the drivers unload...." && sleep 2
modprobe option
echo "sleeping for 2 seconds to make usb_storage detect the storage device..."
&& sleep 2 && echo "done sleeping"
modprobe usb_storage
===== cut ========

If I set the sleep time to 10 seconds, the usb_storage device isn't detected.
If I take out the "sleep 2", then the usb_storage device isn't detected either.
 So it seems there needs to be a delay after the "option" module is loaded in
order for usb_storage to see the storage device. What doesn't make sense is
that if you wait more than 10 seconds after the "option" driver is loaded, then
usb_storage can't see the storage device.

Here is dmesg (something is still crashing):

root@rgarcia-desktop:/# dmesg
[ 5023.686339] usbcore: deregistering interface driver usb-storage
[ 5023.743112] usbcore: deregistering interface driver option
[ 5023.743346] option1 ttyUSB1: GSM modem (1-port) converter now disconnected
from ttyUSB1
[ 5023.743393] option 1-3:1.1: device disconnected
[ 5023.743622] option1 ttyUSB0: GSM modem (1-port) converter now disconnected
from ttyUSB0
[ 5023.743667] option 1-3:1.0: device disconnected
[ 5023.743703] USB Serial deregistering driver GSM modem (1-port)
[ 5023.751374] usbcore: deregistering interface driver usbserial_generic
[ 5023.751434] USB Serial deregistering driver generic
[ 5023.751474] usbcore: deregistering interface driver usbserial
[ 5025.783499] usbcore: registered new interface driver usbserial
[ 5025.783541] USB Serial support registered for generic
[ 5025.783643] usbcore: registered new interface driver usbserial_generic
[ 5025.783650] usbserial: USB Serial Driver core
[ 5025.794128] USB Serial support registered for GSM modem (1-port)
[ 5025.794228] option 1-3:1.0: GSM modem (1-port) converter detected
[ 5025.794466] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB0
[ 5025.794494] option 1-3:1.1: GSM modem (1-port) converter detected
[ 5025.794620] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB1
[ 5025.794674] usbcore: registered new interface driver option
[ 5025.794680] option: v0.7.2:USB Driver for GSM modems
[ 5027.847140] Initializing USB Mass Storage driver...
[ 5027.856108] ------------[ cut here ]------------
[ 5027.856117] WARNING: at
/home/kernel-ppa/mainline/build/fs/proc/generic.c:547
proc_register+0xa0/0x130()
[ 5027.856126] Hardware name: 23736YU
[ 5027.856131] proc_dir_entry 'scsi/usb-storage' already registered
[ 5027.856137] Modules linked in: usb_storage(+) option usbserial nls_cp437
isofs ppp_deflate zlib_deflate bsd_comp ppp_async xt_conntrack binfmt_misc
radeon drm ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4
xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables
bridge stp lp pcmcia joydev snd_intel8x0 snd_ac97_codec ac97_bus snd_pc...

Read more...

Revision history for this message
Pieter (diepes) wrote :

I have the same problem, the GSM works fine.
Bus 004 Device 009: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem

Ubuntu with kernel 2.6.30
Linux pumba 2.6.30-020630-generic #020630 SMP Wed Jun 10 09:45:40 UTC 2009 i686 GNU/Linux

I dont think this is a duplicate bug, different device.

Revision history for this message
Henning Mersch (ubuntu-hmersch) wrote :

Same here - modem works fine while usb-storage fails on jaunty, latest updates installed:
with 2.6.28-13-server kernel.

My device is
Bus 001 Device 015: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
(Vodafone Websession Stick)

On my eeepc, running Easy Peasy 1.1 (I think this is hardy based), both works just fine.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.