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.
This commit is contained in:
Warner Losh 2001-06-05 22:29:16 +00:00
parent cc66540e0e
commit 64c30c9cb5

View File

@ -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;