2005-02-24 17:59:25

by Lukas Hejtmanek

[permalink] [raw]
Subject: USB 2.0 Mass storage device

Hello,

I have a new MSI Mega Stick 511 USB 2.0 Mass storage device. In my laptop I have
USB 2.0 port (Acer TM242), when I connect device, only uhci_hcd driver detect
device. Does anyone have some suggestions? Thanks.

--
Luk?? Hejtm?nek


2005-02-24 18:13:59

by Greg KH

[permalink] [raw]
Subject: Re: USB 2.0 Mass storage device

On Thu, Feb 24, 2005 at 06:59:18PM +0100, Lukas Hejtmanek wrote:
> Hello,
>
> I have a new MSI Mega Stick 511 USB 2.0 Mass storage device. In my laptop I have
> USB 2.0 port (Acer TM242), when I connect device, only uhci_hcd driver detect
> device. Does anyone have some suggestions? Thanks.

Is the ehci-hcd driver loaded? And is your device a high speed one?
USB 2.0 support does not mean that it actually goes at high speeds, I
have a USB 2.0 "compliant" low speed USB keyboard here :)

thanks,

greg k-h

2005-02-24 18:24:06

by Lukas Hejtmanek

[permalink] [raw]
Subject: Re: USB 2.0 Mass storage device

On Thu, Feb 24, 2005 at 10:13:47AM -0800, Greg KH wrote:
> Is the ehci-hcd driver loaded? And is your device a high speed one?
> USB 2.0 support does not mean that it actually goes at high speeds, I
> have a USB 2.0 "compliant" low speed USB keyboard here :)

Yes, ehci-hcd driver is loaded. (kernel is 2.6.11-rc3-bk4)

This is the device:
http://www.msi.com.tw/program/support/download/dld/spt_dld_detail.php?UID=607&kind=6

Btw, I thought, that ehci-hcd driver handles both usb 2.0 and 1.1. Does it?

--
Luk?? Hejtm?nek

2005-02-24 18:27:58

by Lukas Hejtmanek

[permalink] [raw]
Subject: Re: USB 2.0 Mass storage device

On Thu, Feb 24, 2005 at 07:23:45PM +0100, Matthias-Christian Ott wrote:
> Is hotplug enabled (it should detect it as a scsi generic mass storage)?

No, I detect device loading proper modules. With uhci-hcd it works perfectly
except the speed. ehci-hcd does not detect it at all.

--
Luk?? Hejtm?nek

2005-02-24 18:27:55

by Matthias-Christian Ott

[permalink] [raw]
Subject: Re: USB 2.0 Mass storage device

Lukas Hejtmanek wrote:

>Hello,
>
>I have a new MSI Mega Stick 511 USB 2.0 Mass storage device. In my laptop I have
>USB 2.0 port (Acer TM242), when I connect device, only uhci_hcd driver detect
>device. Does anyone have some suggestions? Thanks.
>
>
>
Hi!
Is hotplug enabled (it should detect it as a scsi generic mass storage)?

Matthias-Christian Ott

2005-02-24 18:49:42

by Greg KH

[permalink] [raw]
Subject: Re: USB 2.0 Mass storage device

On Thu, Feb 24, 2005 at 07:23:00PM +0100, Lukas Hejtmanek wrote:
> On Thu, Feb 24, 2005 at 10:13:47AM -0800, Greg KH wrote:
> > Is the ehci-hcd driver loaded? And is your device a high speed one?
> > USB 2.0 support does not mean that it actually goes at high speeds, I
> > have a USB 2.0 "compliant" low speed USB keyboard here :)
>
> Yes, ehci-hcd driver is loaded. (kernel is 2.6.11-rc3-bk4)
>
> This is the device:
> http://www.msi.com.tw/program/support/download/dld/spt_dld_detail.php?UID=607&kind=6
>
> Btw, I thought, that ehci-hcd driver handles both usb 2.0 and 1.1. Does it?

No, it hands off the usb 1.1 devices to the usb 1 core inside it. This
is either uhci or ohci, depending on your controller chip.

Unless you put a USB 2.0 hub in front of a usb 1.1 device, then it gets
more complicated, but we'll just ignore that issue for now...

What does /proc/bus/usb/devices show for this device?

thanks,

greg k-h

2005-02-24 19:06:11

by Lukas Hejtmanek

[permalink] [raw]
Subject: Re: USB 2.0 Mass storage device

On Thu, Feb 24, 2005 at 10:49:28AM -0800, Greg KH wrote:
> > This is the device:
> > http://www.msi.com.tw/program/support/download/dld/spt_dld_detail.php?UID=607&kind=6
> >
> > Btw, I thought, that ehci-hcd driver handles both usb 2.0 and 1.1. Does it?
>
> No, it hands off the usb 1.1 devices to the usb 1 core inside it. This
> is either uhci or ohci, depending on your controller chip.
>
> Unless you put a USB 2.0 hub in front of a usb 1.1 device, then it gets
> more complicated, but we'll just ignore that issue for now...
>
> What does /proc/bus/usb/devices show for this device?

When connected through uhci-hcd:
T: Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1462 ProdID=5511 Rev=10.01
S: Manufacturer=MSI
S: Product=MEGA Player 5511
S: SerialNumber=23DE7394D6198090
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms

--
Luk?? Hejtm?nek

2005-02-24 19:13:55

by Greg KH

[permalink] [raw]
Subject: Re: USB 2.0 Mass storage device

On Thu, Feb 24, 2005 at 08:05:48PM +0100, Lukas Hejtmanek wrote:
> On Thu, Feb 24, 2005 at 10:49:28AM -0800, Greg KH wrote:
> > > This is the device:
> > > http://www.msi.com.tw/program/support/download/dld/spt_dld_detail.php?UID=607&kind=6
> > >
> > > Btw, I thought, that ehci-hcd driver handles both usb 2.0 and 1.1. Does it?
> >
> > No, it hands off the usb 1.1 devices to the usb 1 core inside it. This
> > is either uhci or ohci, depending on your controller chip.
> >
> > Unless you put a USB 2.0 hub in front of a usb 1.1 device, then it gets
> > more complicated, but we'll just ignore that issue for now...
> >
> > What does /proc/bus/usb/devices show for this device?
>
> When connected through uhci-hcd:
> T: Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0

Your device is only reporting that it can go at 12Mbit (full speed, not
480Mbit, which is high speed.)

So it's working properly, but not labeled clearly on the box. We've
seen this a lot, you are not alone in your confusion.

I suggest you return it and get a better device.

thanks,

greg k-h

2005-02-24 19:18:21

by Lukas Hejtmanek

[permalink] [raw]
Subject: Re: USB 2.0 Mass storage device

On Thu, Feb 24, 2005 at 11:12:43AM -0800, Greg KH wrote:
> > When connected through uhci-hcd:
> > T: Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
>
> Your device is only reporting that it can go at 12Mbit (full speed, not
> 480Mbit, which is high speed.)

Is this independent of used driver?

--
Luk?? Hejtm?nek

2005-02-24 19:26:12

by Greg KH

[permalink] [raw]
Subject: Re: USB 2.0 Mass storage device

On Thu, Feb 24, 2005 at 08:18:09PM +0100, Lukas Hejtmanek wrote:
> On Thu, Feb 24, 2005 at 11:12:43AM -0800, Greg KH wrote:
> > > When connected through uhci-hcd:
> > > T: Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
> >
> > Your device is only reporting that it can go at 12Mbit (full speed, not
> > 480Mbit, which is high speed.)
>
> Is this independent of used driver?

Yes, this is read from the descriptor of the device.

thanks,

greg k-h

2005-02-24 20:10:36

by Matthias-Christian Ott

[permalink] [raw]
Subject: Re: USB 2.0 Mass storage device

Greg KH wrote:

>On Thu, Feb 24, 2005 at 08:18:09PM +0100, Lukas Hejtmanek wrote:
>
>
>>On Thu, Feb 24, 2005 at 11:12:43AM -0800, Greg KH wrote:
>>
>>
>>>>When connected through uhci-hcd:
>>>>T: Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
>>>>
>>>>
>>>Your device is only reporting that it can go at 12Mbit (full speed, not
>>>480Mbit, which is high speed.)
>>>
>>>
>>Is this independent of used driver?
>>
>>
>
>Yes, this is read from the descriptor of the device.
>
>thanks,
>
>greg k-h
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to [email protected]
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
>
>
>
But why does the usb mass storage give this information to the usb
driver? Shouldn't it report that it works with 480Mbit too?

Matthias-Christian Ott

2005-02-24 21:15:37

by Greg KH

[permalink] [raw]
Subject: Re: USB 2.0 Mass storage device

On Thu, Feb 24, 2005 at 09:10:25PM +0100, Matthias-Christian Ott wrote:
> But why does the usb mass storage give this information to the usb
> driver? Shouldn't it report that it works with 480Mbit too?

What do you mean? The usb-storage driver doesn't care at all what the
speed is. Only the USB core and host controller drivers do.

And if you look at the raw descriptors, which is what is displayed in
/proc/bus/usb/devices in human readable form, the device itself tells
the computer what speed it supports. The host never tells the device
what speed to run at.

Hope this helps,

greg k-h

2005-02-24 21:39:26

by Lukas Hejtmanek

[permalink] [raw]
Subject: Re: USB 2.0 Mass storage device

On Thu, Feb 24, 2005 at 01:15:12PM -0800, Greg KH wrote:
> And if you look at the raw descriptors, which is what is displayed in
> /proc/bus/usb/devices in human readable form, the device itself tells
> the computer what speed it supports. The host never tells the device
> what speed to run at.

I do not think so.

This is another device (Card reader) supporting USB 2.0.

In this case I used only uhci_hcd driver and it reports speed 12.

T: Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=05dc ProdID=b018 Rev= 1.28
S: Manufacturer=Lexar Media
S: Product=Multi-Card Reader
S: SerialNumber=0000246504
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms

In this case I used both ehci_hcd and uhci_hcd drivers (ehci detected device)
and it reports speed 480.

T: Bus=01 Lev=01 Prnt=01 Port=04 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=05dc ProdID=b018 Rev= 1.28
S: Manufacturer=Lexar Media
S: Product=Multi-Card Reader
S: SerialNumber=0000246504
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

So for me it looks like it reports speed according to USB driver or negotiated
speed.

--
Luk?? Hejtm?nek

2005-02-24 21:49:09

by Jason Munro

[permalink] [raw]
Subject: Re: USB 2.0 Mass storage device

On 3:38:53 pm 02/24/05 Lukas Hejtmanek <[email protected]> wrote:
> This is another device (Card reader) supporting USB 2.0.
>
> In this case I used only uhci_hcd driver and it reports speed 12.
>
> T: Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0
> D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
> P: Vendor=05dc ProdID=b018 Rev= 1.28
> S: Manufacturer=Lexar Media
> S: Product=Multi-Card Reader
> S: SerialNumber=0000246504
> C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
> I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
> Driver=usb-storage E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
> E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
>
> In this case I used both ehci_hcd and uhci_hcd drivers (ehci detected
> device) and it reports speed 480.
>
> T: Bus=01 Lev=01 Prnt=01 Port=04 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
> D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
> P: Vendor=05dc ProdID=b018 Rev= 1.28
> S: Manufacturer=Lexar Media
> S: Product=Multi-Card Reader
> S: SerialNumber=0000246504
> C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
> I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
> Driver=usb-storage E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
>
> So for me it looks like it reports speed according to USB driver or
> negotiated speed.

Same here with a new Seagate external USB 2.0 drive. If plugged into my
laptop which does not have USB 2.0 it shows 12 in /dev/bus/usb/devices,
however on a machine with USB 2.0 support it changes to 480.

\__ Jason Munro
\__ [email protected]
\__ http://hastymail.sourceforge.net/