17 May, 2012
37 commits
-
Adds a missing read to flush the previous write (per the Broadcom SDK).
Signed-off-by: Nathan Hintz
Signed-off-by: John W. Linville -
Add missing __devexit attribute to bcma_host_pci_remove.
Signed-off-by: Nathan Hintz
Signed-off-by: John W. Linville -
Modify ioremap_nocache calls to reflect the number of bytes read/written.
Signed-off-by: Nathan Hintz
Signed-off-by: John W. Linville -
PCI Memory Resource start address and size are variable, dependent on
the H/W configuration. Modify the computation of io_map_base to use the
computed values.Signed-off-by: Nathan Hintz
Signed-off-by: John W. Linville -
The first thing bcm47xx_fill_sprom does is initialize (zero fill) the SPROM. For
BCMA SOC, this wipes out any values previously read by bcm47xx_fill_sprom_ethernet
(see arch/mips/bcm47xx/setup.c - bcm47xx_get_sprom_bcma). Move the initialization
of SPROM so it is called prior to filling in any values.Signed-off-by: Nathan Hintz
Signed-off-by: John W. Linville -
bcma_device_name only provides names for Broadcom cores. Modify logic to
provide names for MIPS and ARM cores as well.Signed-off-by: Nathan Hintz
Signed-off-by: John W. Linville -
This is based on code from the Broadcom SDK.
Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
If brcmsmac is used on non PCI(s) devices it should not try to access
bus->host_pci.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
The irq number is copied from the PCIe host device to the bcma cores so
just request it using the bcma core device.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
There is no code doing anything useful in nicpci.c anymore, so remove
it.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
This is now done in bcma by bcma_core_pci_fixcfg().
Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
This is now done by calling bcma_core_pci_extend_L1time()
Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
This function is now unreferenced
Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
This is already done by bcma in bcma_pcicore_serdes_workaround().
Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
This is now done by calling bcma_core_set_clockmode()
Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
This is now done by calling bcma_chipco_gpio_control().
Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
ai_chipcontrl_epa4331 is not referenced by any method in brcmsmac and
the functionality is already in bcma_chipco_bcm4331_ext_pa_lines_ctl in
drivers/bcma/driver_chipcommon_pmu.cSigned-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
This is now done by calling bcma_core_pci_irq_ctl()
Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
This is now done by bcma_core_pci_config_fixup() in drivers/bcma/driver_pci.c
Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
The devices I know of are not using a PCIe core with rev
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
There are no devices which are using bcma and have a PCI bus, just a
PCIe bus or something else. bcma does not support PCI devices, so lets
also remove PCI support from brcmsmac. All devices currently supported
by brcmsmac are PCIe based.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
The lowest chip common version used on bcma based devices is 31 on the
bcm4718 and 32 on the bcm4313, bcm43224, and bcm43225, so the support
for the old versions could be removed.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
bcma now provide this data and brcmsmac should get it from there and
not parse it by its self.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
brcmsmac now takes the sprom from bcma and do not uses its own sprom
parsing any more. Remove this code as it is not used any more.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
bcma now provides all sprom attributes needed by brcmsmac and also
parses them from the pci sprom ant otp.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
This code is based on code from pcie_misc_config_fixup() in brcmsmac.
This patch is part of the move of pci specific code from brcmsmac to
bcma.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
This code is based on code from pcicore_fixcfg() in brcmsmac. This
patch is part of the move of pci specific code from brcmsmac to bcma.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
This code is based on code from pcie_extendL1timer() in brcmsmac. This
patch is part of the move of pci specific code from brcmsmac to bcma.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
This patch is based on code from _ai_clkctl_cc() in brcmsmac.
Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
These newly added attributes are used by brcmsmac. Now bcma should
parse all attributes used by brcmsmac out of the sprom.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
This code is copied from the ssb sprom read code. These attributes are
partly used by b43 and brcmsmac and should also be read out on bcma
based devices.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
This attribute is now used in b43 driver and should be filled for all
sprom versions.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
The attribute country_code and alpha2 are two different attributes in
the sprom. country_code contains some code in an 8 bit coding and
alpha2 contains two chars with the country code. The attributes where
read out wrongly in the past and country_code is only available on
sprom version 1.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
When the boardrev with a prefix is not available, try to read it
without a prefix. This is based on code from the Broadcom SDK.Signed-off-by: Hauke Mehrtens
Acked-by: Ralf Baechle
Signed-off-by: John W. Linville -
This struct contains information about the board, the chip is running
on. The struct is filled for PCIe devices and SoCs. This information is
used by b43 and will be used by brcmsmac soon.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
Now the fetching of board data also uses nvram_read_u16 and not
simple_strtoul any more.Signed-off-by: Hauke Mehrtens
Acked-by: Ralf Baechle
Signed-off-by: John W. Linville -
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
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville
16 May, 2012
3 commits
-
Make use of REGAINED_BSS_EVENT and instead of reporting connection
loss immediately on each BEACON_LOSE event, try if not regained
in reasonable period of time.Signed-off-by: bartosz.markowski
Signed-off-by: Luciano Coelho -
We currently do this:
int wl1271_cmd_build_arp_rsp(struct wl1271 *wl, struct wl12xx_vif *wlvif)
...
struct wl12xx_arp_rsp_template *tmpl;
struct ieee80211_hdr_3addr *hdr;
...
tmpl = (struct wl12xx_arp_rsp_template *)skb_put(skb, sizeof(*tmpl));
memset(tmpl, 0, sizeof(tmpl));
...
hdr = (struct ieee80211_hdr_3addr *)skb_push(skb, sizeof(*hdr));
memset(hdr, 0, sizeof(hdr));
...I believe we want to set the entire structures to 0 with those
memset() calls, not just zero the initial part of them (size of the
pointer bytes).Signed-off-by: Jesper Juhl
Signed-off-by: Luciano Coelho