Return-path: Received: from server19320154104.serverpool.info ([193.201.54.104]:53808 "EHLO hauke-m.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751695Ab2F3NR3 (ORCPT ); Sat, 30 Jun 2012 09:17:29 -0400 From: Hauke Mehrtens To: linville@tuxdriver.com, arend@broadcom.com Cc: brcm80211-dev-list@broadcom.com, linux-wireless@vger.kernel.org, Hauke Mehrtens Subject: [PATCH v2 00/18] brcmsmac: update to get SoCs working Date: Sat, 30 Jun 2012 15:16:03 +0200 Message-Id: <1341062181-28071-1-git-send-email-hauke@hauke-m.de> (sfid-20120630_151731_392679_24BE679E) Sender: linux-wireless-owner@vger.kernel.org List-ID: This series contains some patches needed to get brcmsmac working on SoCs like the BCM4718. The last part which adds core rev 17 (used in the BCM4718) to the list of supported cores is missing, because we do not have a firmware supporting this core yet, but I extended the b43 fwcutter to generate a firmware which brcmsmac accepts. With this firmware my BCM4718 works. I would appreciate an official firmware release from Broadcom adding support for this core. The final patch adding support for the BCM43224 is missing because the PCIe host controller on the BCM4718 still causes problems and I have to add some more read after writes into the code, for now it uses an ugly hack and sometimes the problems still occur. The wifi is not stable on the BCM4718, I had no problems connecting to my ath9k driven access point but I have problems connecting to my BCM47186 based AP running the vendor firmware with the Broadcom proprietary driver. I get 12MBit/s max with the BCM4718 connected to ath9k on the 2.4 GHz band and 35 MBit/s max with the BCM43224 on the 5Ghz band connected to a Broadcom based AP running the proprietary driver. This seams to be CPU bounced as I have over 50% sirq in both cases. brcmsmac starts on the BCM47186 (id: 0x5357), but it does not tx or rx any traffic. One patch extends the xmtfifo_sz array for more core revs, I just toke the values from the other phy-n cores and hope this is correct. These patches are depending on: "[PATCH v2 0/9] bcma misc updates" and based on wireless-testing. I will send a patch for bcma which converts the warning message when it found a PCI and not a PCIe card into a WARN. v2: - when something depends on a patch for bcma, which is not in wireless-testing yet, I add that to the commit comment. - removed changes for BCM43421 and BCM6362 as I do not have a device to test this. - xmtfifo_sz now starts at core rev 17 and contains the correct values for core rev 28 - make brcms_c_chipmatch() also work for SoCs - typos and format changes Hauke Mehrtens (18): brcmsmac: remove PCIE() macro brcmsmac: remove PCI_FORCEHT() macro brcmsmac: remove ai_get_buscore{type,rev}() brcmsmac: use container_of instead of cast brcmsmac: remove ai_findcore() brcmsmac: remove si_pmu_init() and si_pmu_res_init() brcmsmac: remove si_pmu_spuravoid_pllupdate() brcmsmac: remove some redundant chip common workarounds brcmsmac: use core id constants from bcma brcmsmac: use chip and package id constants from bcma brcmsmac: remove some unnessessacry casts and void pointer brcmsmac: add a conditions for core rev 17 again brcmsmac: add some workarounds for other chips again brcmsmac: extend xmtfifo_sz array brcmsmac: fix DMA on SoCs brcmsmac: extend brcms_c_chipmatch() to also handle non PCIe devices brcmsmac: fix read in write_phy_reg brcmsmac: handle non PCI devices in the phy code drivers/net/wireless/brcm80211/brcmsmac/aiutils.c | 128 ++------------- drivers/net/wireless/brcm80211/brcmsmac/aiutils.h | 16 -- drivers/net/wireless/brcm80211/brcmsmac/dma.c | 15 +- .../net/wireless/brcm80211/brcmsmac/mac80211_if.c | 3 +- drivers/net/wireless/brcm80211/brcmsmac/main.c | 91 ++++++++--- .../net/wireless/brcm80211/brcmsmac/phy/phy_cmn.c | 22 ++- .../net/wireless/brcm80211/brcmsmac/phy/phy_n.c | 140 ++++++++++------ drivers/net/wireless/brcm80211/brcmsmac/pmu.c | 172 +------------------- drivers/net/wireless/brcm80211/brcmsmac/pmu.h | 3 - drivers/net/wireless/brcm80211/brcmsmac/pub.h | 2 +- drivers/net/wireless/brcm80211/include/soc.h | 62 ------- 11 files changed, 213 insertions(+), 441 deletions(-) -- 1.7.9.5