Disable interrupts while we are setting up the handler. The interrupt really

shouldn't be set up or enabled until much later, but that will be investigated
at a later time.
This commit is contained in:
Scott Long 2006-01-13 05:04:27 +00:00
parent 8c437e077b
commit 87a444e62e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154286

View File

@ -2030,6 +2030,12 @@ em_allocate_pci_resources(struct adapter * adapter)
return(ENXIO);
}
/*
* XXX The interrupt shouldn't be set up until the driver and the
* chip is more initialized.
*/
em_disable_intr(adapter);
/*
* Try allocating a fast interrupt and the associated deferred
* processing contexts. If that doesn't work, try just using an
@ -2066,6 +2072,7 @@ em_allocate_pci_resources(struct adapter * adapter)
}
adapter->hw.back = &adapter->osdep;
em_enable_intr(adapter);
return(0);
}