On Sun, 16 May 2004, Pete Zaitcev wrote:

> This is a curious tidbit from my queue.
> Do we know what this is for? Applicable for 2.4?
> 
> -- Pete
> 
> diff -urp -X dontdiff linux-2.4.27-pre2/drivers/usb/storage/usb.h 
> linux-2.4.27-pre2-usb/drivers/usb/storage/usb.h
> --- linux-2.4.27-pre2/drivers/usb/storage/usb.h       2004-05-15 22:34:34.000000000 
> -0700
> +++ linux-2.4.27-pre2-usb/drivers/usb/storage/usb.h   2004-05-16 00:17:19.000000000 
> -0700
> @@ -99,6 +99,8 @@ struct us_unusual_dev {
>  #define US_FL_SINGLE_LUN      0x00000001 /* allow access to only LUN 0           */
>  #define US_FL_MODE_XLATE      0x00000002 /* translate _6 to _10 commands for
>                                                   Win/MacOS compatibility */
> +#define US_FL_NEED_OVERRIDE   0x00000004 /* unusual_devs entry is necessary */
> + /* XXX US_FL_NEED_OVERRIDE is a reservation. Do not send to Marcelo!! */
>  #define US_FL_IGNORE_SER      0x00000010 /* Ignore the serial number given  */
>  #define US_FL_SCM_MULT_TARG   0x00000020 /* supports multiple targets */
>  #define US_FL_FIX_INQUIRY     0x00000040 /* INQUIRY response needs fixing */

I added the flag, but someone else -- maybe you -- put in the XXX comment.

It's for the Casio QV cameras, where the manufacturer shipped two 
different devices using the same VendorID, ProductID, and Revision 
numbers.  One of the devices requires a Protocol override and the other 
one doesn't; this flag prevents usb-storage from logging messages about 
unneeded overrides.

I haven't seen any 2.4 users writing in about these messages, and the code
that suppresses the message when that flag is present was never added to
the 2.4 driver.  (It's a one-liner if you would like to put it in.)  But
the flag itself is present in unusual_devs.h, so it needs to be defined in
the usb.h header.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&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