From 1bbb70e9c72298386ea712312d0475d87d8eb395 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 19 May 2007 16:51:58 +0000 Subject: =?UTF-8?q?My=203c905C=20needs=20a=20brief=20pause=20after=C2=A0re?= =?UTF-8?q?set=20for=20PIO=20too,=20at=20least=20on=20hppa.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tested by thib@, ok deraadt@ --- sys/dev/ic/xl.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c index bfce9c21945..f2f1b9d3f2c 100644 --- a/sys/dev/ic/xl.c +++ b/sys/dev/ic/xl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xl.c,v 1.77 2007/05/05 13:24:04 deraadt Exp $ */ +/* $OpenBSD: xl.c,v 1.78 2007/05/19 16:51:57 kettenis Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -807,14 +807,12 @@ xl_reset(struct xl_softc *sc) XL_RESETOPT_DISADVFD:0)); /* - * If we're using memory mapped register mode, pause briefly - * after issuing the reset command before trying to access any - * other registers. With my 3c575C cardbus card, failing to do - * this results in the system locking up while trying to poll - * the command busy bit in the status register. + * Pause briefly after issuing the reset command before trying + * to access any other registers. With my 3c575C cardbus card, + * failing to do this results in the system locking up while + * trying to poll the command busy bit in the status register. */ - if (sc->xl_flags & XL_FLAG_USE_MMIO) - DELAY(100000); + DELAY(100000); for (i = 0; i < XL_TIMEOUT; i++) { DELAY(10); -- cgit v1.2.3