summaryrefslogtreecommitdiff
path: root/sys/dev/ata
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2008-05-05 12:19:39 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2008-05-05 12:19:39 +0000
commit292cdc400bccb062d64f9c015bbbbae6436d1de7 (patch)
tree08da38ec0dc468272ea05373521405f43a56974d /sys/dev/ata
parent29aba325b9a7c21936ffce99abd5c69625e7db0f (diff)
Don't set the adaptor template link's flags and quirks when trying to
set the flags and quirks for a device. Should fix weird issues where the device after an ATAPI device gets marked as ATAPI. First reported on misc@ by Daniel Wade, who also provided some useful testing. ok dlg@
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/atascsi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c
index c8a1ec53b36..258a75145b8 100644
--- a/sys/dev/ata/atascsi.c
+++ b/sys/dev/ata/atascsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atascsi.c,v 1.61 2008/03/26 14:00:28 dlg Exp $ */
+/* $OpenBSD: atascsi.c,v 1.62 2008/05/05 12:19:38 krw Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -182,8 +182,8 @@ atascsi_probe(struct scsi_link *link)
case ATA_PORT_T_DISK:
break;
case ATA_PORT_T_ATAPI:
- as->as_link.flags |= SDEV_ATAPI;
- as->as_link.quirks |= SDEV_ONLYBIG;
+ link->flags |= SDEV_ATAPI;
+ link->quirks |= SDEV_ONLYBIG;
break;
default:
rv = ENODEV;