29 Jan, 2015

1 commit


29 Jul, 2014

1 commit


19 Jul, 2014

2 commits


28 Jun, 2013

1 commit


23 May, 2013

3 commits


26 Mar, 2013

1 commit


20 Oct, 2012

1 commit

  • Sometimes the PCIe card indicates that it has a sprom somewhere and we
    are able to read the memory region, but it is empty and not valid. In
    these cases we should try to use the fallback sprom as a last chance.

    This is the case for the PCIe cards in my ASUS RT-N66U (BCM4706 + 2
    times BCM4331) and I have heard of someone having the same problem with
    an other PCIe card connected to an other Broadcom SoC.

    Signed-off-by: Hauke Mehrtens
    Signed-off-by: John W. Linville

    Hauke Mehrtens
     

25 Sep, 2012

1 commit


03 Aug, 2012

1 commit


10 Jul, 2012

2 commits

  • Having bus number printed makes it much easier to anaylze logs on
    systems with more buses. For example Netgear WNDR4500 has 3 AMBA buses
    in total, which makes standard log really messy.

    Signed-off-by: Rafał Miłecki
    Signed-off-by: John W. Linville

    Rafał Miłecki
     
  • The chip IDs are used all over bcma and no constants where defined.
    This patch adds the constants and makes bcma use them.

    Acked-by: Arend van Spriel
    Signed-off-by: Hauke Mehrtens
    Signed-off-by: John W. Linville

    Hauke Mehrtens
     

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

    Seth Forshee
     

17 May, 2012

3 commits

  • 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

    Hauke Mehrtens
     
  • 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

    Hauke Mehrtens
     
  • 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

    Hauke Mehrtens
     

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 +0100

    bcma: 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

    Hauke Mehrtens
     

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 OTP

    This 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

    Arend van Spriel
     
  • 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

    Arend van Spriel
     

06 Mar, 2012

1 commit

  • 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

    Hauke Mehrtens
     

07 Feb, 2012

1 commit


25 Jan, 2012

3 commits


14 Dec, 2011

2 commits


14 Sep, 2011

1 commit


23 Aug, 2011

1 commit


20 Jul, 2011

1 commit


19 Jul, 2011

1 commit


12 Jul, 2011

1 commit

  • The SoCs like the bcm4716 do not have a sprom on the bcma bus like a
    pcie device. It stores the values in some partition on flash memory.
    For ssb this informations are read out in the bcm47xx arch code,
    something like that should also be implemented for bcma. Without this
    patch bcma panics on SoCs.

    Signed-off-by: Hauke Mehrtens
    Signed-off-by: John W. Linville

    Hauke Mehrtens
     

04 Jun, 2011

1 commit

  • In case of BCMA cards SPROM is located in the ChipCommon core, it is
    not mapped as separated host window. So far we have met only SPROMs rev
    8.
    SPROM layout seems to be the same as for SSB buses, so we decided to
    share SPROM struct and some defines.
    For now we extract MAC address only, this can be improved of course.

    Signed-off-by: Rafał Miłecki
    Signed-off-by: John W. Linville

    Rafał Miłecki