Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Ensure cmdh_prdtl is 0 in ahci_do_reset_drive().



details:   https://anonhg.NetBSD.org/src/rev/a07ecf555bf5
branches:  trunk
changeset: 454851:a07ecf555bf5
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Sep 29 21:21:41 2019 +0000

description:
Ensure cmdh_prdtl is 0 in ahci_do_reset_drive().

(I'm probably just being paranoid here.)

diffstat:

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

diffs (26 lines):

diff -r 79d5051c06ae -r a07ecf555bf5 sys/dev/ic/ahcisata_core.c
--- a/sys/dev/ic/ahcisata_core.c        Sun Sep 29 21:16:14 2019 +0000
+++ b/sys/dev/ic/ahcisata_core.c        Sun Sep 29 21:21:41 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ahcisata_core.c,v 1.75 2019/04/07 17:46:49 bouyer Exp $        */
+/*     $NetBSD: ahcisata_core.c,v 1.76 2019/09/29 21:21:41 jakllsch Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.75 2019/04/07 17:46:49 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.76 2019/09/29 21:21:41 jakllsch Exp $");
 
 #include <sys/types.h>
 #include <sys/malloc.h>
@@ -842,6 +842,7 @@
        cmd_tbl = achp->ahcic_cmd_tbl[c_slot];
        cmd_h->cmdh_flags = htole16(AHCI_CMDH_F_RST | AHCI_CMDH_F_CBSY |
            RHD_FISLEN / 4 | (drive << AHCI_CMDH_F_PMP_SHIFT));
+       cmd_h->cmdh_prdtl = 0;
        cmd_h->cmdh_prdbc = 0;
        memset(cmd_tbl->cmdt_cfis, 0, 64);
        cmd_tbl->cmdt_cfis[fis_type] = RHD_FISTYPE;



Home | Main Index | Thread Index | Old Index