If XL cannot properly attach it tries to detach to clean up. Unfortunately,
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 19 Mar 2004 06:30:08 +0000 (06:30 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 19 Mar 2004 06:30:08 +0000 (06:30 +0000)
commit069f2034bd244026824b6ee53900a4c92a97ccc6
tree2de3cc77ec2cc14b4b3f079378dc9b365af6eba4
parent713b069d15ccdf1480ee51fa7c4d70c4b38b7e5c
If XL cannot properly attach it tries to detach to clean up.  Unfortunately,
the detach code expects it to have gotten most of the way through the attach
and if it hasn't the system will crash.  This commit adds a flag that tells
the detach code whether the attach got far enough along for the detach to
be able to reset the card (and do certain other things).
sys/dev/netif/xl/if_xl.c
sys/dev/netif/xl/if_xlreg.h