diff mbox series

bcma: support SPROM rev 11

Message ID 20221011122941.2053705-1-linus.walleij@linaro.org (mailing list archive)
State Accepted
Commit 80bc5ae9733c2ae71a13db819f9368191cc19d6f
Delegated to: Kalle Valo
Headers show
Series bcma: support SPROM rev 11 | expand

Commit Message

Linus Walleij Oct. 11, 2022, 12:29 p.m. UTC
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>
---
 drivers/bcma/sprom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kalle Valo Oct. 19, 2022, 5:59 a.m. UTC | #1
Linus Walleij <linus.walleij@linaro.org> wrote:

> 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>

Patch applied to wireless-next.git, thanks.

80bc5ae9733c bcma: support SPROM rev 11
diff mbox series

Patch

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;
 	}