Matthew Dharm wrote:
> 
> Specifically, I'm looking to see the following behaviors:
> 
> (1) Kernel reports VFS disk change detected when it happens (i.e. is it
> actually detected or not)
I'll have to look at this later.

> (2) Does the device detach from the bus when media is not present?
I can confirm that this is the case with my device. This is the device layout
without the media
T:  Bus=01 Lev=02 Prnt=02 Port=03 Cnt=03 Dev#= 11 Spd=12  MxCh= 4
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0451 ProdID=2046 Rev= 1.25
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=255ms

This is the device layout with the media inserted:

T:  Bus=01 Lev=02 Prnt=02 Port=03 Cnt=03 Dev#= 11 Spd=12  MxCh= 4
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0451 ProdID=2046 Rev= 1.25
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=255ms
T:  Bus=01 Lev=03 Prnt=11 Port=00 Cnt=01 Dev#= 18 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=054c ProdID=002d Rev= 1.00
S:  Manufacturer=Sony
S:  Product=MSAC-US1
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=04 Prot=01 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
E:  Ad=83(I) Atr=03(Int.) MxPS=   0 Ivl=255ms

And dmesg reports something like the following when I do a quick media change:
usb.c: USB disconnect on device 17
hub.c: USB new device connect on bus1/2/4/1, assigned device number 18
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 18

> I have some indications that some MemoryStick readers detach themselves
> from the bus when media is not present, and that the sense keys returned
> when it is next accessed do not trigger a media-change event.  I'd like
> some confirmation of this behavior, if possible, before I think about a
> workaround.
OK.

Brad

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to