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:
parent
8c437e077b
commit
87a444e62e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154286
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user