When we see an interrupt status of 0xffffffff, check to see if the
child is still present. If not, return 'handled' and don't print anything (this is expected behavior). We expect an interrupt on eject, power-down and/or shutdown.
This commit is contained in:
parent
e6830016ad
commit
24c02d2f9e
@ -2072,8 +2072,9 @@ fwohci_check_stat(struct fwohci_softc *sc)
|
|||||||
FW_GLOCK_ASSERT(&sc->fc);
|
FW_GLOCK_ASSERT(&sc->fc);
|
||||||
stat = OREAD(sc, FWOHCI_INTSTAT);
|
stat = OREAD(sc, FWOHCI_INTSTAT);
|
||||||
if (stat == 0xffffffff) {
|
if (stat == 0xffffffff) {
|
||||||
device_printf(sc->fc.dev,
|
if (!bus_child_present(sc->fc.dev))
|
||||||
"device physically ejected?\n");
|
return (FILTER_HANDLED);
|
||||||
|
device_printf(sc->fc.dev, "device physically ejected?\n");
|
||||||
return (FILTER_STRAY);
|
return (FILTER_STRAY);
|
||||||
}
|
}
|
||||||
if (stat)
|
if (stat)
|
||||||
|
Loading…
Reference in New Issue
Block a user