On Wed, 9 May 2007, Benjamin von Engelhardt wrote:

> Am Dienstag, 8. Mai 2007 21:16 schrieb Alan Stern:
> >
> > > May  8 10:46:07 benz505sx kernel: usb-storage: -- Result from auto-sense
> > > is 0 May  8 10:46:07 benz505sx kernel: usb-storage: -- code: 0x70, key:
> > > 0x3, ASC: 0x30, ASCQ: 0x1
> >
> > This error message means "Medium Error: Cannot read medium - unknown
> > format".  However I suspect that code is incorrect, because the command
> > was ALLOW_MEDIUM_REMOVAL, which doesn't require the slot to read anything
> >
> > >from the stick.
> 
> > More likely the slot just can't handle the command at all.  Fortunately
> > it's possible to prevent the command from being sent.  If you post the
> > output from "lsusb -v" for your device, I can send you a patch.  What
> > version of the kernel are you running?
> 
> lsusb -v:
> 
> Bus 003 Device 002: ID 054c:0069 Sony Corp. Memorystick MSC-U03 Reader
> Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               1.10
>   bDeviceClass            0 (Defined at Interface level)
>   bDeviceSubClass         0 
>   bDeviceProtocol         0 
>   bMaxPacketSize0        16
>   idVendor           0x054c Sony Corp.
>   idProduct          0x0069 Memorystick MSC-U03 Reader
>   bcdDevice            1.07

> I'm using the kernel version 2.6.20.2 with the options I mentionend in my 
> first posting. 
> 
> > > > On the other hand if that message shows up only when the slot is empty,
> > > > and if your only problem is that the log files keep growing, then
> > > > there's nothing to worry about.  Simply turn off
> > > > CONFIG_USB_STORAGE_DEBUG; that will prevent these messages from being
> > > > logged.
> > >
> > > Thats something for a start. But it would be great if I get the slot
> > > working...
> >
> > Does the slot not work?  You haven't said what happens when you try to use
> > the stick.  Those errors messages above aren't fatal.
> The stick is not mountable. When I insert it (a Sony Memory Stick M2 micro in 
> an M2 Adaptor) into the slot some program (I think the kernel modul sonypi or 
> so, which gives also access to the fn-keys) tells me, that I inserted a 
> memory stick. But there is no accessable device under /dev. The stick itself 
> is working, as I can use it in my phone and access it through the phone if I 
> connect the phone with a usb-cable with my laptop.

Okay, here's the patch for 2.6.20.  Let me know what happens.  If 
possible, include the entire dmesg output starting from the time you 
insert the stick.

Alan Stern


Index: usb-2.6/drivers/usb/storage/unusual_devs.h
===================================================================
--- usb-2.6.orig/drivers/usb/storage/unusual_devs.h
+++ usb-2.6/drivers/usb/storage/unusual_devs.h
@@ -616,7 +616,7 @@ UNUSUAL_DEV(  0x054c, 0x0069, 0x0000, 0x
                "Sony",
                "Memorystick MSC-U03",
                US_SC_UFI, US_PR_CB, NULL,
-               US_FL_SINGLE_LUN ),
+               US_FL_SINGLE_LUN | US_FL_NOT_LOCKABLE ),
 
 /* Submitted by Nathan Babb <[EMAIL PROTECTED]> */
 UNUSUAL_DEV(  0x054c, 0x006d, 0x0000, 0x9999,


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to