mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add a workaround for the BCM4706's dangling core region EROM entries.
Approved by: adrian (mentor, implicit)
This commit is contained in:
parent
f0574f5cf6
commit
5658bc0a95
1 changed files with 13 additions and 0 deletions
|
|
@ -1344,6 +1344,19 @@ bcma_erom_next_corecfg(struct bcma_erom *erom, struct bcma_corecfg **result)
|
|||
goto failed;
|
||||
}
|
||||
|
||||
/*
|
||||
* Seek to the next core entry (if any), skipping any dangling/invalid
|
||||
* region entries.
|
||||
*
|
||||
* On the BCM4706, the EROM entry for the memory controller core
|
||||
* (0x4bf/0x52E) contains a dangling/unused slave wrapper port region
|
||||
* descriptor.
|
||||
*/
|
||||
if ((error = bcma_erom_seek_next(erom, BCMA_EROM_ENTRY_TYPE_CORE))) {
|
||||
if (error != ENOENT)
|
||||
goto failed;
|
||||
}
|
||||
|
||||
*result = cfg;
|
||||
return (0);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue