Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/jdolecek-ncqfixes]: src/sys/dev/ic call atastart() when ATA command comp...



details:   https://anonhg.NetBSD.org/src/rev/e2d4cc371300
branches:  jdolecek-ncqfixes
changeset: 1025095:e2d4cc371300
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Oct 07 15:42:47 2018 +0000

description:
call atastart() when ATA command completes without timeout or error, similar
to AHCI

diffstat:

 sys/dev/ic/siisata.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r b7a800545862 -r e2d4cc371300 sys/dev/ic/siisata.c
--- a/sys/dev/ic/siisata.c      Sat Oct 06 21:19:55 2018 +0000
+++ b/sys/dev/ic/siisata.c      Sun Oct 07 15:42:47 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siisata.c,v 1.35.6.7 2018/10/04 17:59:35 jdolecek Exp $ */
+/* $NetBSD: siisata.c,v 1.35.6.8 2018/10/07 15:42:47 jdolecek Exp $ */
 
 /* from ahcisata_core.c */
 
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.35.6.7 2018/10/04 17:59:35 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.35.6.8 2018/10/07 15:42:47 jdolecek Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -1180,6 +1180,9 @@
        siisata_deactivate_prb(schp, xfer->c_slot);
        ata_deactivate_xfer(chp, xfer);
 
+       if ((ata_c->flags & (AT_TIMEOU|AT_ERROR)) == 0)
+               atastart(chp);
+
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index