Root/
| 1 | --- a/drivers/bcma/sprom.c |
| 2 | +++ b/drivers/bcma/sprom.c |
| 3 | @@ -591,8 +591,11 @@ int bcma_sprom_get(struct bcma_bus *bus) |
| 4 | bcma_chipco_bcm4331_ext_pa_lines_ctl(&bus->drv_cc, true); |
| 5 | |
| 6 | err = bcma_sprom_valid(sprom); |
| 7 | - if (err) |
| 8 | + if (err) { |
| 9 | + bcma_warn(bus, "invalid sprom read from the PCIe card, try to use fallback sprom\n"); |
| 10 | + err = bcma_fill_sprom_with_fallback(bus, &bus->sprom); |
| 11 | goto out; |
| 12 | + } |
| 13 | |
| 14 | bcma_sprom_extract_r8(bus, sprom); |
| 15 | |
| 16 |
