linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH: some additional unusual_devs-entries for usb-storage-driver, kernel 2.5.68
@ 2003-04-21 19:48 Hanno Böck
  2003-04-21 21:05 ` Greg KH
  2003-04-22 21:32 ` Greg KH
  0 siblings, 2 replies; 6+ messages in thread
From: Hanno Böck @ 2003-04-21 19:48 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

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




--- linux-2.5.68-old/drivers/usb/storage/unusual_devs.h	2003-04-15 14:05:09.000000000 +0200
+++ linux-2.5.68/drivers/usb/storage/unusual_devs.h	2003-04-21 21:19:53.000000000 +0200
@@ -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 wim@geeks.nl */
 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",

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: PATCH: some additional unusual_devs-entries for usb-storage-driver, kernel 2.5.68
  2003-04-21 19:48 PATCH: some additional unusual_devs-entries for usb-storage-driver, kernel 2.5.68 Hanno Böck
@ 2003-04-21 21:05 ` Greg KH
  2003-04-22 21:32 ` Greg KH
  1 sibling, 0 replies; 6+ messages in thread
From: Greg KH @ 2003-04-21 21:05 UTC (permalink / raw)
  To: Hanno Böck; +Cc: torvalds, linux-kernel

On Mon, Apr 21, 2003 at 09:48:05PM +0200, Hanno Böck wrote:
> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: PATCH: some additional unusual_devs-entries for usb-storage-driver, kernel 2.5.68
  2003-04-21 19:48 PATCH: some additional unusual_devs-entries for usb-storage-driver, kernel 2.5.68 Hanno Böck
  2003-04-21 21:05 ` Greg KH
@ 2003-04-22 21:32 ` Greg KH
  2003-04-22 22:59   ` [Linux-usb-users] " Matthew Dharm
  2003-04-23  0:45   ` Dave Jones
  1 sibling, 2 replies; 6+ messages in thread
From: Greg KH @ 2003-04-22 21:32 UTC (permalink / raw)
  To: Hanno Böck; +Cc: linux-kernel, linux-usb-devel, Linux-usb-users

On Mon, Apr 21, 2003 at 09:48:05PM +0200, Hanno Böck wrote:
> 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Linux-usb-users] Re: PATCH: some additional unusual_devs-entries for usb-storage-driver, kernel 2.5.68
  2003-04-22 21:32 ` Greg KH
@ 2003-04-22 22:59   ` Matthew Dharm
  2003-04-23  0:45   ` Dave Jones
  1 sibling, 0 replies; 6+ messages in thread
From: Matthew Dharm @ 2003-04-22 22:59 UTC (permalink / raw)
  To: Greg KH; +Cc: Hanno Böck, linux-kernel, linux-usb-devel, Linux-usb-users

[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]

On Tue, Apr 22, 2003 at 02:32:47PM -0700, Greg KH wrote:
> 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!

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

-- 
Matthew Dharm                              Home: mdharm-usb@one-eyed-alien.net 
Maintainer, Linux USB Mass Storage Driver

You suck Stef.
					-- Greg 
User Friendly, 11/29/97

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: PATCH: some additional unusual_devs-entries for usb-storage-driver, kernel 2.5.68
  2003-04-22 21:32 ` Greg KH
  2003-04-22 22:59   ` [Linux-usb-users] " Matthew Dharm
@ 2003-04-23  0:45   ` Dave Jones
  2003-04-23  1:57     ` Greg KH
  1 sibling, 1 reply; 6+ messages in thread
From: Dave Jones @ 2003-04-23  0:45 UTC (permalink / raw)
  To: Greg KH; +Cc: Hanno B?ck, linux-kernel, linux-usb-devel, Linux-usb-users

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 4550 bytes --]

On Tue, Apr 22, 2003 at 02:32:47PM -0700, Greg KH wrote:
 > On Mon, Apr 21, 2003 at 09:48:05PM +0200, Hanno B?ck wrote:
 > > 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!

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

diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/usb/storage/unusual_devs.h linux-2.5/drivers/usb/storage/unusual_devs.h
--- bk-linus/drivers/usb/storage/unusual_devs.h	2003-04-22 00:40:43.000000000 +0100
+++ linux-2.5/drivers/usb/storage/unusual_devs.h	2003-04-22 01:23:15.000000000 +0100
@@ -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 <pwaechtler@loewe-komp.de> */
+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 <leif@gci.net> */
+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 <mail@rene-engelhard.de> and
+    Dylan Egan <crack_me@bigpond.com.au> */
+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 zaitcev@yahoo.com.
  * 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 wim@geeks.nl */
 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 <James@superbug.demon.co.uk>
+ */
+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",

diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/usb/storage/usb.h linux-2.5/drivers/usb/storage/usb.h
--- bk-linus/drivers/usb/storage/usb.h	2003-04-10 06:01:25.000000000 +0100
+++ linux-2.5/drivers/usb/storage/usb.h	2003-02-04 20:12:28.000000000 +0000
@@ -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?  */

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: PATCH: some additional unusual_devs-entries for usb-storage-driver, kernel 2.5.68
  2003-04-23  0:45   ` Dave Jones
@ 2003-04-23  1:57     ` Greg KH
  0 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2003-04-23  1:57 UTC (permalink / raw)
  To: Dave Jones, Hanno B?ck, linux-kernel, linux-usb-devel, Linux-usb-users

On Wed, Apr 23, 2003 at 01:45:08AM +0100, Dave Jones wrote:
> On Tue, Apr 22, 2003 at 02:32:47PM -0700, Greg KH wrote:
>  > On Mon, Apr 21, 2003 at 09:48:05PM +0200, Hanno B?ck wrote:
>  > > 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!
> 
> 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).

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-04-23  1:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-21 19:48 PATCH: some additional unusual_devs-entries for usb-storage-driver, kernel 2.5.68 Hanno Böck
2003-04-21 21:05 ` Greg KH
2003-04-22 21:32 ` Greg KH
2003-04-22 22:59   ` [Linux-usb-users] " Matthew Dharm
2003-04-23  0:45   ` Dave Jones
2003-04-23  1:57     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).