On Tue, 13 Apr 2004, Fernando Medina, Jr. wrote:
> I got the following in my dmesg with 2.6.5-mm5, I don't think I got this
> in 2.6.4 kernels. The camera is a Casio EXslim, EX-M1, 1.2 Megapixel
> Camera.
>
> It seems to work ok, I can download pics no prob, but message in dmesg
> said to send it in, so here it is, hope it helps.
>
> usb 2-1: new full speed USB device using address 5
> usb-storage: This device (07cf,1001,1000 S 05 P 01) has an unneeded
> Protocol entry in unusual_devs.h
> Please send a copy of this message to
> <[EMAIL PROTECTED]>scsi3 : SCSI emulation for USB
Thanks for sending this in. Unfortunately, Casio has marketed (at least)
two different cameras with the same device ID numbers. One of them
requires the Protocol entry and the others (like yours) don't.
Matt, this patch will prevent those messages from being printed. It's an
ad-hoc approach, but until another device exhibits the same sort of
difficulties we can live with it. Besides, this whole business about
logging unneeded unusual_devs overrides was only intended as a temporary
scheme for finding out what entries can be removed.
Alan Stern
===== drivers/usb/storage/usb.c 1.113 vs edited =====
--- 1.113/drivers/usb/storage/usb.c Wed Mar 17 14:16:51 2004
+++ edited/drivers/usb/storage/usb.c Wed Apr 14 14:41:16 2004
@@ -490,7 +490,17 @@
if (unusual_dev->useTransport != US_PR_DEVICE &&
us->protocol == idesc->bInterfaceProtocol)
msg += 2;
- if (msg >= 0)
+ if (msg >= 0
+
+ /* Don't print anything about the Protocol entry for the
+ * Casio QV (vendor=0x07cf, product=0x1001). Different
+ * versions of that camera were marketed with the same
+ * ID numbers; some need the override and some don't.
+ */
+ && !(msg == 1 &&
+ ddesc->idVendor == 0x07cf &&
+ ddesc->idProduct == 0x1001))
+
printk(KERN_NOTICE USB_STORAGE "This device "
"(%04x,%04x,%04x S %02x P %02x)"
" has %s in unusual_devs.h\n"
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel