Skip to content

fix NVRAM partition size if larger than expected

Jonas Gorski linux-mips linux-mtd 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3MTD: bcm63xxpart: use size macro for CFE block sizedrivers/mtd/bcm63xxpart.c+2 -10 replies
2/3MIPS: BCM63XX: export PSI size from nvramarch/mips/bcm63xx/nvram.c arch/mips/include/asm/mach-bcm63xx/bcm63xx_nvram.h+13 -04 replies
3/3MTD: bcm63xxpart: use nvram for PSI sizedrivers/mtd/bcm63xxpart.c+4 -20 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFlorian Fainelli
SeriesA-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] fix NVRAM partition size if larger than expected

Some device vendors use a larger nvram size than expected. While Broadcom has defined it as 64K max, devices with 128K have been seen in the wild. Luckily they properly set the nvram's PSI size to the correct value, so we can use that to size the nvram partion.

Yes it's a bit confusing as there are two nvrams, one with a fixed layout with in the bootloader, with the size information about the other.

Since 2 of 3 patches are for the mtd tree, this patchset should go there (but it applies to both l2-mtd and mips-next fine).

Jonas Gorski (3):
MTD: bcm63xxpart: use size macro for CFE block size
MIPS: BCM63XX: export PSI size from nvram
MTD: bcm63xxpart: use nvram for PSI size

 arch/mips/bcm63xx/nvram.c                          |   11 +++++++++++
 arch/mips/include/asm/mach-bcm63xx/bcm63xx_nvram.h |    2 ++
 drivers/mtd/bcm63xxpart.c                          |    9 ++++++---
 3 files changed, 19 insertions(+), 3 deletions(-)
Signature · 1 line
1.7.10.4