[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-usb-users
Subject: [Linux-usb-users] Re: usb-storage && iRIVER flash player problem
From: Javier Marcet <jmarcet () marcet ! info>
Date: 2004-03-30 16:30:30
Message-ID: 20040330163030.GB14697 () marcet ! info
[Download RAW message or body]
* Matthew Dharm <mdharm-usb@one-eyed-alien.net> [040329 22:14]:
>You can probably work around this device bug by editing
>linux/drivers/scsi/sd.c to remove all attempt to send prevent/allow
>commands -- IIRC, that's only two places in the file, tho I don't recall
>exactly where they are at the moment.
Sorry, the patch goes this time.
--
I'll pretend to trust you if you'll pretend to trust me.
Javier Marcet <javier@marcet.info>
["015_iriver_NORMB.patch" (text/plain)]
--- linux/include/scsi/scsi_devinfo.h.orig 2004-01-13 04:03:19.000000000 +0100
+++ linux/include/scsi/scsi_devinfo.h 2004-01-13 04:12:19.509266640 +0100
@@ -19,4 +19,5 @@
#define BLIST_MS_SKIP_PAGE_08 0x2000 /* do not send ms page 0x08 */
#define BLIST_MS_SKIP_PAGE_3F 0x4000 /* do not send ms page 0x3f */
#define BLIST_USE_10_BYTE_MS 0x8000 /* use 10 byte ms before 6 byte ms */
+#define BLIST_NORMB 0x10000 /* Known to be not removable */
#endif
--- linux/drivers/scsi/scsi_scan.c.orig 2004-01-13 04:03:19.000000000 +0100
+++ linux/drivers/scsi/scsi_scan.c 2004-01-13 04:13:07.728936136 +0100
@@ -536,7 +536,8 @@
sdev->online = FALSE;
}
- 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);
--- linux/drivers/scsi/scsi_devinfo.c.orig 2004-01-13 04:03:19.000000000 +0100
+++ linux/drivers/scsi/scsi_devinfo.c 2004-01-13 04:13:40.591940200 +0100
@@ -183,6 +183,7 @@
{"SGI", "TP9500", "*", BLIST_SPARSELUN | BLIST_LARGELUN},
{"MYLEX", "DACARMRB", "*", BLIST_SPARSELUN | BLIST_LARGELUN},
{"XYRATEX", "RS", "*", BLIST_SPARSELUN | BLIST_LARGELUN},
+ {"iRiver", "iFP Mass Driver", NULL, BLIST_NORMB},
{ NULL, NULL, NULL, 0 },
};
-------------------------------------------------------
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
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic