usb_storage lost exclusion for Huawei 220 UMTS dongle

Bug #464429 reported by Cees de Groot
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Linux
Invalid
Medium
linux (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

This looks like a regression in the most recent Karmic kernel update (2.6.31-14). The Huwai UMTS modem comes with a built in rom drive containing the windows drivers, but this thing is messed up and useless anyway under Linux so usb_storage should ignore it. As far as I can tell, this was patched in 2.6.20 and the modem has been working fine until the kernel update, where usb_storage starts probing for the detected rom drive and fails horribly:

[75524.317102] usb-storage: device found at 10
[75524.317107] usb-storage: waiting for device to settle before scanning
[75529.324067] usb-storage: device scan complete
[75529.335211] scsi 21:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[75529.391662] sr0: scsi-1 drive
[75529.391921] sr 21:0:0:0: Attached scsi CD-ROM sr0
[75529.392074] sr 21:0:0:0: Attached scsi generic sg1 type 5
[75540.055162] sr0: CDROM (ioctl) error, command: Get configuration 46 00 00 00 00 00 00 00 20 00
[75540.055196] sr: Sense Key : No Sense [current]
[75540.055206] sr: Add. Sense: No additional sense information
[75540.368109] sr0: CDROM (ioctl) error, command: Get configuration 46 00 00 00 00 00 00 00 20 00
[75540.368121] sr: Sense Key : No Sense [current]
[75540.368125] sr: Add. Sense: No additional sense information
[75540.501101] option: option_instat_callback: error -108
[75540.501212] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[75540.501233] option 5-2:1.0: device disconnected
[75540.501302] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[75540.501318] option 5-2:1.1: device disconnected
[75540.616142] usb 5-2: reset full speed USB device using uhci_hcd and address 10
[75540.783808] option 5-2:1.1: GSM modem (1-port) converter detected
[75540.783992] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB0
[75540.787489] option 5-2:1.0: GSM modem (1-port) converter detected
[75540.787656] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB1
[75541.184102] option: option_instat_callback: error -108
[75541.188573] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[75541.188628] option 5-2:1.0: device disconnected
[75541.188866] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[75541.188924] option 5-2:1.1: device disconnected
[75541.306193] usb 5-2: reset full speed USB device using uhci_hcd and address 10
[75541.376295] usb 5-2: USB disconnect, address 10
[75541.390186] scsi 21:0:0:0: rejecting I/O to dead device
[75541.390999] scsi 21:0:0:0: rejecting I/O to dead device

The kernel doesn't seem to know about resetting USB "subdevices" so the whole dongle goes away, comes back, and the thing repeats.

Work-around is to open a terminal and rmmod usb_storage, but this is not a long-term solution.

ProblemType: Bug
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: cees 4658 F.... pulseaudio
 /dev/snd/pcmC0D0p: cees 4658 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf6ffc000 irq 21'
   Mixer name : 'SigmaTel STAC9205'
   Components : 'HDA:838476a0,102801fe,00100204 HDA:14f12c06,14f1000f,00100000'
   Controls : 25
   Simple ctrls : 16
Date: Fri Oct 30 09:50:59 2009
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=UUID=a8a0b9cf-1def-4a0b-a222-958ee3b76e3c
MachineType: Dell Inc. Latitude D830
NonfreeKernelModules: nvidia
Package: linux-image-generic 2.6.31.14.27
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcCmdLine: root=UUID=3a25d684-b99d-4907-8bfa-2a2f527d4baa ro quiet splash crashkernel=384M-2G:64M,2G-:128M
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
RelatedPackageVersions:
 linux-backports-modules-2.6.31-14-generic N/A
 linux-firmware 1.24
SourcePackage: linux-meta
Uname: Linux 2.6.31-14-generic i686
WpaSupplicantLog:

dmi.bios.date: 12/11/2008
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A14
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA14:bd12/11/2008:svnDellInc.:pnLatitudeD830:pvr:rvnDellInc.:rn:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: Latitude D830
dmi.sys.vendor: Dell Inc.

Revision history for this message
Cees de Groot (casedeg) wrote :
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

[This is an automated message. Apologies if it has reached you inappropriately.]

This bug was reported against the linux-meta package when it likely should have been reported against the linux package instead. We are automatically transitioning this to the linux kernel package so that the appropriate teams are notified and made aware of this issue.

If this bug really is a bug in the linux-meta package you can move it back to linux-meta and set the Status to Confirmed, or contact us on the #ubuntu-kernel channel on the FreeNode IRC server. Thanks.

affects: linux-meta (Ubuntu) → linux (Ubuntu)
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Looks like there may be a patch to fix this in the next 2.6.31.6 stable kernel:

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

I'll try to build you a test kernel with that patch applied so you can confirm. Please stay tuned. Thanks.

Changed in linux (Ubuntu):
assignee: nobody → Leann Ogasawara (leannogasawara)
importance: Undecided → Medium
status: New → In Progress
Changed in linux:
status: Unknown → Fix Released
tags: added: 2.6.31.6
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi cdegroot,

Can you give the 2.6.31.6 mainline kernel build a test in Karmic and let me know your results? Thanks.

http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.31.6/

Revision history for this message
Cees de Groot (casedeg) wrote :

Will do, thanks so far!

Revision history for this message
Cees de Groot (casedeg) wrote :

installed - some small issues with DKMS during dpkg -i, this also prevented me from booting in my regular desktop so my testing was in a root shell after a recovery mode boot.

Inserted modem, sr0 popped up in dmesg but no errors and resetting of the device like with 2.6.31-14. Mounting sr0 triggers a bunch of errors, but seems to work (ls worked, that was the extent of my testing because I couldn't actually care less about the content of the embedded ROM device ;-)).

Summary: looks like the correct patch is in there, my apologies for not further testing the DKMS/full boot issues, I found a little slot to do a quick test during my lunch break, if you want further testing I'm more than happy to oblige.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Just fyi, Karmic test kernels with the complete 2.6.31.6 patch set applied for testing are available at the following PPA. You might want to give this a try and see that it resolves the boot issue. Thanks!

https://launchpad.net/~stefan-bader-canonical/+archive/karmic

Changed in linux:
status: Fix Released → Confirmed
Revision history for this message
Cees de Groot (casedeg) wrote :

FYI - latest 2.6.31-16-generic from Karmic still shows this issue - should the patches from the testing kernel referred to above already be in or not? (if not, I'll be more than happy to test a test kernel)

Revision history for this message
Thorsten Hesemeyer (thorsten-hesemeyer) wrote :

Also not solved for kernel 2.6.31-17-generic-pae from Karmic - still shows this issue.

Revision history for this message
Thorsten Hesemeyer (thorsten-hesemeyer) wrote :

Update:
    Works now!!!

Steps taken:
1. Upgrade Firmware of Huawei E220 (latest Firmware from 2007 ;-)
    http://software.a1.net/vmc/

2. Installed usb-modeswitch software package

3. Enabled Huawei E220 in /etc/usb_modeswitch.conf with these three lines:

    DefaultVendor= 0x12d1
    DefaultProduct= 0x1003
    DetachStorageOnly=1

That did the trick.

Revision history for this message
Cees de Groot (casedeg) wrote :

I don't know what firmware I have, but just usb-modeswitch alone doesn't seem to cut it for me. Neither does the latest Karmic production kernel (2.6.31-19-generic-pae here)

Is it still useful to test the current test kernel?

Revision history for this message
Cees de Groot (casedeg) wrote :

Update: still happening on Lucid kernel (2.6.32-16-generic). Did not have success with usb-modeswitch so far, will try to see whether the firmware upgrade makes a difference.

Changed in linux (Ubuntu):
assignee: Leann Ogasawara (leannogasawara) → nobody
status: In Progress → Triaged
Changed in linux:
status: Confirmed → Invalid
Changed in linux:
importance: Unknown → Medium
Revision history for this message
Brad Figg (brad-figg) wrote : Unsupported series, setting status to "Won't Fix".

This bug was filed against a series that is no longer supported and so is being marked as Won't Fix. If this issue still exists in a supported series, please file a new bug.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: Triaged → Won't Fix
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.