Take vigilante action and remove all the NO_MAX_LUN, NOMODESENSE and

NOBIGMODESENSE "quirks".  These problems should be fixed without klugery
now.
This commit is contained in:
mycroft 2003-09-05 11:18:25 +00:00
parent 71889b67f5
commit 61c35f890c
1 changed files with 34 additions and 34 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: umass_quirks.c,v 1.45 2003/08/08 08:24:23 wulf Exp $ */
/* $NetBSD: umass_quirks.c,v 1.46 2003/09/05 11:18:25 mycroft Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: umass_quirks.c,v 1.45 2003/08/08 08:24:23 wulf Exp $");
__KERNEL_RCSID(0, "$NetBSD: umass_quirks.c,v 1.46 2003/09/05 11:18:25 mycroft Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -64,15 +64,15 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_LACIE, USB_PRODUCT_LACIE_PKTDRV},
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE,
0,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
{ { USB_VENDOR_ACDC, USB_PRODUCT_ACDC_PEN },
UMASS_WPROTO_BBB, UMASS_CPROTO_SCSI,
UMASS_QUIRK_NO_MAX_LUN | UMASS_QUIRK_NO_START_STOP,
PQUIRK_NOMODESENSE,
UMASS_QUIRK_NO_START_STOP,
0,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
@ -88,7 +88,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_DMI, USB_PRODUCT_DMI_SA2_0 },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE,
0,
UMATCH_VENDOR_PRODUCT,
NULL, NULL
},
@ -96,7 +96,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_EASYDISK, USB_PRODUCT_EASYDISK_EASYDISK },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE,
0,
UMATCH_VENDOR_PRODUCT,
NULL, NULL
},
@ -136,7 +136,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_INSYSTEM, USB_PRODUCT_INSYSTEM_IDEUSB2 },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE,
0,
UMATCH_VENDOR_PRODUCT,
NULL, NULL
},
@ -177,7 +177,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_MELCO, USB_PRODUCT_MELCO_DUBPXXG },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_FORCE_SHORT_INQUIRY | UMASS_QUIRK_NO_START_STOP,
PQUIRK_NOMODESENSE,
0,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
@ -192,7 +192,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_MINOLTA, USB_PRODUCT_MINOLTA_S304 },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_NO_MAX_LUN | UMASS_QUIRK_NO_START_STOP,
UMASS_QUIRK_NO_START_STOP,
0,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
@ -200,7 +200,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_MINOLTA, USB_PRODUCT_MINOLTA_X },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_NO_MAX_LUN | UMASS_QUIRK_NO_START_STOP,
UMASS_QUIRK_NO_START_STOP,
0,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
@ -208,16 +208,16 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_MSYSTEMS, USB_PRODUCT_MSYSTEMS_DISKONKEY },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_NO_MAX_LUN,
PQUIRK_NOMODESENSE | PQUIRK_NODOORLOCK | PQUIRK_NOBIGMODESENSE,
0,
PQUIRK_NODOORLOCK,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
{ { USB_VENDOR_MSYSTEMS, USB_PRODUCT_MSYSTEMS_DISKONKEY2 },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_NO_MAX_LUN,
PQUIRK_NOMODESENSE | PQUIRK_NODOORLOCK | PQUIRK_NOBIGMODESENSE,
0,
PQUIRK_NODOORLOCK,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
@ -225,7 +225,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_NEODIO, USB_PRODUCT_NEODIO_ND3050 },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE | PQUIRK_FORCELUNS,
PQUIRK_FORCELUNS,
UMATCH_VENDOR_PRODUCT,
NULL, NULL
},
@ -233,7 +233,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_NEODIO, USB_PRODUCT_NEODIO_ND5010 },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE | PQUIRK_FORCELUNS,
PQUIRK_FORCELUNS,
UMATCH_VENDOR_PRODUCT,
NULL, NULL
},
@ -248,8 +248,8 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_ONSPEC, USB_PRODUCT_ONSPEC_MD1II },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_NO_MAX_LUN | UMASS_QUIRK_NO_START_STOP,
PQUIRK_NOMODESENSE,
UMASS_QUIRK_NO_START_STOP,
0,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
@ -257,7 +257,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_ONSPEC, USB_PRODUCT_ONSPEC_MD2 },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE,
0,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
@ -265,7 +265,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_OTI, USB_PRODUCT_OTI_SOLID },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE | PQUIRK_NOBIGMODESENSE,
0,
UMATCH_VENDOR_PRODUCT,
NULL, NULL
},
@ -273,7 +273,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_OTI, USB_PRODUCT_OTI_FLASHDISK },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE | PQUIRK_NOBIGMODESENSE,
0,
UMATCH_VENDOR_PRODUCT,
NULL, NULL
},
@ -281,22 +281,22 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_PEN, USB_PRODUCT_PEN_MOBILEDRIVE },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE | PQUIRK_NODOORLOCK | PQUIRK_FORCELUNS,
PQUIRK_NODOORLOCK | PQUIRK_FORCELUNS,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
{ { USB_VENDOR_PEN, USB_PRODUCT_PEN_USBDISKPRO },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_NO_MAX_LUN,
PQUIRK_NOMODESENSE | PQUIRK_NOBIGMODESENSE,
0,
0,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
{ { USB_VENDOR_PEN, USB_PRODUCT_PEN_USBDISK },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_NO_MAX_LUN | UMASS_QUIRK_NO_START_STOP,
UMASS_QUIRK_NO_START_STOP,
0,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
@ -305,7 +305,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_PEN, USB_PRODUCT_PEN_USBREADER },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE,
0,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
@ -313,7 +313,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_PILOTECH, USB_PRODUCT_PILOTECH_CRW600 },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE | PQUIRK_FORCELUNS,
PQUIRK_FORCELUNS,
UMATCH_VENDOR_PRODUCT,
NULL, NULL
},
@ -321,7 +321,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_PQI, USB_PRODUCT_PQI_TRAVELFLASH },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE | PQUIRK_NODOORLOCK,
PQUIRK_NODOORLOCK,
UMATCH_VENDOR_PRODUCT,
NULL, NULL
},
@ -353,7 +353,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_SIIG, USB_PRODUCT_SIIG_UISDMC2S },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_NO_START_STOP,
PQUIRK_NOMODESENSE,
0,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL,NULL
},
@ -393,7 +393,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_SONY, USB_PRODUCT_SONY_MSC },
UMASS_WPROTO_CBI, UMASS_CPROTO_UFI,
UMASS_QUIRK_FORCE_SHORT_INQUIRY | UMASS_QUIRK_RS_NO_CLEAR_UA,
PQUIRK_NOMODESENSE,
0,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
@ -401,7 +401,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_TEAC, USB_PRODUCT_TEAC_FD05PUB },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE,
0,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
@ -425,7 +425,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_YEDATA, USB_PRODUCT_YEDATA_FLASHBUSTERU },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UFI,
UMASS_QUIRK_RS_NO_CLEAR_UA,
PQUIRK_NOMODESENSE,
0,
UMATCH_VENDOR_PRODUCT_REV,
NULL, umass_fixup_yedata
},
@ -433,7 +433,7 @@ Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_GENESYS,USB_PRODUCT_GENESYS_GL641USB },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_FORCE_SHORT_INQUIRY | UMASS_QUIRK_NO_START_STOP,
PQUIRK_NOMODESENSE,
0,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},