Re: [Bugme-new] [Bug 14118] New: USB storage: "No sense [current]" when connecting

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

 



On Sat, 5 Sep 2009, [UTF-8] Mantas MikulÄ?nas wrote:

> usbmon trace attached (and uploaded to
> <http://sine.cluenet.org/~grawity/trash/usbmon-2u.log>)

The usbmon trace shows several related problems.

The phone reports that it has two logical units (LUNs).  It says that
LUN 0 has 120093 sectors (60 MB) and LUN 1 has 3995649 sectors (2 GB).

The first problem occurs when the kernel tries to read 8 sectors from
LUN 0 starting at sector 120072.  The phone provides only 4 sectors of
data together with a Check Condition error indication, but when asked
for more detailed error information (Request Sense) it sends no error
data (No sense).  With no error info, the kernel thinks that nothing
was really wrong so it tries issuing the READ command again, with the
same result, over and over...  This unending loop is the second
problem.

The third problem is like the first; it occurs when the kernel tries to
read sector 3995648 of LUN 1 (the last sector).  The same sort of thing
happens; the phone provides no data and an error indication but no
error data, so the command is retried over and over.

The first and third problems are caused by bugs in the phone.  There
may be no good way around the first, but you should be able to fix the
third by specifying the "quirks" module parameter for usb-storage.  
Add a line saying

options usb-storage quirks=fce:e0c6:c

to your /etc/modprobe.conf file.  This will tell the kernel that each 
LUN really has one fewer sector than the phone claims.

The second problem has nothing to do with USB; it is a bug in the SCSI
layer.  If the module parameter doesn't fix everything, I suggest this
bug report be reassigned to James Bottomley rather than Greg
Kroah-Hartman and the component be changed from USB to SCSI.

Alan Stern

--
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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux