Source-Changes-HG archive

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

[src/netbsd-2-0]: src/sys/dev/ic Pull up revision 1.175 (requested by bouyer ...



details:   https://anonhg.NetBSD.org/src/rev/ce170cd25651
branches:  netbsd-2-0
changeset: 561170:ce170cd25651
user:      tron <tron%NetBSD.org@localhost>
date:      Sat May 29 14:10:40 2004 +0000

description:
Pull up revision 1.175 (requested by bouyer in ticket #397):
Add a delay(5000) between the ATAPI_SOFT_RESET and the channel reset.
Some ATAPI device never get out of busy if touched too fast after a reset.
Delay value from atapi_wdc.c; fix problem reported by Nicolas Joly on
current-users.

diffstat:

 sys/dev/ic/wdc.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r bdfdf2cc68d5 -r ce170cd25651 sys/dev/ic/wdc.c
--- a/sys/dev/ic/wdc.c  Sat May 29 14:08:18 2004 +0000
+++ b/sys/dev/ic/wdc.c  Sat May 29 14:10:40 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc.c,v 1.172.2.2 2004/05/29 14:08:18 tron Exp $ */
+/*     $NetBSD: wdc.c,v 1.172.2.3 2004/05/29 14:10:40 tron Exp $ */
 
 /*
  * Copyright (c) 1998, 2001, 2003 Manuel Bouyer.  All rights reserved.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.172.2.2 2004/05/29 14:08:18 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.172.2.3 2004/05/29 14:10:40 tron Exp $");
 
 #ifndef WDCDEBUG
 #define WDCDEBUG
@@ -690,6 +690,8 @@
                    ATAPI_SOFT_RESET);
        }
 
+       delay(5000);
+
        if (wdc != NULL && (wdc->cap & WDC_CAPABILITY_SELECT))
                wdc->select(chp,0);
        bus_space_write_1(chp->cmd_iot, chp->cmd_iohs[wd_sdh], 0, WDSD_IBM);



Home | Main Index | Thread Index | Old Index