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/0aa22d7f8600
branches:  jdolecek-ncqfixes
changeset: 850597:0aa22d7f8600
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 908931914474 -r 0aa22d7f8600 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