ssb: remove rev from boardinfo
Previously the rev contained the revision read from the pci config space and was used as board_rev in the wireless drivers. This is wrong the board_rev is only fetched from the sprom accordingly to the open source part of the Broadcom SDK and brcmsmac. This patch removes the rev from the boardinfo structure and uses the board_rev attribute from sprom instead. This attribute is filled by PCI, PCMCIA, SDIO and SoC code. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Tested-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
12d9568333
commit
5a20ef3db2
8 changed files with 11 additions and 15 deletions
|
@ -5243,10 +5243,10 @@ static void b43_sprom_fixup(struct ssb_bus *bus)
|
|||
|
||||
/* boardflags workarounds */
|
||||
if (bus->boardinfo.vendor == SSB_BOARDVENDOR_DELL &&
|
||||
bus->chip_id == 0x4301 && bus->boardinfo.rev == 0x74)
|
||||
bus->chip_id == 0x4301 && bus->sprom.board_rev == 0x74)
|
||||
bus->sprom.boardflags_lo |= B43_BFL_BTCOEXIST;
|
||||
if (bus->boardinfo.vendor == PCI_VENDOR_ID_APPLE &&
|
||||
bus->boardinfo.type == 0x4E && bus->boardinfo.rev > 0x40)
|
||||
bus->boardinfo.type == 0x4E && bus->sprom.board_rev > 0x40)
|
||||
bus->sprom.boardflags_lo |= B43_BFL_PACTRL;
|
||||
if (bus->bustype == SSB_BUSTYPE_PCI) {
|
||||
pdev = bus->host_pci;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue