From f5e8ef092a4d219c33ec9e65dffc784921057140 Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 5 Jun 2001 22:29:16 +0000 Subject: Commit part of the patch that I have for card eject problems with the ep driver. The rest of the patch will wait until I can put the time into it to get it righter than the kludge it is. This protects us against card eject problems at all times,e xecpt when we're in the epintr ISR. --- sys/dev/ep/if_ep.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/dev/ep/if_ep.c') diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c index 3397de2..1118f11 100644 --- a/sys/dev/ep/if_ep.c +++ b/sys/dev/ep/if_ep.c @@ -550,6 +550,11 @@ ep_intr(arg) if (sc->gone) return; + /* + * quick fix: Try to detect an interrupt when the card goes away. + */ + if (inw(BASE + EP_STATUS) == 0xffff) + return; ifp = &sc->arpcom.ac_if; -- cgit v1.1