]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
brcm80211: fmac: move dongle gpio reset code to chip attach function
authorFranky Lin <frankyl@broadcom.com>
Fri, 4 Nov 2011 21:23:33 +0000 (22:23 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Nov 2011 21:14:00 +0000 (16:14 -0500)
This patch is part of the abstracting chip backplane handle code
series.

Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c
drivers/net/wireless/brcm80211/brcmfmac/sdio_chip.c

index c98986fe7a1d5dabd141c710c73ad002abbdd38e..30187c165837def984df5d951a20bc7edb6271d6 100644 (file)
@@ -3885,11 +3885,6 @@ brcmf_sdbrcm_chip_attach(struct brcmf_bus *bus, u32 regs)
        if (err)
                goto fail;
 
-       brcmf_sdcard_reg_write(bus->sdiodev,
-               CORE_CC_REG(ci->cccorebase, gpiopullup), 4, 0);
-       brcmf_sdcard_reg_write(bus->sdiodev,
-               CORE_CC_REG(ci->cccorebase, gpiopulldown), 4, 0);
-
        /* Disable F2 to clear any intermediate frame state on the dongle */
        brcmf_sdcard_cfg_write(bus->sdiodev, SDIO_FUNC_0, SDIO_CCCR_IOEx,
                SDIO_FUNC_ENABLE_1, NULL);
index 486f1455affee41a8550ed9a15918b6d0685801c..002157f0ce290e2c5a3b17ca5915e99cdf485a57 100644 (file)
@@ -266,5 +266,10 @@ int brcmf_sdio_chip_attach(struct brcmf_sdio_dev *sdiodev,
 
        brcmf_sdio_chip_buscoresetup(sdiodev, ci);
 
+       brcmf_sdcard_reg_write(sdiodev,
+               CORE_CC_REG(ci->cccorebase, gpiopullup), 4, 0);
+       brcmf_sdcard_reg_write(sdiodev,
+               CORE_CC_REG(ci->cccorebase, gpiopulldown), 4, 0);
+
        return ret;
 }