mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 23:02:02 -04:00
If MSI is not active make sure to disable MSI in EEPROM.
This commit is contained in:
parent
81cf2eb6db
commit
4d2bf23925
1 changed files with 11 additions and 0 deletions
|
|
@ -1195,6 +1195,17 @@ re_attach(dev)
|
|||
}
|
||||
}
|
||||
|
||||
if ((sc->rl_flags & RL_FLAG_MSI) == 0) {
|
||||
CSR_WRITE_1(sc, RL_EECMD, RL_EE_MODE);
|
||||
cfg = CSR_READ_1(sc, RL_CFG2);
|
||||
if ((cfg & RL_CFG2_MSI) != 0) {
|
||||
device_printf(dev, "turning off MSI enable bit.\n");
|
||||
cfg &= ~RL_CFG2_MSI;
|
||||
CSR_WRITE_1(sc, RL_CFG2, cfg);
|
||||
}
|
||||
CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF);
|
||||
}
|
||||
|
||||
/* Reset the adapter. */
|
||||
RL_LOCK(sc);
|
||||
re_reset(sc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue