From patchwork Wed Dec 14 00:15:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1715555 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=EluPxU5n; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=R05z1z6c; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NWwvV2zT0z23yy for ; Wed, 14 Dec 2022 11:18:44 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=nsXzohXfFatVXOfOgITQXEWPUvqqT+2qV4FOjh1noMw=; b=EluPxU5nEdPLe3 Fu4Bl1JpkJQy5P78Jv2FyVK7Rq+FkYEN9nYUV+34sOXzNQkMLnnFOMgXBs93eskbFVRBIrAXMD9GN 3ilECttZ/sVAzyJHh+gDsZovbDfdOIhlEw5eOENUPOh63oNzlNTDENLeRo1ZTXUimVKrZpuORTU3p t7L4eCNbY6m42Agll8zPvlrmrNUNxY9nYvxpK+tpPjeRJ2WlGQJdNrLHUPlV3eV0567BqfCybjcel dEbByoWmqHEX/ivt8meWiRmEWJb7tTe9Dv1JxXDvmCMDOfmAPrmcWx+0D3kpptKl9IYljOy+zQ4h7 aY7OjC/wAxGkC5SLj0Fg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p5FRM-008TwW-Gw; Wed, 14 Dec 2022 00:16:04 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p5FRJ-008TuN-8R for openwrt-devel@lists.openwrt.org; Wed, 14 Dec 2022 00:16:02 +0000 Received: by mail-lf1-x12a.google.com with SMTP id b13so7769523lfo.3 for ; Tue, 13 Dec 2022 16:15:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+3RQUN3pjan+Y5+8OwP0SA2hvba/tws+XKPjCQ/ET30=; b=R05z1z6cDM1OXJfXFS3ONonJyxQ5jQ9+iJsiCcEBDFFnn8ZhwOHN/D//PwiL7vOI8O BpSHdIkcnE9qK6RUO/+VQOGjpxm9uhMQCUext66qaSQbWIB2HrSrb2w9kdnJ3LAa/8SA cJIzsWSWfCIKSu8Nuf4f+NRS5ICIye3lR/8UWocGoaFrMU/CNb5smcM0nvMxvOEzK6ek 3JGvJ/wl563XGnRIyuP37xhh6P4EVw4r2zMWdlq9/3ROrzDRWqy1B+JagUqWxxZQjX0f HZdVNyor28RNy4Y8VPMrQ8GZS+Lqoa5QseR7uZNtGF6V2j4r4qmsHZy5qjnNolA644do qoFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+3RQUN3pjan+Y5+8OwP0SA2hvba/tws+XKPjCQ/ET30=; b=G1fbInxaUgxpeUdaoSNbs3EyUe2gT8ZjirBML4QeWBdK9fAAZnVEUy6UQ1hzRxwsM5 csWuYzJrAw578P9qMVGiyPGDNmauET2KQASZ9K6LHqJoYs2aWendBAkBpUPB+H70pb1R xiqJOc8qrolCZYR8HEREC0s1otlVsrPTV5uszIxOi14pNlpS2HH6zKJ63lovi5viWWFj csgFe6NxokBZIP86EANmCY5b0nOtlN60aIht3bNry+fYOgc5rwGdjki68D1m83apynWM bhHh1oAo2kOVCZM9H3aFsYII/ELgo88Gzy5PRgORyu9O/kKtOS5jGiwrjH6/iEVX6D+B zOdQ== X-Gm-Message-State: ANoB5pk9vdBKK5RIkun8fTWSIMxhhPTyWd7NSrVGpf69ZzQ1BWJvZWPB h+vpJgSlzR1gCq+H4LBoAgLOBzVvY5/diuXEfKA= X-Google-Smtp-Source: AA0mqf7VxMpqxLto2tB8BNKUkII3IwCUMLegRvuoPJ36hd0hwBsejN8VD8H386twckUDpJ8DHcb1RA== X-Received: by 2002:a05:6512:21ca:b0:4b5:1e6c:785c with SMTP id d10-20020a05651221ca00b004b51e6c785cmr5934186lft.34.1670976956182; Tue, 13 Dec 2022 16:15:56 -0800 (PST) Received: from Fecusia.lan (c-05d8225c.014-348-6c756e10.bbcust.telenor.se. [92.34.216.5]) by smtp.gmail.com with ESMTPSA id u15-20020ac258cf000000b004a47e7b91c4sm560996lfo.195.2022.12.13.16.15.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 16:15:53 -0800 (PST) From: Linus Walleij To: openwrt-devel@lists.openwrt.org Cc: Christian Lamparter , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Linus Walleij Subject: [PATCH] bcm53xx: Patch to support BCMA rev 11 Date: Wed, 14 Dec 2022 01:15:48 +0100 Message-Id: <20221214001548.113259-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221213_161601_372040_CCA348FC X-CRM114-Status: GOOD ( 15.39 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: A backported patch to the BCMA driver necessary to support the DWL-8610AP and DIR-890L. Patch will be in upstream v6.2. Signed-off-by: Linus Walleij --- .../039-v6.2-bcma-support-SPROM-rev-11.patch | 28 +++++++++++++++++++ .../036-v6.2-bcma-support-SPROM-rev-11.patch | 28 +++++++++++++++++++ [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:12a listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org A backported patch to the BCMA driver necessary to support the DWL-8610AP and DIR-890L. Patch will be in upstream v6.2. Signed-off-by: Linus Walleij --- .../039-v6.2-bcma-support-SPROM-rev-11.patch | 28 +++++++++++++++++++ .../036-v6.2-bcma-support-SPROM-rev-11.patch | 28 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 target/linux/bcm53xx/patches-5.10/039-v6.2-bcma-support-SPROM-rev-11.patch create mode 100644 target/linux/bcm53xx/patches-5.15/036-v6.2-bcma-support-SPROM-rev-11.patch diff --git a/target/linux/bcm53xx/patches-5.10/039-v6.2-bcma-support-SPROM-rev-11.patch b/target/linux/bcm53xx/patches-5.10/039-v6.2-bcma-support-SPROM-rev-11.patch new file mode 100644 index 000000000000..7c9eb5537e1b --- /dev/null +++ b/target/linux/bcm53xx/patches-5.10/039-v6.2-bcma-support-SPROM-rev-11.patch @@ -0,0 +1,28 @@ +From b9457a04eb89645049fdf427c13e6a18d5501895 Mon Sep 17 00:00:00 2001 +From: Linus Walleij +Date: Tue, 11 Oct 2022 14:24:40 +0200 +Subject: [PATCH] bcma: support SPROM rev 11 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +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 +Signed-off-by: Linus Walleij +--- + drivers/bcma/sprom.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/bcma/sprom.c ++++ b/drivers/bcma/sprom.c +@@ -165,7 +165,7 @@ static int bcma_sprom_valid(struct bcma_ + 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; + } diff --git a/target/linux/bcm53xx/patches-5.15/036-v6.2-bcma-support-SPROM-rev-11.patch b/target/linux/bcm53xx/patches-5.15/036-v6.2-bcma-support-SPROM-rev-11.patch new file mode 100644 index 000000000000..7c9eb5537e1b --- /dev/null +++ b/target/linux/bcm53xx/patches-5.15/036-v6.2-bcma-support-SPROM-rev-11.patch @@ -0,0 +1,28 @@ +From b9457a04eb89645049fdf427c13e6a18d5501895 Mon Sep 17 00:00:00 2001 +From: Linus Walleij +Date: Tue, 11 Oct 2022 14:24:40 +0200 +Subject: [PATCH] bcma: support SPROM rev 11 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +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 +Signed-off-by: Linus Walleij +--- + drivers/bcma/sprom.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/bcma/sprom.c ++++ b/drivers/bcma/sprom.c +@@ -165,7 +165,7 @@ static int bcma_sprom_valid(struct bcma_ + 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; + }