projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5db4ef
)
bcma: support SPROM rev 11
author
Linus Walleij
<linus.walleij@linaro.org>
Tue, 11 Oct 2022 12:29:41 +0000
(14:29 +0200)
committer
Kalle 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
patch
|
blob
|
history
diff --git
a/drivers/bcma/sprom.c
b/drivers/bcma/sprom.c
index
3da01f1
..
e668ad7
100644
(file)
--- 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;
}