Rather than entering DDB with the message "unexpected error" and wedging
the card, panic explicitly if EN_DEBUG is enabled. In the (default) case of !EN_DEBUG, the driver resets the card. Probably this case shouldn't exist at all.
This commit is contained in:
parent
ee7d684055
commit
f0dde538b0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170013
@ -2435,8 +2435,7 @@ en_intr(void *arg)
|
||||
device_printf(sc->dev, "unexpected interrupt=0x%b, "
|
||||
"resetting\n", reg, MID_INTBITS);
|
||||
#ifdef EN_DEBUG
|
||||
kdb_enter("en: unexpected error");
|
||||
sc->ifp->if_drv_flags &= ~IFF_DRV_RUNNING; /* FREEZE! */
|
||||
panic("en: unexpected error");
|
||||
#else
|
||||
en_reset_ul(sc);
|
||||
en_init(sc);
|
||||
|
Loading…
Reference in New Issue
Block a user