If driver is not running, disable interrupts and do not try to

process received frames.  Previously it was possible to handle RX
interrupts even if controller is not fully initialized. This
resulted in non-working driver after system is up and running.

Reported by:	hselasky
Tested by:	hselasky
This commit is contained in:
Pyun YongHyeon 2011-05-31 18:45:15 +00:00
parent 6b43e31fe7
commit 20e43c4aac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222542

View file

@ -1889,7 +1889,7 @@ nfe_int_task(void *arg, int pending)
if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) {
NFE_UNLOCK(sc);
nfe_enable_intr(sc);
nfe_disable_intr(sc);
return;
}