diff options
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/aiutils.c | 16 | ||||
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/aiutils.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/main.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/nicpci.c | 17 | ||||
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/nicpci.h | 1 |
5 files changed, 0 insertions, 37 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c index 8df7cb5379c1..8908c890d64b 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c | |||
@@ -484,8 +484,6 @@ ai_buscore_setup(struct si_info *sii, struct bcma_device *cc) | |||
484 | if (sii->pch == NULL) | 484 | if (sii->pch == NULL) |
485 | return false; | 485 | return false; |
486 | } | 486 | } |
487 | if (ai_pci_fixcfg(&sii->pub)) | ||
488 | return false; | ||
489 | 487 | ||
490 | return true; | 488 | return true; |
491 | } | 489 | } |
@@ -815,20 +813,6 @@ void ai_pci_down(struct si_pub *sih) | |||
815 | bcma_core_pci_extend_L1timer(&sii->icbus->drv_pci, false); | 813 | bcma_core_pci_extend_L1timer(&sii->icbus->drv_pci, false); |
816 | } | 814 | } |
817 | 815 | ||
818 | /* | ||
819 | * Fixup SROMless PCI device's configuration. | ||
820 | * The current core may be changed upon return. | ||
821 | */ | ||
822 | int ai_pci_fixcfg(struct si_pub *sih) | ||
823 | { | ||
824 | struct si_info *sii = (struct si_info *)sih; | ||
825 | |||
826 | /* Fixup PI in SROM shadow area to enable the correct PCI core access */ | ||
827 | /* check 'pi' is correct and fix it if not */ | ||
828 | pcicore_fixcfg(sii->pch); | ||
829 | return 0; | ||
830 | } | ||
831 | |||
832 | /* Enable BT-COEX & Ex-PA for 4313 */ | 816 | /* Enable BT-COEX & Ex-PA for 4313 */ |
833 | void ai_epa_4313war(struct si_pub *sih) | 817 | void ai_epa_4313war(struct si_pub *sih) |
834 | { | 818 | { |
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h index 14ae9f58a90d..da758c3ff89f 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h +++ b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h | |||
@@ -199,7 +199,6 @@ extern bool ai_deviceremoved(struct si_pub *sih); | |||
199 | 199 | ||
200 | extern void ai_pci_down(struct si_pub *sih); | 200 | extern void ai_pci_down(struct si_pub *sih); |
201 | extern void ai_pci_up(struct si_pub *sih); | 201 | extern void ai_pci_up(struct si_pub *sih); |
202 | extern int ai_pci_fixcfg(struct si_pub *sih); | ||
203 | 202 | ||
204 | /* Enable Ex-PA for 4313 */ | 203 | /* Enable Ex-PA for 4313 */ |
205 | extern void ai_epa_4313war(struct si_pub *sih); | 204 | extern void ai_epa_4313war(struct si_pub *sih); |
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/main.c b/drivers/net/wireless/brcm80211/brcmsmac/main.c index 71d7f394c8a2..479cb17c5ba1 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/main.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c | |||
@@ -5021,8 +5021,6 @@ static void brcms_b_hw_up(struct brcms_hardware *wlc_hw) | |||
5021 | ai_clkctl_init(wlc_hw->sih); | 5021 | ai_clkctl_init(wlc_hw->sih); |
5022 | brcms_b_clkctl_clk(wlc_hw, BCMA_CLKMODE_FAST); | 5022 | brcms_b_clkctl_clk(wlc_hw, BCMA_CLKMODE_FAST); |
5023 | 5023 | ||
5024 | ai_pci_fixcfg(wlc_hw->sih); | ||
5025 | |||
5026 | /* | 5024 | /* |
5027 | * TODO: test suspend/resume | 5025 | * TODO: test suspend/resume |
5028 | * | 5026 | * |
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/nicpci.c b/drivers/net/wireless/brcm80211/brcmsmac/nicpci.c index 9a3e03bc1fd0..cd3899b74142 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/nicpci.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/nicpci.c | |||
@@ -239,20 +239,3 @@ void pcicore_deinit(struct pcicore_info *pch) | |||
239 | { | 239 | { |
240 | kfree(pch); | 240 | kfree(pch); |
241 | } | 241 | } |
242 | |||
243 | void pcicore_fixcfg(struct pcicore_info *pi) | ||
244 | { | ||
245 | struct bcma_device *core = pi->core; | ||
246 | u16 val16; | ||
247 | uint regoff; | ||
248 | |||
249 | regoff = PCIEREGOFFS(sprom[SRSH_PI_OFFSET]); | ||
250 | |||
251 | val16 = bcma_read16(pi->core, regoff); | ||
252 | if (((val16 & SRSH_PI_MASK) >> SRSH_PI_SHIFT) != | ||
253 | (u16)core->core_index) { | ||
254 | val16 = ((u16)core->core_index << SRSH_PI_SHIFT) | | ||
255 | (val16 & ~SRSH_PI_MASK); | ||
256 | bcma_write16(pi->core, regoff, val16); | ||
257 | } | ||
258 | } | ||
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/nicpci.h b/drivers/net/wireless/brcm80211/brcmsmac/nicpci.h index 1e15ba988cba..cbd426ec0bcf 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/nicpci.h +++ b/drivers/net/wireless/brcm80211/brcmsmac/nicpci.h | |||
@@ -66,6 +66,5 @@ extern struct pcicore_info *pcicore_init(struct si_pub *sih, | |||
66 | extern void pcicore_deinit(struct pcicore_info *pch); | 66 | extern void pcicore_deinit(struct pcicore_info *pch); |
67 | extern void pcicore_up(struct pcicore_info *pch, int state); | 67 | extern void pcicore_up(struct pcicore_info *pch, int state); |
68 | extern void pcicore_down(struct pcicore_info *pch, int state); | 68 | extern void pcicore_down(struct pcicore_info *pch, int state); |
69 | extern void pcicore_fixcfg(struct pcicore_info *pch); | ||
70 | 69 | ||
71 | #endif /* _BRCM_NICPCI_H_ */ | 70 | #endif /* _BRCM_NICPCI_H_ */ |