28 Jun, 2012
1 commit
-
Some of them are BCM4706 specific AFAWK. Most of them was confirmed on
Netgear WNDR450.Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
09 Jun, 2012
1 commit
-
pc could be null if hosttype != BCMA_HOSTTYPE_PCI.
If we are on a device without a pci core this function is called with
pc = null by b43 and brcmsmac. If the host type is PCI we have a pci
core as well and pc can not be null.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville
05 Jun, 2012
1 commit
-
MacBook Pro models with BCM4331 wireless have been found to have the ext
PA lines disabled after resuming from S3 without external power attach.
This causes them to be unable to transmit. Add a workaround to ensure
that the ext PA lines are enabled on BCM4331. Also extend all handling
of ext PA line muxing to BCM43431 as is done in the Broadcom SDK.BugLink: http://bugs.launchpad.net/bugs/925577
Cc: Arend van Spriel
Cc: Hauke Mehrtens
Cc: stable@vger.kernel.org
Signed-off-by: Seth Forshee
Signed-off-by: John W. Linville
25 May, 2012
1 commit
-
Pull more networking updates from David Miller:
"Ok, everything from here on out will be bug fixes."1) One final sync of wireless and bluetooth stuff from John Linville.
These changes have all been in his tree for more than a week, and
therefore have had the necessary -next exposure. John was just away
on a trip and didn't have a change to send the pull request until a
day or two ago.2) Put back some defines in user exposed header file areas that were
removed during the tokenring purge. From Stephen Hemminger and Paul
Gortmaker.3) A bug fix for UDP hash table allocation got lost in the pile due to
one of those "you got it.. no I've got it.." situations. :-)From Tim Bird.
4) SKB coalescing in TCP needs to have stricter checks, otherwise we'll
try to coalesce overlapping frags and crash. Fix from Eric Dumazet.5) RCU routing table lookups can race with free_fib_info(), causing
crashes when we deref the device pointers in the route. Fix by
releasing the net device in the RCU callback. From Yanmin Zhang.* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (293 commits)
tcp: take care of overlaps in tcp_try_coalesce()
ipv4: fix the rcu race between free_fib_info and ip_route_output_slow
mm: add a low limit to alloc_large_system_hash
ipx: restore token ring define to include/linux/ipx.h
if: restore token ring ARP type to header
xen: do not disable netfront in dom0
phy/micrel: Fix ID of KSZ9021
mISDN: Add X-Tensions USB ISDN TA XC-525
gianfar:don't add FCB length to hard_header_len
Bluetooth: Report proper error number in disconnection
Bluetooth: Create flags for bt_sk()
Bluetooth: report the right security level in getsockopt
Bluetooth: Lock the L2CAP channel when sending
Bluetooth: Restore locking semantics when looking up L2CAP channels
Bluetooth: Fix a redundant and problematic incoming MTU check
Bluetooth: Add support for Foxconn/Hon Hai AR5BBU22 0489:E03C
Bluetooth: Fix EIR data generation for mgmt_device_found
Bluetooth: Fix Inquiry with RSSI event mask
Bluetooth: improve readability of l2cap_seq_list code
Bluetooth: Fix skb length calculation
...
17 May, 2012
13 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 -
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 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 -
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 -
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
08 May, 2012
1 commit
-
This resolves the conflict with:
drivers/usb/host/ehci-tegra.cSigned-off-by: Greg Kroah-Hartman
23 Apr, 2012
1 commit
-
This resolves the conflict in:
drivers/usb/host/ehci-fsl.c
And picks up loads of xhci bugfixes to make it easier for others to test
with.Signed-off-by: Greg Kroah-Hartman
19 Apr, 2012
1 commit
-
Some cores like the USB core have two address spaces. In the USB host
controller one address space is used for the OHCI and the other for the
EHCI controller interface. The USB controller is the only core I found
with two address spaces. This code is based on the AI scan function
ai_scan() in shared/aiutils.c in the Broadcom SDK.CC: Rafał Miłecki
CC: linux-wireless@vger.kernel.org
Signed-off-by: Hauke Mehrtens
Signed-off-by: Greg Kroah-Hartman
17 Apr, 2012
1 commit
-
bcma should check for a fallback sprom every time it can not find a
sprom on the card itself or a normal external sprom mapped into the
memory of the chip. When otp sprom support was introduced it tried to
read out the sprom from the wireless chip also if no otp sprom was
available. This caused a Data bus error in bcma_sprom_get() when
reading out the sprom for the SoC.This fixes a regression introduced in commit:
commit 10d8493cd9efd38b1947b7a74276dbdc8311aa1a
Author: Arend van Spriel
Date: Tue Mar 6 15:50:48 2012 +0100bcma: add support for on-chip OTP memory used for SPROM storage
This patch was tested on a Netgear WNDR3400 (Broadcom BCM4718 SoC).
Reported-by: Nick Bowler
Signed-off-by: Hauke Mehrtens
Acked-by: Arend van Spriel
Signed-off-by: John W. Linville
11 Apr, 2012
1 commit
-
The following is seen during allmodconfig builds for MIPS:
drivers/bcma/driver_pci_host.c:518:2: error: implicit declaration
of function 'pcibios_enable_device' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[3]: *** [drivers/bcma/driver_pci_host.o] Error 1Most likey introduced by commit 49dc9577155576b10ff79f0c1486c816b01f58bf
"bcma: add PCIe host controller"
Add the header instead of implicitly assuming it will be present.
Sounds like a good idea, but that alone doesn't fix anything.The real problem is that the Kconfig has settings related to whether
PCI is possible, i.e.config BCMA_HOST_PCI_POSSIBLE
bool
depends on BCMA && PCI = y
default yconfig BCMA_HOST_PCI
bool "Support for BCMA on PCI-host bus"
depends on BCMA_HOST_PCI_POSSIBLE...but what is missing is that BCMA_DRIVER_PCI_HOSTMODE doesn't
have any dependencies on the above. Add one.CC: Hauke Mehrtens
CC: John W. Linville
Signed-off-by: Paul Gortmaker
Acked-by: Hauke Mehrtens
Signed-off-by: John W. Linville
08 Mar, 2012
1 commit
-
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
07 Mar, 2012
2 commits
-
Wireless Broadcom chips can have either their SPROM data stored
on either external SPROM or on-chip OTP memory. Both are accessed
through the same register space. This patch adds support for the
on-chip OTP memory.Tested with:
BCM43224 OTP and SPROM
BCM4331 SPROM
BCM4313 OTPThis patch is in response to linux-wireless thread [1].
[1] http://article.gmane.org/gmane.linux.kernel.wireless.general/85426
Tested-by: Saul St. John
Tested-by: Rafal Milecki
Tested-by: Hauke Mehrtens
Cc: Larry Finger
Signed-off-by: Arend van Spriel
Signed-off-by: John W. Linville -
When not SPROM is available a fallback mechanism is used. However,
when that fails the code currently continues. This patch assures
that the bcma_sprom_get() function aborts when that happens.Cc: Rafal Milecki
Cc: Hauke Mehrtens
Signed-off-by: Arend van Spriel
Signed-off-by: John W. Linville
06 Mar, 2012
2 commits
-
On SoCs the sprom is stored in the nvram in a special partition on the
flash chip. The nvram contains the sprom for the main bus, but
sometimes also for a pci devices using bcma. This patch makes it
possible for the arch code to register a function to fetch the needed
sprom from the nvram and provide it to the bcma code.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
This function is needed by the bcm47xx arch code to get the number of
the ieee80211 core.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville
16 Feb, 2012
1 commit
-
Conflicts:
net/mac80211/debugfs_sta.c
net/mac80211/sta_info.h
07 Feb, 2012
9 commits
-
This makes us see what type of hardware someone uses by the dmesg
output.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
This check is needed on the BCM43224 device as it says in the
capabilities it has an sprom but is extra check says it has not.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
If we have two bcma buses on one computer the second will not work
without this patch. Now each bus gets an own number.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
Some SoCs have a PCIe host controller to make it possible to attach
some other devices to it, like an other Wifi card.
This code was tested with an Netgear WNDR3400 (bcm4716 based), but
should work with all bcma based SoCs.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
bcma_core_pci_hostmode_init() has to be in __devinit as it will call a
function in that section and so all functions calling it also have to
be in __devinit.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
This will be needed by the host controller.
Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
There are many magic numbers used in the PCIe code. Replace them with
some constants from the Broadcom SDK and also use them in the pcie host
controller.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
Some SoCs have two pcie or gmac cores and we need to know the number of
the specific core on the bus. This is the case for the BCM4706.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
The brcmsmac driver is now using the bcma SPROM CRC check, which does
not recognize all chipsets that were functional prior to the switch. In
particular, the current code bails out on odd CRC errors in recent
Macbooks. This patch ignores those errors, with the argument that an
unrecognized SPROM should be treated similarly to a non-existing one.Signed-off-by: Henrik Rydberg
Signed-off-by: John W. Linville
02 Feb, 2012
1 commit
-
bcma_bus_scan() leaks 'struct bcma_device' bytes if
bcma_get_next_core() returns error.Restructure the code so we always kfree() the memory we allocate to
the variable 'core' before it goes out of scope.Signed-off-by: Jesper Juhl
Signed-off-by: John W. Linville
25 Jan, 2012
2 commits
-
The SPROM location has been relocated again for some devices. This patch
will log the offset when CONFIG_BCMA_DEBUG has been selected.Signed-off-by: Larry Finger
Signed-off-by: John W. Linville -
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville