diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2022-10-11 14:29:41 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-10-19 08:59:37 +0300 |
commit | 80bc5ae9733c2ae71a13db819f9368191cc19d6f (patch) | |
tree | b867a073d14dad91dfb1226b3ea3900cb73f7cc2 /drivers/bcma | |
parent | b5db4ef38e21dd9b6b95ae96cea5032b00e04f24 (diff) |
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 <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
Diffstat (limited to 'drivers/bcma')
-rw-r--r-- | drivers/bcma/sprom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bcma/sprom.c b/drivers/bcma/sprom.c index 3da01f173c63..e668ad7963fc 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; } |