PATCH: some additional unusual_devs-entries for usb-storage-driver, kernel 2.5.68
Subsystems (2)
This patch against 2.5.68 adds support for some digital cameras. Same patch is already applied to the 2.4-ac-series.
It is taken from the lycoris kernel-source.
Hanno Boeck
drivers/usb/storage/unusual_devs.h +25 -0
@@ -236,6 +236,13 @@ US_SC_SCSI, US_PR_CB, NULL, US_FL_SINGLE_LUN | US_FL_START_STOP | US_FL_MODE_XLATE ), +/* This entry is needed because the device reports Sub=ff */ +UNUSUAL_DEV (0x054c ,0x0010 ,0x0106 ,0x0432 , +"Sony" , +"DSC-F707/U10/U20" , +US_SC_SCSI ,US_PR_CB ,NULL , +US_FL_SINGLE_LUN |US_FL_START_STOP |US_FL_MODE_XLATE ), +/* Reported by [email protected] */ UNUSUAL_DEV( 0x054c, 0x0025, 0x0100, 0x0100, "Sony",
@@ -268,6 +275,12 @@ "PEG Mass Storage", US_SC_8070, US_PR_CBI, NULL, US_FL_FIX_INQUIRY ), + +UNUSUAL_DEV (0x054c ,0x0058 ,0x0000 ,0x9999 , +"Sony" , +"PEG-N760C Mass Storage" , +US_SC_8070 ,US_PR_CBI ,NULL , +US_FL_FIX_INQUIRY ), UNUSUAL_DEV( 0x057b, 0x0000, 0x0000, 0x0299, "Y-E Data",
@@ -375,6 +388,12 @@ US_SC_SCSI, US_PR_BULK, NULL, US_FL_FIX_INQUIRY | US_FL_MODE_XLATE), +UNUSUAL_DEV (0x0636 ,0x0003 ,0x0000 ,0x9999 , +"Vivitar" , +"Vivicam 35Xx" , +US_SC_SCSI ,US_PR_BULK ,NULL , +US_FL_START_STOP |US_FL_FIX_INQUIRY |US_FL_MODE_XLATE ), + UNUSUAL_DEV( 0x0644, 0x0000, 0x0100, 0x0100, "TEAC", "Floppy Drive",
@@ -440,6 +459,12 @@ US_FL_SINGLE_LUN | US_FL_START_STOP ), #endif +UNUSUAL_DEV (0x0784 ,0x1688 ,0x0000 ,0x9999 , +"Vivitar" , +"Vivicam 36xx" , +US_SC_SCSI ,US_PR_BULK ,NULL , +US_FL_START_STOP |US_FL_FIX_INQUIRY |US_FL_MODE_XLATE ), + #ifdef CONFIG_USB_STORAGE_FREECOM UNUSUAL_DEV( 0x07ab, 0xfc01, 0x0000, 0x9999, "Freecom",
Quoted 3 lines · Hanno Böck
This patch against 2.5.68 adds support for some digital cameras. Same patch is already applied to the 2.4-ac-series.
It is taken from the lycoris kernel-source.
Any reason you are not sending these to the usb-storage author and maintainer? Or at the least, the usb maintainer and linux-usb-devel list would like to see these.
Also, I think I've commented on these patches before, and never got a response back from the last person who posted them...
thanks,
greg k-h
Quoted 3 lines · Hanno Böck
This patch against 2.5.68 adds support for some digital cameras. Same patch is already applied to the 2.4-ac-series.
It is taken from the lycoris kernel-source.
Ok, in talking with the usb-storage author, I'll be accepting all unushal_devs.h patches now, as long as they contain the following:
- a comment above the entry with a email address of someone who has this device that this entry fixes the driver for them. This is to allow us to possibly remove entries at a later time if the core changes, and get a verification that it's ok to do so.
- a copy of the /proc/bus/usb/devices device entry with the device plugged in and the driver loaded (this should not be in the patch, but in the body of the email.)
So, if there are any outstanding drivers/usb/storage/unusual_devs.h entries that people have floating around, sent them on!
thanks,
greg k-h
Quoted 11 lines · Greg KH
Ok, in talking with the usb-storage author, I'll be accepting all
unushal_devs.hpatches now, as long as they contain the following:
- a comment above the entry with a email address of someone who has this device that this entry fixes the driver for them. This is to allow us to possibly remove entries at a later time if the core changes, and get a verification that it's ok to do so.
- a copy of the/proc/bus/usb/devicesdevice entry with the device plugged in and the driver loaded (this should not be in the patch, but in the body of the email.)
Quoted 2 lines
So, if there are any outstanding
drivers/usb/storage/unusual_devs.hentries that people have floating around, sent them on!
I want to take a moment publically to thank Greg for doing this, which allows me to focus my energies on other parts of the driver.
Matt
Signature · 6 lines
Matthew Dharm Home: [email protected] Maintainer, Linux USB Mass Storage Driver You suck Stef. -- Greg User Friendly, 11/29/97
Quoted 16 lines · Greg KH
Quoted 3 lines · Hanno B?ck
This patch against 2.5.68 adds support for some digital cameras. Same patch is already applied to the 2.4-ac-series.
It is taken from the lycoris kernel-source.Ok, in talking with the usb-storage author, I'll be accepting all
unushal_devs.hpatches now, as long as they contain the following:
- a comment above the entry with a email address of someone who has this device that this entry fixes the driver for them. This is to allow us to possibly remove entries at a later time if the core changes, and get a verification that it's ok to do so.
- a copy of the/proc/bus/usb/devicesdevice entry with the device plugged in and the driver loaded (this should not be in the patch, but in the body of the email.)
Quoted 2 lines
So, if there are any outstanding
drivers/usb/storage/unusual_devs.hentries that people have floating around, sent them on!
I've been carrying these for _moons_. The only reason I've never punted them on is that the US_FL_SL_IDE_BUG bit is odd (nothing seems to use it, so at some point, I must have dropped the other half of the diff).
Dave
drivers/usb/storage/unusual_devs.h +46 -0
@@ -137,6 +137,27 @@ UNUSUAL_DEV( 0x04da, 0x0901, 0x0100, 0x "LS-120 Camera", US_SC_UFI, US_PR_CBI, NULL, 0), +/* Reported by Peter W�chtler <[email protected]> */ +UNUSUAL_DEV (0x04ce ,0x0002 ,0x0074 ,0x0074 , +"ScanLogic" , +"SL11R-IDE 0049SQFP-1.2 A002" , +US_SC_SCSI ,US_PR_BULK ,NULL , +US_FL_FIX_INQUIRY ), + +/* Reported by Leif Sawyer <[email protected]> */ +UNUSUAL_DEV (0x04ce ,0x0002 ,0x0240 ,0x0240 , +"H45 ScanLogic" , +"SL11R-IDE 9951SQFP-1.2 K004" , +US_SC_SCSI ,US_PR_BULK ,NULL , +US_FL_FIX_INQUIRY |US_FL_SL_IDE_BUG ), + +/* Reported by Rene Engelhard <[email protected]> and +Dylan Egan <[email protected]> */ +UNUSUAL_DEV (0x04ce ,0x0002 ,0x0260 ,0x0260 , +"ScanLogic" , +"SL11R-IDE unknown HW rev" , +US_SC_SCSI ,US_PR_BULK ,NULL , +US_FL_SL_IDE_BUG ),/* From Yukihiro Nakai, via [email protected]. * This is needed for CB instead of CBI */ UNUSUAL_DEV( 0x04da, 0x0d05, 0x0000, 0x0000,
@@ -236,6 +257,18 @@ UNUSUAL_DEV( 0x054c, 0x0010, 0x0106, 0x US_SC_SCSI, US_PR_CB, NULL, US_FL_SINGLE_LUN | US_FL_START_STOP | US_FL_MODE_XLATE ), +UNUSUAL_DEV (0x54c ,0x0010 ,0x0106 ,0x0328 , +"Sony" , +"DSC-P5" , +US_SC_SCSI ,US_PR_CB ,NULL , +US_FL_SINGLE_LUN |US_FL_START_STOP |US_FL_MODE_XLATE ), + +UNUSUAL_DEV (0x054c ,0x0010 ,0x0106 ,0x0450 , +"Sony" , +"DSC-P72" , +US_SC_SCSI ,US_PR_CB ,NULL , +US_FL_SINGLE_LUN |US_FL_START_STOP |US_FL_MODE_XLATE ), +/* Reported by [email protected] */ UNUSUAL_DEV( 0x054c, 0x0025, 0x0100, 0x0100, "Sony",
@@ -582,6 +615,19 @@ UNUSUAL_DEV( 0x0a16, 0x8888, 0x0100, 0x US_SC_SCSI, US_PR_BULK, NULL, US_FL_FIX_INQUIRY ), +/* This Pentax still camera is not conformant +* to the USB storage specification: - +* - It does not like the INQUIRY command. So we must handle this command +* of the SCSI layer ourselves. +* Tested on Rev. 10.00 (0x1000) +* Submitted by James Courtier-Dutton <[email protected]> +*/ +UNUSUAL_DEV( 0x0a17, 0x0004, 0x1000, 0x1000, + "ASAHI PENTAX", + "PENTAX OPTIO 430", + US_SC_8070, US_PR_CBI, NULL, + US_FL_FIX_INQUIRY ), +#ifdef CONFIG_USB_STORAGE_ISD200 UNUSUAL_DEV( 0x0bf6, 0xa001, 0x0100, 0x0110, "ATI",
drivers/usb/storage/usb.h +1 -0
@@ -76,6 +76,7 @@ struct us_unusual_dev {#define US_FL_SCM_MULT_TARG 0x00000020/* supports multiple targets */ #define US_FL_FIX_INQUIRY 0x00000040/* INQUIRY response needs fixing */ #define US_FL_FIX_CAPACITY 0x00000080/* READ CAPACITY response too big */ +#define US_FL_SL_IDE_BUG 0x00000100/* ScanLogic usb-ide workaround */ #define US_FLIDX_CAN_CANCEL 18/* 0x00040000 okay to cancel current_urb? */ #define US_FLIDX_CANCEL_SG 19/* 0x00080000 okay to cancel current_sg? */
Quoted 17 lines · Dave Jones
Quoted 16 lines · Greg KH
Quoted 3 lines · Hanno B?ck
This patch against 2.5.68 adds support for some digital cameras. Same patch is already applied to the 2.4-ac-series.
It is taken from the lycoris kernel-source.Ok, in talking with the usb-storage author, I'll be accepting all
unushal_devs.hpatches now, as long as they contain the following:
- a comment above the entry with a email address of someone who has this device that this entry fixes the driver for them. This is to allow us to possibly remove entries at a later time if the core changes, and get a verification that it's ok to do so.
- a copy of the/proc/bus/usb/devicesdevice entry with the device plugged in and the driver loaded (this should not be in the patch, but in the body of the email.)
Quoted 6 lines
Quoted 2 lines
So, if there are any outstanding
drivers/usb/storage/unusual_devs.hentries that people have floating around, sent them on!I've been carrying these for _moons_. The only reason I've never punted them on is that the
US_FL_SL_IDE_BUGbit is odd (nothing seems to use it, so at some point, I must have dropped the other half of the diff).
Hm, that is strange, I'll ignore that part of the patch :)
And what are the odds of getting /proc/bus/usb/devices from those email addresses? I'll try offline to collect them.
thanks,
greg k-h