BCMA: If reading sprom fails try fallback sprom. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com>
Index: target/linux/generic/patches-3.3/025-bcma_backport.patch =================================================================== --- target/linux/generic/patches-3.3/025-bcma_backport.patch (revisión: 32704) +++ target/linux/generic/patches-3.3/025-bcma_backport.patch (copia de trabajo) @@ -2628,6 +2628,14 @@ bcma_chipco_bcm4331_ext_pa_lines_ctl(&bus->drv_cc, true); err = bcma_sprom_valid(sprom); +@@ -243,5 +598,7 @@ int bcma_sprom_get(struct bcma_bus *bus) + + out: + kfree(sprom); ++ pr_debug("Reading SPROM failed. Trying fallback SPROM...\n"); ++ err = bcma_fill_sprom_with_fallback(bus, &bus->sprom); + return err; + } --- a/include/linux/bcma/bcma.h +++ b/include/linux/bcma/bcma.h @@ -26,6 +26,11 @@ struct bcma_chipinfo { _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel