Fix a long standing bug which regarded some revisions of controller
as 5788. This caused BGE_MISC_LOCAL_CTL register is used to generate link state change interrupt for non-5788 controllers. The interrupt handler may or may not detect link state attention as status block wouldn't be updated when an interrupt was generated with BGE_MISC_LOCAL_CTL register. All controllers except 5700 and 5788 should use host coalescing mode register to trigger an interrupt.
This commit is contained in:
parent
be8c7f2a51
commit
84ac96f8ab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213522
@ -2656,14 +2656,12 @@ bge_attach(device_t dev)
|
||||
if (BGE_IS_5755_PLUS(sc) == 0)
|
||||
sc->bge_flags |= BGE_FLAG_4G_BNDRY_BUG;
|
||||
|
||||
/*
|
||||
* We could possibly check for BCOM_DEVICEID_BCM5788 in bge_probe()
|
||||
* but I do not know the DEVICEID for the 5788M.
|
||||
*/
|
||||
misccfg = CSR_READ_4(sc, BGE_MISC_CFG) & BGE_MISCCFG_BOARD_ID;
|
||||
if (misccfg == BGE_MISCCFG_BOARD_ID_5788 ||
|
||||
misccfg == BGE_MISCCFG_BOARD_ID_5788M)
|
||||
sc->bge_flags |= BGE_FLAG_5788;
|
||||
if (sc->bge_asicrev == BGE_ASICREV_BCM5705) {
|
||||
misccfg = CSR_READ_4(sc, BGE_MISC_CFG) & BGE_MISCCFG_BOARD_ID;
|
||||
if (misccfg == BGE_MISCCFG_BOARD_ID_5788 ||
|
||||
misccfg == BGE_MISCCFG_BOARD_ID_5788M)
|
||||
sc->bge_flags |= BGE_FLAG_5788;
|
||||
}
|
||||
|
||||
/*
|
||||
* Some controllers seem to require a special firmware to use
|
||||
|
Loading…
Reference in New Issue
Block a user