aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-04-28 20:50:32 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-05-16 12:45:24 -0400
commitb30ee754400d16606fc6308fa36ad4f49a72ff85 (patch)
treec916cb29b78e261650d6d7067256993dc934587a /drivers/net
parent63286295e6e069649b3234c3080d9c141524daea (diff)
brcmsmac: remove ai_pci_setup()
This is now done by calling bcma_core_pci_irq_ctl() 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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/brcm80211/brcmsmac/aiutils.c23
-rw-r--r--drivers/net/wireless/brcm80211/brcmsmac/aiutils.h1
-rw-r--r--drivers/net/wireless/brcm80211/brcmsmac/main.c7
3 files changed, 2 insertions, 29 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c
index fd99e7bd0dc6..585a5169ca50 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c
@@ -843,29 +843,6 @@ void ai_pci_down(struct si_pub *sih)
843} 843}
844 844
845/* 845/*
846 * Configure the pci core for pci client (NIC) action
847 * coremask is the bitvec of cores by index to be enabled.
848 */
849void ai_pci_setup(struct si_pub *sih, uint coremask)
850{
851 struct si_info *sii;
852 u32 w;
853
854 sii = (struct si_info *)sih;
855
856 /*
857 * Enable sb->pci interrupts. Assume
858 * PCI rev 2.3 support was added in pci core rev 6 and things changed..
859 */
860 if (PCIE(sih)) {
861 /* pci config write to set this core bit in PCIIntMask */
862 pci_read_config_dword(sii->pcibus, PCI_INT_MASK, &w);
863 w |= (coremask << PCI_SBIM_SHIFT);
864 pci_write_config_dword(sii->pcibus, PCI_INT_MASK, w);
865 }
866}
867
868/*
869 * Fixup SROMless PCI device's configuration. 846 * Fixup SROMless PCI device's configuration.
870 * The current core may be changed upon return. 847 * The current core may be changed upon return.
871 */ 848 */
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h
index 4ea166c8bba4..39942572013b 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h
+++ b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h
@@ -196,7 +196,6 @@ extern u32 ai_core_cflags(struct bcma_device *core, u32 mask, u32 val);
196extern struct si_pub *ai_attach(struct bcma_bus *pbus); 196extern struct si_pub *ai_attach(struct bcma_bus *pbus);
197extern void ai_detach(struct si_pub *sih); 197extern void ai_detach(struct si_pub *sih);
198extern uint ai_cc_reg(struct si_pub *sih, uint regoff, u32 mask, u32 val); 198extern uint ai_cc_reg(struct si_pub *sih, uint regoff, u32 mask, u32 val);
199extern void ai_pci_setup(struct si_pub *sih, uint coremask);
200extern void ai_clkctl_init(struct si_pub *sih); 199extern void ai_clkctl_init(struct si_pub *sih);
201extern u16 ai_clkctl_fast_pwrup_delay(struct si_pub *sih); 200extern u16 ai_clkctl_fast_pwrup_delay(struct si_pub *sih);
202extern bool ai_clkctl_cc(struct si_pub *sih, uint mode); 201extern bool ai_clkctl_cc(struct si_pub *sih, uint mode);
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/main.c b/drivers/net/wireless/brcm80211/brcmsmac/main.c
index 5e5d8b96d8ee..9cd7c05443eb 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/main.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c
@@ -5050,8 +5050,6 @@ static void brcms_b_hw_up(struct brcms_hardware *wlc_hw)
5050 5050
5051static int brcms_b_up_prep(struct brcms_hardware *wlc_hw) 5051static int brcms_b_up_prep(struct brcms_hardware *wlc_hw)
5052{ 5052{
5053 uint coremask;
5054
5055 BCMMSG(wlc_hw->wlc->wiphy, "wl%d\n", wlc_hw->unit); 5053 BCMMSG(wlc_hw->wlc->wiphy, "wl%d\n", wlc_hw->unit);
5056 5054
5057 /* 5055 /*
@@ -5066,9 +5064,8 @@ static int brcms_b_up_prep(struct brcms_hardware *wlc_hw)
5066 * Configure pci/pcmcia here instead of in brcms_c_attach() 5064 * Configure pci/pcmcia here instead of in brcms_c_attach()
5067 * to allow mfg hotswap: down, hotswap (chip power cycle), up. 5065 * to allow mfg hotswap: down, hotswap (chip power cycle), up.
5068 */ 5066 */
5069 coremask = (1 << wlc_hw->wlc->core->coreidx); 5067 bcma_core_pci_irq_ctl(&wlc_hw->d11core->bus->drv_pci, wlc_hw->d11core,
5070 5068 true);
5071 ai_pci_setup(wlc_hw->sih, coremask);
5072 5069
5073 /* 5070 /*
5074 * Need to read the hwradio status here to cover the case where the 5071 * Need to read the hwradio status here to cover the case where the