Skip to content

Commit

Permalink
bcma: don't fail for bad SPROM CRC
Browse files Browse the repository at this point in the history
The brcmsmac driver is now using the bcma SPROM CRC check, which does
not recognize all chipsets that were functional prior to the switch. In
particular, the current code bails out on odd CRC errors in recent
Macbooks. This patch ignores those errors, with the argument that an
unrecognized SPROM should be treated similarly to a non-existing one.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Henrik Rydberg authored and John W. Linville committed Feb 6, 2012
1 parent 55a2bb4 commit 2e6b411
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/bcma/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,8 @@ int bcma_bus_register(struct bcma_bus *bus)
err = bcma_sprom_get(bus);
if (err == -ENOENT) {
pr_err("No SPROM available\n");
} else if (err) {
} else if (err)
pr_err("Failed to get SPROM: %d\n", err);
return -ENOENT;
}

/* Register found cores */
bcma_register_cores(bus);
Expand Down

0 comments on commit 2e6b411

Please sign in to comment.