Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2229930/?format=api
{ "id": 2229930, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229930/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260428-net-macb-support-for-feature-lite-instances-v1-2-480e4cecac01@nanoxplore.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.1/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null }, "msgid": "<20260428-net-macb-support-for-feature-lite-instances-v1-2-480e4cecac01@nanoxplore.com>", "date": "2026-04-28T18:04:06", "name": "[2/4] net: macb: use SA1 for MAC filtering on GEM", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "a985d0052334aa43d939d78f8c048d23e99db562", "submitter": { "id": 93277, "url": "http://patchwork.ozlabs.org/api/1.1/people/93277/?format=api", "name": "Christian DREHER via B4 Relay", "email": "devnull+christian.dreher.nanoxplore.com@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260428-net-macb-support-for-feature-lite-instances-v1-2-480e4cecac01@nanoxplore.com/mbox/", "series": [ { "id": 501943, "url": "http://patchwork.ozlabs.org/api/1.1/series/501943/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=501943", "date": "2026-04-28T18:04:05", "name": "net: macb: support for instances with less features", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501943/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2229930/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2229930/checks/", "tags": {}, "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=Kzuk2Vdp;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.b=\"Kzuk2Vdp\";\n\tdkim-atps=neutral", "phobos.denx.de; dmarc=pass (p=quarantine dis=none)\n header.from=kernel.org", "phobos.denx.de; spf=pass\n smtp.mailfrom=devnull+christian.dreher.nanoxplore.com@kernel.org" ], "Received": [ "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g4wZy6672z1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 08:48:42 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 9B0C3846BD;\n\tWed, 29 Apr 2026 00:48:17 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id DDEC78465E; Tue, 28 Apr 2026 20:04:52 +0200 (CEST)", "from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 601C284664\n for <u-boot@lists.denx.de>; Tue, 28 Apr 2026 20:04:48 +0200 (CEST)", "from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n by sea.source.kernel.org (Postfix) with ESMTP id D3D5E43D88;\n Tue, 28 Apr 2026 18:04:46 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPS id B6C29C2BCB5;\n Tue, 28 Apr 2026 18:04:46 +0000 (UTC)", "from aws-us-west-2-korg-lkml-1.web.codeaurora.org\n (localhost.localdomain [127.0.0.1])\n by smtp.lore.kernel.org (Postfix) with ESMTP id AEE1CFF8877;\n Tue, 28 Apr 2026 18:04:46 +0000 (UTC)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1777399486;\n bh=LSsti4BJqJl4KRo5EVviPi2k/NbBWnu7E0DPo3w2bO8=;\n h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From;\n b=Kzuk2Vdpa/Jzw95BMgd3IkJIHNtai2LBSF1+/FEMN+7xfYG1RajeBStz7AKBw9x/r\n o5EV84z0FKWdTBEnNfdpdhrWeyrlUTF7qxXzvNRimX5u4P95Yvui2pQ/6BHubtf67L\n MwwsRlxng3x0VrqVib40RQxvyskB0bsaJXigWTyZCUeVy6qlPkun8F9IbuXAFmVHhz\n Nvwh4y/fDKwwUkhF2QrljRD2yB4z2vWdELW5gEG6bp/ZwTBshynFMbn3CtwcAY1Dtp\n oVqw4mU1+ofgxaOF/ALJBHsvNVC+M5NeXLctpJvPoDsU1eegYCjjRyuB2/ecVL5v/z\n BcGK4CU8enV4w==", "From": "Christian DREHER via B4 Relay\n <devnull+christian.dreher.nanoxplore.com@kernel.org>", "Date": "Tue, 28 Apr 2026 20:04:06 +0200", "Subject": "[PATCH 2/4] net: macb: use SA1 for MAC filtering on GEM", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "\n <20260428-net-macb-support-for-feature-lite-instances-v1-2-480e4cecac01@nanoxplore.com>", "References": "\n <20260428-net-macb-support-for-feature-lite-instances-v1-0-480e4cecac01@nanoxplore.com>", "In-Reply-To": "\n <20260428-net-macb-support-for-feature-lite-instances-v1-0-480e4cecac01@nanoxplore.com>", "To": "u-boot@lists.denx.de", "Cc": "Jerome Forissier <jerome.forissier@arm.com>,\n Tom Rini <trini@konsulko.com>,\n Christian DREHER <christian.dreher@nanoxplore.com>", "X-Mailer": "b4 0.15.2", "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1777399485; l=1382;\n i=christian.dreher@nanoxplore.com; s=20260428; h=from:subject:message-id;\n bh=lhvo8U12ACbhoHnNc4Pv7TnDPkFRxIQ2KNLPjDefG30=;\n b=BwHnmEZ8CvAXem3DEBgw3uWYyzZAWfm5pabVGPkuCncL8rTDVgS/khodoWP6PojF+3pnmPRuR\n nyoxjbcZt5ZCT871FaU1P2Yy19ZkkbLhWJPWA6Kf4H1MV+p0m1ussLl", "X-Developer-Key": "i=christian.dreher@nanoxplore.com; a=ed25519;\n pk=id7EcKmXLV2xNgNiCIcsPjkoMQHM/qxTYqEqMhidSAU=", "X-Endpoint-Received": "by B4 Relay for\n christian.dreher@nanoxplore.com/20260428 with auth_id=760", "X-Original-From": "Christian DREHER <christian.dreher@nanoxplore.com>", "X-Mailman-Approved-At": "Wed, 29 Apr 2026 00:48:15 +0200", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Reply-To": "christian.dreher@nanoxplore.com", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "From: Christian DREHER <christian.dreher@nanoxplore.com>\n\nThe MACB uses specific address registers (SA Top and Bottom) to\nfilter source or destination MAC addresses.\nOn the Gigabit Ethernet version, SA1B is @0x88.\nOn the non-GEM version, SA1B is @0x98.\n\nBefore this commit, the code was always writing 0x98. By chance,\non GEM, this is the address of SA3B, allowing the driver to work\nanyway.\n\nThe motivation for this change is to be able to use the driver on\nan instance of the GEM with less than 4 SA registers.\n\nSigned-off-by: Christian DREHER <christian.dreher@nanoxplore.com>\n---\n drivers/net/macb.c | 9 +++++++--\n 1 file changed, 7 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/macb.c b/drivers/net/macb.c\nindex 719aef39a3f..807a038e071 100644\n--- a/drivers/net/macb.c\n+++ b/drivers/net/macb.c\n@@ -1007,9 +1007,14 @@ static int _macb_write_hwaddr(struct macb_device *macb, unsigned char *enetaddr)\n \t/* set hardware address */\n \thwaddr_bottom = enetaddr[0] | enetaddr[1] << 8 |\n \t\t\tenetaddr[2] << 16 | enetaddr[3] << 24;\n-\tmacb_writel(macb, SA1B, hwaddr_bottom);\n \thwaddr_top = enetaddr[4] | enetaddr[5] << 8;\n-\tmacb_writel(macb, SA1T, hwaddr_top);\n+\tif (macb_is_gem(macb)) {\n+\t\tgem_writel(macb, SA1B, hwaddr_bottom);\n+\t\tgem_writel(macb, SA1T, hwaddr_top);\n+\t} else {\n+\t\tmacb_writel(macb, SA1B, hwaddr_bottom);\n+\t\tmacb_writel(macb, SA1T, hwaddr_top);\n+\t}\n \treturn 0;\n }\n \n", "prefixes": [ "2/4" ] }