From: Linus Walleij Date: Tue, 11 Oct 2022 12:29:41 +0000 (+0200) Subject: bcma: support SPROM rev 11 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=80bc5ae9733c2ae71a13db819f9368191cc19d6f;p=linux.git bcma: support SPROM rev 11 Rev 11 works fine for me to set the MAC address of gmac0 and gmac1 in the D-Link DWL-8610AP. Cc: Rafał Miłecki Signed-off-by: Linus Walleij Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20221011122941.2053705-1-linus.walleij@linaro.org --- diff --git a/drivers/bcma/sprom.c b/drivers/bcma/sprom.c index 3da01f173c637..e668ad7963fc2 100644 --- a/drivers/bcma/sprom.c +++ b/drivers/bcma/sprom.c @@ -165,7 +165,7 @@ static int bcma_sprom_valid(struct bcma_bus *bus, const u16 *sprom, return err; revision = sprom[words - 1] & SSB_SPROM_REVISION_REV; - if (revision != 8 && revision != 9 && revision != 10) { + if (revision < 8 || revision > 11) { pr_err("Unsupported SPROM revision: %d\n", revision); return -ENOENT; }