Module Name:    src
Committed By:   jakllsch
Date:           Sun Feb 13 01:21:53 UTC 2011

Modified Files:
        src/sys/dev/ic: siisata.c

Log Message:
Treat unexpected command completions a little more like regular completions.
Slight chance this might prevent some occasional log spew trouble at shutdown
time.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/ic/siisata.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/siisata.c
diff -u src/sys/dev/ic/siisata.c:1.13 src/sys/dev/ic/siisata.c:1.14
--- src/sys/dev/ic/siisata.c:1.13	Sat Nov 13 09:00:00 2010
+++ src/sys/dev/ic/siisata.c	Sun Feb 13 01:21:52 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: siisata.c,v 1.13 2010/11/13 09:00:00 uebayasi Exp $ */
+/* $NetBSD: siisata.c,v 1.14 2011/02/13 01:21:52 jakllsch Exp $ */
 
 /* from ahcisata_core.c */
 
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.13 2010/11/13 09:00:00 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.14 2011/02/13 01:21:52 jakllsch Exp $");
 
 #include <sys/types.h>
 #include <sys/malloc.h>
@@ -454,6 +454,7 @@
 		/* is this expected? */
 		/* XXX improve */
 		if ((schp->sch_active_slots & __BIT(slot)) == 0) {
+			PRWRITE(sc, PRX(chp->ch_channel, PRO_PIS), 0xffffffff);
 			log(LOG_WARNING, "%s: unexpected command "
 			    "completion on port %d\n",
 			    SIISATANAME(sc), chp->ch_channel);

Reply via email to