Matthew Dharm wrote:

Search the linux-usb-devel archives for a patch entitled "help vendors
count to 1" -- that patch should help you. It's already been submitted for
inclusion in the next kernel cycle.




thanks, it works great.
To avoid the search the patch is this one:

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/08/22 11:49:19-07:00 [EMAIL PROTECTED] # as356
# # drivers/usb/storage/transport.c
# 2004/08/22 11:48:49-07:00 [EMAIL PROTECTED] +2 -1
# as356
# diff -Nru a/drivers/usb/storage/transport.c b/drivers/usb/storage/transport.c
--- a/drivers/usb/storage/transport.c Sun Aug 22 11:52:19 2004
+++ b/drivers/usb/storage/transport.c Sun Aug 22 11:52:19 2004
@@ -911,6 +911,7 @@
int result;


/* issue the command */
+ us->iobuf[0] = 0;
result = usb_stor_control_msg(us, us->recv_ctrl_pipe,
US_BULK_GET_MAX_LUN, USB_DIR_IN | USB_TYPE_CLASS | @@ -921,7 +922,7 @@
result, us->iobuf[0]);


    /* if we have a successful request, return the result */
-    if (result == 1)
+    if (result >= 0)
        return us->iobuf[0];

    /*

I would like to know what are the signs which force you to add an UNUSUAL_DEV entry in unusual_devs.h ?

Matt

On Sun, Aug 29, 2004 at 01:09:15AM +0200, Cyril Scetbon wrote:


Alan Stern wrote:



On Sat, 28 Aug 2004 [EMAIL PROTECTED] wrote:





Hi all,

I've bought the above device and I would like to use it with linux.
I suppose it's considered as an usb mass storage.
when I connect it to my desktop (usb connection) usb-storage module is loaded by
the kernel.
In /proc/bus/usb/devices I can read :
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 7 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=132b ProdID=0013 Rev= 0.01
S: Manufacturer=KONICA MINOLTA
S: Product=DiMAGE CAMERA
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms


The Driver usb-storage is not associated with my device !!!

I was thinking that my kernel did not know how to handle this device and I've
added the line below in
/usr/src/linux-2.6.7/drivers/usb/storage/unusual_devs.h, but my kernel says
"kernel: usb-storage: This device (132b,0013,0001 S 06 P 50) has an unneeded
SubClass entry in unusual_devs.h" and so I think it already knows it.


UNUSUAL_DEV(  0x132b, 0x0013, 0x0001, 0x0001,
             "Minolta",
             "DIMAGE X31",
             US_SC_SCSI, US_PR_DEVICE, NULL, 0 ),

Any help is welcome :-)



The DiMAGE cameras have a number of problems. I can't tell from your message what your particular problem is, though. Try doing this: Take out your unusual_devs.h entry and turn on the usb-storage verbose debugging option in the kernel configuration. Then rebuild the driver, try plugging in the camera, and post the debugging messages that show up in the system log.


Alan Stern


See what I get after having activate verbose messages in usb-storage:

Aug 29 01:18:59 NecPlus kernel: Initializing USB Mass Storage driver...
Aug 29 01:18:59 NecPlus kernel: usb-storage: USB Mass Storage device detected
Aug 29 01:18:59 NecPlus kernel: usb-storage: altsetting is 0, id_index is 92
Aug 29 01:18:59 NecPlus kernel: usb-storage: -- associate_dev
Aug 29 01:18:59 NecPlus kernel: usb-storage: Transport: Bulk
Aug 29 01:18:59 NecPlus kernel: usb-storage: Protocol: Transparent SCSI
Aug 29 01:18:59 NecPlus kernel: usb-storage: Endpoints: In: 0xd634db94 Out: 0xd634db80 Int: 0x00000000 (Period 0)
Aug 29 01:18:59 NecPlus kernel: usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1
Aug 29 01:18:59 NecPlus kernel: usb-storage: GetMaxLUN command result is 0, data is 85
Aug 29 01:18:59 NecPlus kernel: usb-storage: storage_probe() failed
Aug 29 01:18:59 NecPlus kernel: usb-storage: -- usb_stor_release_resources
Aug 29 01:18:59 NecPlus kernel: usb-storage: -- dissociate_dev
Aug 29 01:18:59 NecPlus kernel: usb-storage: probe of 1-2:1.0 failed with error -1
Aug 29 01:18:59 NecPlus kernel: usbcore: registered new driver usb-storage
Aug 29 01:18:59 NecPlus kernel: USB Mass Storage support registered.




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel







------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to