Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ata In case of error, reset the channel with AT_RST_...



details:   https://anonhg.NetBSD.org/src/rev/3663da78a016
branches:  trunk
changeset: 570001:3663da78a016
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu Sep 16 20:52:43 2004 +0000

description:
In case of error, reset the channel with AT_RST_NOCMD. We know the reset
won't abort any command at this point.

diffstat:

 sys/dev/ata/wd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0cc37133e153 -r 3663da78a016 sys/dev/ata/wd.c
--- a/sys/dev/ata/wd.c  Thu Sep 16 18:02:27 2004 +0000
+++ b/sys/dev/ata/wd.c  Thu Sep 16 20:52:43 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wd.c,v 1.292 2004/08/30 09:34:41 drochner Exp $ */
+/*     $NetBSD: wd.c,v 1.293 2004/09/16 20:52:43 bouyer Exp $ */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.  All rights reserved.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.292 2004/08/30 09:34:41 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.293 2004/09/16 20:52:43 bouyer Exp $");
 
 #ifndef ATADEBUG
 #define ATADEBUG
@@ -761,7 +761,7 @@
                errmsg = "error";
                do_perror = 1;
 retry:         /* Just reset and retry. Can we do more ? */
-               (*wd->atabus->ata_reset_drive)(wd->drvp, 0);
+               (*wd->atabus->ata_reset_drive)(wd->drvp, AT_RST_NOCMD);
 retry2:
                diskerr(bp, "wd", errmsg, LOG_PRINTF,
                    wd->sc_wdc_bio.blkdone, wd->sc_dk.dk_label);



Home | Main Index | Thread Index | Old Index