bcm53xx: add testing support for kernel 6.1
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-6.1 / 036-v6.2-bcma-support-SPROM-rev-11.patch
1 From b9457a04eb89645049fdf427c13e6a18d5501895 Mon Sep 17 00:00:00 2001
2 From: Linus Walleij <linus.walleij@linaro.org>
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
9 Rev 11 works fine for me to set the MAC address of gmac0 and
10 gmac1 in the D-Link DWL-8610AP.
11
12 Cc: Rafał Miłecki <zajec5@gmail.com>
13 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
14 ---
15 drivers/bcma/sprom.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/drivers/bcma/sprom.c
19 +++ b/drivers/bcma/sprom.c
20 @@ -170,7 +170,7 @@ static int bcma_sprom_valid(struct bcma_
21 return err;
22
23 revision = sprom[words - 1] & SSB_SPROM_REVISION_REV;
24 - if (revision != 8 && revision != 9 && revision != 10) {
25 + if (revision < 8 || revision > 11) {
26 pr_err("Unsupported SPROM revision: %d\n", revision);
27 return -ENOENT;
28 }