public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Iwo Mergler <iwo@call-direct.com.au>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: "Ozan Çağlayan" <ozan@pardus.org.tr>,
	linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: A really interesting mass-storage BUG introduced after 2.6.18
Date: Thu, 15 Jan 2009 16:13:56 +1100	[thread overview]
Message-ID: <496EC614.4040307@call-direct.com.au> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0901141041070.2192-100000@iolanthe.rowland.org>

Alan Stern wrote:
> On Tue, 13 Jan 2009, [UTF-8] Ozan Çağlayan wrote:
> 
>> Here's the usbmon log:
> ...
> 
> Here's the interesting part, right at the end of the log:
> 
>> ee5f0e80 2495844993 S Bo:1:011:1 -115 31 = 55534243 02000000 00000000 00000600 00000000 00000000 00000000 000000
>> ee5f0e80 2495845078 C Bo:1:011:1 0 31 >
>> ee5f0e80 2495845112 S Bi:1:011:2 -115 13 <
>> ee5f0e80 2495845327 C Bi:1:011:2 0 13 = 55534253 02000000 00000000 01
>> ee5f0e80 2495845338 S Bo:1:011:1 -115 31 = 55534243 03000000 12000000 80000603 00000012 00000000 00000000 000000
>> ee5f0e80 2495845579 C Bo:1:011:1 0 31 >
>> ee4d7280 2495845595 S Bi:1:011:2 -115 18 <
>> ee4d7280 2495845829 C Bi:1:011:2 0 18 = 70000600 0000000a 00000000 3a000000 0000
>> ee5f0e80 2495845850 S Bi:1:011:2 -115 13 <
>> ee5f0e80 2495845955 C Bi:1:011:2 0 13 = 55534253 03000000 00000000 00
> 
> This shows the computer sending a TEST UNIT READY command to the drive, 
> and the drive reporting Unit Attention: Media not present.  So of 
> course Linux believes there is no media loaded in the drive and doesn't 
> try to read the partition table or anything else.
> 
> Presumably if the drive is plugged in during bootup then the BIOS does 
> something to make this error status go away.  It's hard to guess what 
> that would be, however.
> 

It could be a matter of timing. Some badly designed USB devices have a
dead time between power-up and being ready, but show up on the bus as
if they where. The "Media not present" thing could be a symptom of this.

To verify it, try inserting the device slowly. The power contacts in
the USB connector are longer than the data contacts and the device gets
more time to boot.

Regards,

Iwo



  reply	other threads:[~2009-01-15  5:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-11 11:41 A really interesting mass-storage BUG introduced after 2.6.18 Ozan Çağlayan
2009-01-12 22:19 ` Alan Stern
2009-01-13 11:28   ` Ozan Çağlayan
2009-01-14 15:47     ` Alan Stern
2009-01-15  5:13       ` Iwo Mergler [this message]
2009-01-15 15:13         ` Alan Stern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=496EC614.4040307@call-direct.com.au \
    --to=iwo@call-direct.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=ozan@pardus.org.tr \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox