Initialize legacy SYS_RES_IRQ resources before attempting to use MSI.
This fixes legacy SYS_RES_IRQ resource allocation failure when MSI is disabled. Reported by: rrs Tested by: rrs
This commit is contained in:
parent
419ce53db8
commit
f5941f42a0
@ -1559,6 +1559,7 @@ mskc_attach(device_t dev)
|
||||
#else
|
||||
sc->msk_res_spec = msk_res_spec_mem;
|
||||
#endif
|
||||
sc->msk_irq_spec = msk_irq_spec_legacy;
|
||||
error = bus_alloc_resources(dev, sc->msk_res_spec, sc->msk_res);
|
||||
if (error) {
|
||||
if (sc->msk_res_spec == msk_res_spec_mem)
|
||||
|
Loading…
x
Reference in New Issue
Block a user