Skip to contentSkip to conversation

MIPS: BCM47XX: Fix regression in reading WiFi SoC SPROM

PATCH In review Rafał Miłecki 3 participants 5 messages May 14, 2015 – May 15, 2015

Subsystems (2)
lore
Share & tools
lore

Rafał Miłecki

author maintainer
#0 lore raw

PATCH 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
index 8485143..b0d62e7 100644
@@ -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
#1 lore raw
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.

---

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
author maintainer
#2 lore raw
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.

---

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ł
#3 lore raw
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.

---

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=c6d94e9354139e8a0ef3bd3286b2a5ac30f8f6aa

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.

Ralf

author maintainer
#4 lore raw
Quoted 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.

---

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ł