public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* Patch for iriver-mp3player
@ 2004-05-29 23:42 Tobias Lieber
  2004-06-06 14:48 ` James Bottomley
  0 siblings, 1 reply; 16+ messages in thread
From: Tobias Lieber @ 2004-05-29 23:42 UTC (permalink / raw)
  To: linux-scsi

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

Hi

i Javier Marcet wrote in January 2004 a patch for linux-2.6.3, to make a i-River-mp3-Player mounting. It was on lkml: http://lkml.org/lkml/2004/1/6/170
i was suprised, that it was not in the kernel, and no other soulution, too. So i read his patch for getting mouted the player, and rewrote it for linux-2.6.7-rc1-bk7. I attached it. It would be nice, if it would be possible mounting the mp3-player without patching the Kernel, so i would greet it, if this or an other solution woulg com into the Kernel.

greetings

Tobias Lieber

[-- Attachment #2: patch-iriver --]
[-- Type: application/octet-stream, Size: 1465 bytes --]

--- linux-2.6.6/include/scsi/scsi_devinfo.h	2004-05-30 00:12:10.050746696 +0200
+++ linux_patched/include/scsi/scsi_devinfo.h	2004-05-30 00:19:23.898791768 +0200
@@ -24,4 +24,5 @@
 #define BLIST_REPORTLUN2	0x20000	/* try REPORT_LUNS even for SCSI-2 devs
  					   (if HBA supports more than 8 LUNs) */
 #define BLIST_NOREPORTLUN	0x40000	/* don't try REPORT_LUNS scan (SCSI-3 devs) */
+#define BLIST_NORMB             0x80000 /* Known to be not removable*/
 #endif
--- linux-2.6.6/drivers/scsi/scsi_devinfo.c	2004-05-10 04:32:27.000000000 +0200
+++ linux_patched/drivers/scsi/scsi_devinfo.c	2004-05-30 00:14:00.382973648 +0200
@@ -183,6 +183,7 @@
 	{"TOSHIBA", "CDROM", NULL, BLIST_ISROM},
 	{"TOSHIBA", "CD-ROM", NULL, BLIST_ISROM},
 	{"XYRATEX", "RS", "*", BLIST_SPARSELUN | BLIST_LARGELUN},
+        {"iRiver", "iFP Mass Driver", NULL, BLIST_NORMB},
 	{"Zzyzx", "RocketStor 500S", NULL, BLIST_SPARSELUN},
 	{"Zzyzx", "RocketStor 2000", NULL, BLIST_SPARSELUN},
 	{ NULL, NULL, NULL, 0 },
--- linux-2.6.6/drivers/scsi/scsi_scan.c	2004-05-30 00:12:07.911071976 +0200
+++ linux_patched/drivers/scsi/scsi_scan.c	2004-05-30 00:18:30.694879992 +0200
@@ -565,7 +565,7 @@
 	 */ 
 
 	sdev->inq_periph_qual = (inq_result[0] >> 5) & 7;
-	sdev->removable = (0x80 & inq_result[1]) >> 7;
+	sdev->removable = (((0x80 & inq_result[1]) >> 7) && !(*bflags &BLIST_NORMB));
 	sdev->lockable = sdev->removable;
 	sdev->soft_reset = (inq_result[7] & 1) && ((inq_result[3] & 7) == 2);
 

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

end of thread, other threads:[~2004-06-28 19:43 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-29 23:42 Patch for iriver-mp3player Tobias Lieber
2004-06-06 14:48 ` James Bottomley
2004-06-06 22:32   ` Matthew Dharm
2004-06-07 14:36     ` Alan Stern
2004-06-28 19:42       ` Tobias Lieber
2004-06-07 14:47   ` iRiver H100 series and usb-storage issues Alan Stern
2004-06-07 19:43     ` Philippe Troin
2004-06-07 20:22       ` Alan Stern
2004-06-07 21:18         ` Philippe Troin
2004-06-07 22:27           ` [usb-storage] " Pat LaVarre
2004-06-08 14:24             ` Alan Stern
2004-06-08 15:52               ` James Bottomley
2004-06-08 16:10                 ` Pat LaVarre
2004-06-08 16:16                   ` James Bottomley
2004-06-08 17:01                     ` Mike Anderson
2004-06-08 14:19           ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox