Skip to content

ssb/bcma/BCM47XX: sprom fixes and extensions

Hauke Mehrtens b43-dev linux-mips linux-wireless 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 0 repliesNew
  2. v10 of 11 patches 0 repliesSuperseded

Changes in v2 from the cover letter

* fix drivers/ssb/pci.c:334:5: warning: unused variable 'gain'
* rename ccode to alpha2
* typos
* use switch in bcm47xx_get_sprom_bcma()

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11ssb: sprom fix some sizes / signednessinclude/linux/ssb/ssb.h+8 -80 replies
2/11ssb: remove 5GHz antenna gain from spromdrivers/net/wireless/b43legacy/phy.c drivers/ssb/pci.c drivers/ssb/pcmcia.c +2 more+24 -500 replies
3/11ssb: fix per path sprom varsinclude/linux/ssb/ssb.h+1 -10 replies
4/11ssb: add alpha2include/linux/ssb/ssb.h+1 -00 replies
5/11ssb: add some missing sprom attributesinclude/linux/ssb/ssb.h+75 -10 replies
6/11bcma: export bcma_find_coredrivers/bcma/main.c include/linux/bcma/bcma.h+3 -10 replies
7/11bcma: add support for sprom not found on the devicedrivers/bcma/sprom.c include/linux/bcma/bcma.h+75 -81 reply
8/11MIPS: BCM47XX: return number of written bytes in nvram_getenvarch/mips/bcm47xx/nvram.c+1 -20 replies
9/11MIPS: BCM47XX: fix signature of nvram_parse_macaddrarch/mips/include/asm/mach-bcm47xx/nvram.h+1 -10 replies
10/11MIPS: BCM47XX: move and extend sprom parsingarch/mips/bcm47xx/Makefile arch/mips/bcm47xx/setup.c arch/mips/bcm47xx/sprom.c +1 more+625 -1510 replies
11/11MIPS: BCM47XX: provide sprom to bcma busarch/mips/bcm47xx/setup.c+35 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/11] ssb/bcma/BCM47XX: sprom fixes and extensions

This patch series fixes some errors in the sprom structures and extends it to contain members for all sprom values for sprom version 1 to 9. This was done by looking into the open source part of the Broadcom SDK. This also adds a fallback sprom registration method to bcma. It also contains some small fixes for the bcma47xx arch code and a rewrite of the code to provide the sprom from flash. It now also provides sprom from flash for devices using bcma to control the system bus.

This patch series is based on wireles-testing. I think it is the best way to merge this through John's wireless tree as the changes in the sprom struct should be used in further patches extending the pci sprom parsing and the usage of struct sprom by the brcmsmac driver.

@Ralf could you please give me your Ack on the patches touching arch/mips/ or say to me what you do not like at these patches or the others.

v2:
* fix drivers/ssb/pci.c:334:5: warning: unused variable 'gain'
* rename ccode to alpha2
* typos
* use switch in bcm47xx_get_sprom_bcma()

Hauke Mehrtens (11):
ssb: sprom fix some sizes / signedness
ssb: remove 5GHz antenna gain from sprom
ssb: fix per path sprom vars
ssb: add alpha2
ssb: add some missing sprom attributes
bcma: export bcma_find_core
bcma: add support for sprom not found on the device
MIPS: BCM47XX: return number of written bytes in nvram_getenv
MIPS: BCM47XX: fix signature of nvram_parse_macaddr
MIPS: BCM47XX: move and extend sprom parsing
MIPS: BCM47XX: provide sprom to bcma bus

 arch/mips/bcm47xx/Makefile                   |    2 +-
 arch/mips/bcm47xx/nvram.c                    |    3 +-
 arch/mips/bcm47xx/setup.c                    |  188 ++-------
 arch/mips/bcm47xx/sprom.c                    |  620 ++++++++++++++++++++++++++
 arch/mips/include/asm/mach-bcm47xx/bcm47xx.h |    3 +
 arch/mips/include/asm/mach-bcm47xx/nvram.h   |    2 +-
 drivers/bcma/main.c                          |    3 +-
 drivers/bcma/sprom.c                         |   77 +++-
 drivers/net/wireless/b43legacy/phy.c         |    2 +-
 drivers/ssb/pci.c                            |   41 +--
 drivers/ssb/pcmcia.c                         |   12 +-
 drivers/ssb/sdio.c                           |   12 +-
 include/linux/bcma/bcma.h                    |    7 +
 include/linux/ssb/ssb.h                      |  102 ++++-
 14 files changed, 848 insertions(+), 226 deletions(-)
 create mode 100644 arch/mips/bcm47xx/sprom.c
Signature · 1 line
1.7.5.4