MIPS: BCM47XX: Fix regression in reading WiFi SoC SPROM
Subsystems (2)
Rafał Miłecki
maintainerPATCH 1/1 MIPS: BCM47XX: Fix regression in reading WiFi SoC SPROM
In the recent SPROM commit:
MIPS: BCM47xx: Read board info for all bcma buses
a proper handling of "fallback" argument has been dropped. Restore it.
--- arch/mips/bcm47xx/sprom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/mips/bcm47xx/sprom.c +3 -1
@@ -698,6 +698,7 @@ static int bcm47xx_get_sprom_bcma(struct bcma_bus *bus, struct ssb_sprom *out)struct bcma_device *core;char buf[10 ];char *prefix; +bool fallback = false;switch (bus->hosttype) {case BCMA_HOSTTYPE_PCI :
@@ -715,6 +716,7 @@ static int bcm47xx_get_sprom_bcma(struct bcma_bus *bus, struct ssb_sprom *out)snprintf (buf,sizeof (buf),"sb/%u/" , core->core_index); prefix = buf; + fallback = true; }else { prefix =NULL ; }
@@ -729,7 +731,7 @@ static int bcm47xx_get_sprom_bcma(struct bcma_bus *bus, struct ssb_sprom *out) binfo->vendor =SSB_BOARDVENDOR_BCM ;nvram_read_u16 (prefix,NULL ,"boardtype" , &binfo->type,0 , true); -bcm47xx_fill_sprom (out, prefix, false); +bcm47xx_fill_sprom (out, prefix, fallback);return 0 ; }
Signature · 1 line
1.8.4.5
Quoted 6 lines · Rafał Miłecki
In the recent SPROM commit:
MIPS: BCM47xx: Read board info for all bcma buses
a proper handling of "fallback" argument has been dropped. Restore it.Signed-off-by Rafał Miłecki <[email protected]>---
Hi,
if the "MIPS: BCM47xx: Read board info for all bcma buses" is not upstream yet (I can't see it) it might make sense to fold this fix into it and repost it as v2.
Signature · 1 line
markos
Rafał Miłecki
maintainerQuoted 10 lines · Markos Chandras
Quoted 6 lines · Rafał Miłecki
In the recent SPROM commit:
MIPS: BCM47xx: Read board info for all bcma buses
a proper handling of "fallback" argument has been dropped. Restore it.Signed-off-by Rafał Miłecki <[email protected]>---
if the "MIPS: BCM47xx: Read board info for all bcma buses" is not upstream yet (I can't see it) it might make sense to fold this fix into it and repost it as v2.
It's not upstream in Linus's tree, but it was already pushed by Ralf to his tree:
http://git.linux-mips.org/cgit/ralf/upstream-sfr.git/commit/?id=c6d94e9354139e8a0ef3bd3286b2a5ac30f8f6aa
I'll just let Ralf decide if he wants to rebase.
Signature · 1 line
Rafał
Quoted 12 lines · Rafał Miłecki
Quoted 10 lines · Markos Chandras
Quoted 6 lines · Rafał Miłecki
In the recent SPROM commit:
MIPS: BCM47xx: Read board info for all bcma buses
a proper handling of "fallback" argument has been dropped. Restore it.Signed-off-by Rafał Miłecki <[email protected]>---
if the "MIPS: BCM47xx: Read board info for all bcma buses" is not upstream yet (I can't see it) it might make sense to fold this fix into it and repost it as v2.
Quoted 5 lines
It's not upstream in Linus's tree, but it was already pushed by Ralf to his tree:
http://git.linux-mips.org/cgit/ralf/upstream-sfr.git/commit/?id=c6d94e9354139e8a0ef3bd3286b2a5ac30f8f6aaI'll just let Ralf decide if he wants to rebase.
I've folded this patch into the original commit. I put the original and now the combined patch into my 4.2 queue so it won't go to Linus for another few weeks anyway. If this should go upstream for 4.1, please lemme know.
Ralf
Rafał Miłecki
maintainerQuoted 18 lines · Ralf Baechle
Quoted 16 lines · Rafał Miłecki
Quoted 10 lines · Markos Chandras
Quoted 6 lines · Rafał Miłecki
In the recent SPROM commit:
MIPS: BCM47xx: Read board info for all bcma buses
a proper handling of "fallback" argument has been dropped. Restore it.Signed-off-by Rafał Miłecki <[email protected]>---
if the "MIPS: BCM47xx: Read board info for all bcma buses" is not upstream yet (I can't see it) it might make sense to fold this fix into it and repost it as v2.
It's not upstream in Linus's tree, but it was already pushed by Ralf to his tree:
http://git.linux-mips.org/cgit/ralf/upstream-sfr.git/commit/?id=c6d94e9354139e8a0ef3bd3286b2a5ac30f8f6aa
Quoted 6 lines
Quoted 1 line
I'll just let Ralf decide if he wants to rebase.
I've folded this patch into the original commit. I put the original and now the combined patch into my 4.2 queue so it won't go to Linus for another few weeks anyway. If this should go upstream for 4.1, please lemme know.
Thanks a lot. Everything I posted is for next (4.2).
Signature · 1 line
Rafał