summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-08-26 13:57:21 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-08-26 13:57:21 +0000
commit986533a68e64451bc52e2472a3421afe0de771a3 (patch)
tree839b9b0243323c5a51e52f8ab7d6ef791d9db71e /sys/dev
parent95e7ffb80137c876b1d930262148e643492f4866 (diff)
Remove needless uses of SDEV_ONLYBIG. It was always set when SDEV_UMASS was set,
and was always checked in concert with SDEV_ATAPI. Just rely on SDEV_ATAPI and SDEV_UMASS in all but the one place sd(4) where SDEV_ONLYBIG is set independently of SDEV_ATAPI/_UMASS. ok jmatthew@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ata/atascsi.c3
-rw-r--r--sys/dev/ic/mpi.c3
-rw-r--r--sys/dev/pci/mpii.c3
-rw-r--r--sys/dev/usb/umass_quirks.c6
-rw-r--r--sys/dev/usb/umass_scsi.c8
5 files changed, 10 insertions, 13 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c
index 803b8ec5009..94024c81ea9 100644
--- a/sys/dev/ata/atascsi.c
+++ b/sys/dev/ata/atascsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atascsi.c,v 1.143 2020/07/22 13:16:04 krw Exp $ */
+/* $OpenBSD: atascsi.c,v 1.144 2020/08/26 13:57:19 krw Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -258,7 +258,6 @@ atascsi_probe(struct scsi_link *link)
break;
case ATA_PORT_T_ATAPI:
link->flags |= SDEV_ATAPI;
- link->quirks |= SDEV_ONLYBIG;
break;
case ATA_PORT_T_PM:
if (link->lun != 0) {
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index 76f63ee17ba..bc365c6de1f 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.221 2020/07/20 14:41:13 krw Exp $ */
+/* $OpenBSD: mpi.c,v 1.222 2020/08/26 13:57:19 krw Exp $ */
/*
* Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org>
@@ -1682,7 +1682,6 @@ mpi_scsi_probe(struct scsi_link *link)
DNPRINTF(MPI_D_MISC, "%s: target %d is an ATAPI device\n",
DEVNAME(sc), link->target);
link->flags |= SDEV_ATAPI;
- link->quirks |= SDEV_ONLYBIG;
}
return (0);
diff --git a/sys/dev/pci/mpii.c b/sys/dev/pci/mpii.c
index 881a6f9f2c8..90e7f09e16a 100644
--- a/sys/dev/pci/mpii.c
+++ b/sys/dev/pci/mpii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpii.c,v 1.138 2020/07/22 13:16:04 krw Exp $ */
+/* $OpenBSD: mpii.c,v 1.139 2020/08/26 13:57:19 krw Exp $ */
/*
* Copyright (c) 2010, 2012 Mike Belopuhov
* Copyright (c) 2009 James Giannoules
@@ -954,7 +954,6 @@ mpii_scsi_probe(struct scsi_link *link)
if (ISSET(lemtoh32(&pg0.device_info),
MPII_CFG_SAS_DEV_0_DEVINFO_ATAPI_DEVICE)) {
link->flags |= SDEV_ATAPI;
- link->quirks |= SDEV_ONLYBIG;
}
return (0);
diff --git a/sys/dev/usb/umass_quirks.c b/sys/dev/usb/umass_quirks.c
index 8c1d6f4a165..d19fc5a41f6 100644
--- a/sys/dev/usb/umass_quirks.c
+++ b/sys/dev/usb/umass_quirks.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umass_quirks.c,v 1.33 2020/06/22 15:54:55 tobhe Exp $ */
+/* $OpenBSD: umass_quirks.c,v 1.34 2020/08/26 13:57:20 krw Exp $ */
/* $NetBSD: umass_quirks.c,v 1.67 2004/06/28 07:49:16 mycroft Exp $ */
/*
@@ -189,7 +189,7 @@ const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_IRIVER, USB_PRODUCT_IRIVER_IFP_1XX },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
- SDEV_ONLYBIG,
+ 0,
UMATCH_VENDOR_PRODUCT,
NULL, NULL
},
@@ -285,7 +285,7 @@ const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_OLYMPUS, USB_PRODUCT_OLYMPUS_C700 },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
- SDEV_ONLYBIG | SDEV_NOSYNCCACHE,
+ SDEV_NOSYNCCACHE,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
diff --git a/sys/dev/usb/umass_scsi.c b/sys/dev/usb/umass_scsi.c
index 549ca40a576..a5a94d6acab 100644
--- a/sys/dev/usb/umass_scsi.c
+++ b/sys/dev/usb/umass_scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umass_scsi.c,v 1.59 2020/07/29 23:56:42 krw Exp $ */
+/* $OpenBSD: umass_scsi.c,v 1.60 2020/08/26 13:57:20 krw Exp $ */
/* $NetBSD: umass_scsipi.c,v 1.9 2003/02/16 23:14:08 augustss Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@ umass_scsi_attach(struct umass_softc *sc)
{
struct scsibus_attach_args saa;
struct umass_scsi_softc *scbus;
- u_int16_t flags = SDEV_UMASS;
+ u_int16_t flags = 0;
scbus = malloc(sizeof(*scbus), M_DEVBUF, M_WAITOK | M_ZERO);
@@ -114,9 +114,9 @@ umass_scsi_attach(struct umass_softc *sc)
saa.saa_adapter_target = UMASS_SCSIID_HOST;
saa.saa_luns = sc->maxlun + 1;
saa.saa_openings = 1;
- saa.saa_quirks = SDEV_ONLYBIG | sc->sc_busquirks;
+ saa.saa_quirks = sc->sc_busquirks;
saa.saa_pool = &scbus->sc_iopool;
- saa.saa_flags = flags;
+ saa.saa_flags = SDEV_UMASS | flags;
saa.saa_wwpn = saa.saa_wwnn = 0;
sc->sc_refcnt++;