2
0

080-v6.2-bcma-support-SPROM-rev-11.patch 926 B

12345678910111213141516171819202122232425262728
  1. From b9457a04eb89645049fdf427c13e6a18d5501895 Mon Sep 17 00:00:00 2001
  2. From: Linus Walleij <[email protected]>
  3. Date: Tue, 11 Oct 2022 14:24:40 +0200
  4. Subject: [PATCH] bcma: support SPROM rev 11
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Rev 11 works fine for me to set the MAC address of gmac0 and
  9. gmac1 in the D-Link DWL-8610AP.
  10. Cc: Rafał Miłecki <[email protected]>
  11. Signed-off-by: Linus Walleij <[email protected]>
  12. ---
  13. drivers/bcma/sprom.c | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. --- a/drivers/bcma/sprom.c
  16. +++ b/drivers/bcma/sprom.c
  17. @@ -170,7 +170,7 @@ static int bcma_sprom_valid(struct bcma_
  18. return err;
  19. revision = sprom[words - 1] & SSB_SPROM_REVISION_REV;
  20. - if (revision != 8 && revision != 9 && revision != 10) {
  21. + if (revision < 8 || revision > 11) {
  22. pr_err("Unsupported SPROM revision: %d\n", revision);
  23. return -ENOENT;
  24. }