diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2011-04-24 11:09:49 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2011-04-24 11:09:49 +0000 |
commit | 652fa3f08f0939e547dc79885344d6f5921db974 (patch) | |
tree | db06b1a4f94c3e244fbaf87fabaa3517640df565 /sys | |
parent | 679ed1e0de010f56f523d66c6d3aa310e41a409a (diff) |
get the error ccbs state right for a put when a port is empty. should get
rid of noise during boot.
reported by many.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/ahci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c index 5ea44f0515c..add35948bde 100644 --- a/sys/dev/pci/ahci.c +++ b/sys/dev/pci/ahci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahci.c,v 1.176 2011/04/21 07:13:01 dlg Exp $ */ +/* $OpenBSD: ahci.c,v 1.177 2011/04/24 11:09:48 dlg Exp $ */ /* * Copyright (c) 2006 David Gwynne <dlg@openbsd.org> @@ -1237,6 +1237,7 @@ nomem: /* grab a ccb for use during error recovery */ ap->ap_ccb_err = &ap->ap_ccbs[sc->sc_ncmds - 1]; TAILQ_REMOVE(&ap->ap_ccb_free, ap->ap_ccb_err, ccb_entry); + ap->ap_ccb_err->ccb_xa.state = ATA_S_COMPLETE; /* Wait for ICC change to complete */ ahci_pwait_clr(ap, AHCI_PREG_CMD, AHCI_PREG_CMD_ICC, 1); |