OSDN Git Service

bcma: support SPROM rev 11
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 11 Oct 2022 12:29:41 +0000 (14:29 +0200)
committerKalle Valo <kvalo@kernel.org>
Wed, 19 Oct 2022 05:59:37 +0000 (08:59 +0300)
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 <zajec5@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221011122941.2053705-1-linus.walleij@linaro.org
drivers/bcma/sprom.c

index 3da01f1..e668ad7 100644 (file)
@@ -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;
        }