This patch is originally from Sebastian Kapfer, with a few tests and a
rediff from me. This keeps the NEC USB floppy from reporting 8 identical
luns.

Reported-by: Sebastian Kapfer <[EMAIL PROTECTED]>
Signed-off-by: Phil Dibowitz <[EMAIL PROTECTED]>

-- 
Phil Dibowitz                             [EMAIL PROTECTED]
Freeware and Technical Pages              Insanity Palace of Metallica
http://www.phildev.net/                   http://www.ipom.com/

"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
 - Benjamin Franklin, 1759

DESC
[PATCH pd32] Add unusual_dev entry for NEC USB Floppy
DESC

This keeps the NEC USB floppy from reporting 8 identical luns.

Reported-by: Sebastian Kapfer <[EMAIL PROTECTED]>
Signed-off-by: Phil Dibowitz <[EMAIL PROTECTED]>

---


diff -puN drivers/usb/storage/unusual_devs.h~unusual_nec drivers/usb/storage/unusual_devs.h
--- linux-2.6.13/drivers/usb/storage/unusual_devs.h~unusual_nec	2005-08-29 22:08:35.000000000 -0700
+++ linux-2.6.13-phil/drivers/usb/storage/unusual_devs.h	2005-08-29 22:11:56.000000000 -0700
@@ -79,6 +79,16 @@ UNUSUAL_DEV(  0x03f0, 0x0307, 0x0001, 0x
 		US_SC_8070, US_PR_SCM_ATAPI, init_usbat, 0), 
 #endif
 
+/* Sebastian Kapfer <[EMAIL PROTECTED]>
+ * NEC USB floppy drive - will report eight LUNs with identical
+ * contents.
+ */
+UNUSUAL_DEV(  0x0409, 0x0040, 0x0160, 0x0160,
+		"NEC",
+		"NEC USB UF000x",
+		US_SC_DEVICE, US_PR_DEVICE, NULL,
+		US_FL_SINGLE_LUN ),
+
 /* Deduced by Jonathan Woithe <[EMAIL PROTECTED]>
  * Entry needed for flags: US_FL_FIX_INQUIRY because initial inquiry message
  * always fails and confuses drive.
_

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to