Call bus_setup_intr in xe_attach, not xe_activate. This prevents
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Wed, 13 Jul 2005 17:46:05 +0000 (17:46 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Wed, 13 Jul 2005 17:46:05 +0000 (17:46 +0000)
commit7cdc3d6e9b952ac5d4d25da9258133ca3b6267a9
treecfd1319bbdfc3adab17180ad5474956a1bfd9715
parent62f4c2b783698b6528eb2e54d65d8ef306cebec2
Call bus_setup_intr in xe_attach, not xe_activate. This prevents
race conditions and avoids calling ether_detach without first calling
ether_attach.
Call bus_teardown_intr in xe_detach, not xe_deactivate. This is
symmetrical to the attach path. Use a critical section in xe_detach
to protect against concurrent interrupts.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
sys/dev/netif/xe/if_xe.c