Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2223421/?format=api
{ "id": 2223421, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2223421/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260415101257.23154-1-cniedermaier@dh-electronics.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": "<20260415101257.23154-1-cniedermaier@dh-electronics.com>", "date": "2026-04-15T10:12:57", "name": "[V3] board: dhelectronics: imx: Use second Ethernet MAC also from fuse", "commit_ref": "69d43875759087621449f607f29da4eb86f6b866", "pull_url": null, "state": "accepted", "archived": false, "hash": "39aadc4a300eb0caecf32fc2183ea509736a7c3a", "submitter": { "id": 76560, "url": "http://patchwork.ozlabs.org/api/1.1/people/76560/?format=api", "name": "Christoph Niedermaier", "email": "cniedermaier@dh-electronics.com" }, "delegate": { "id": 151988, "url": "http://patchwork.ozlabs.org/api/1.1/users/151988/?format=api", "username": "festevam", "first_name": "Fabio", "last_name": "Estevam", "email": "festevam@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260415101257.23154-1-cniedermaier@dh-electronics.com/mbox/", "series": [ { "id": 499956, "url": "http://patchwork.ozlabs.org/api/1.1/series/499956/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=499956", "date": "2026-04-15T10:12:57", "name": "[V3] board: dhelectronics: imx: Use second Ethernet MAC also from fuse", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/499956/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2223421/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2223421/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 secure) header.d=dh-electronics.com header.i=@dh-electronics.com\n header.a=rsa-sha256 header.s=dhelectronicscom header.b=Awk0Bzt7;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=dh-electronics.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n secure) header.d=dh-electronics.com header.i=@dh-electronics.com\n header.b=\"Awk0Bzt7\";\n\tdkim-atps=neutral", "phobos.denx.de; dmarc=pass (p=reject dis=none)\n header.from=dh-electronics.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=cniedermaier@dh-electronics.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de [85.214.62.61])\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 4fwcRY0KtSz1yHM\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 20:13:29 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id C28C684119;\n\tWed, 15 Apr 2026 12:13:24 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 17C6084129; Wed, 15 Apr 2026 12:13:23 +0200 (CEST)", "from mx2.securetransport.de (mx2.securetransport.de\n [IPv6:2a03:4000:13:6c7::1])\n by phobos.denx.de (Postfix) with ESMTP id CD0528407E\n for <u-boot@lists.denx.de>; Wed, 15 Apr 2026 12:13:20 +0200 (CEST)" ], "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,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=dh-electronics.com;\n s=dhelectronicscom; t=1776247994;\n bh=EIsoWC3mllDauI2V6lhTTi+rOfd2aKAyue4QSN/+ElM=;\n h=From:To:CC:Subject:Date:From;\n b=Awk0Bzt7alxmG34CQIDL0Vbo2/L+rdFiRipU5MA2i2iA7SAFb7lyZO7mhle7Fo1bR\n vZL4cn3jCR4P+E47gcKbQTGk2hYsouXD37vq7yG+6tcAA41RF7eOMzHAmOH3pZfQEo\n pu3hjM0h5kQViXzf9mmVmigx5HR5fw6t1LMF9FCHlo/b3QOPLf/t4jBVPLelZHvJ8s\n E3sM8v5xyipI217XIc75kA04LheRjZB/ort4tlkXcs9el2ngBHM0oKOPcqg9V2ECkv\n glf0NQiejiYdBgZUaJRmBo3j1ZOVO3IkFV4EDEcXgP2m76g/Fbu9ewWOx6hjaO9Ive\n hK4bHRxWkhGdw==", "From": "Christoph Niedermaier <cniedermaier@dh-electronics.com>", "To": "<u-boot@lists.denx.de>", "CC": "Christoph Niedermaier <cniedermaier@dh-electronics.com>, Peng Fan\n <peng.fan@nxp.com>, Marek Vasut <marex@nabladev.com>, Patrice Chotard\n <patrice.chotard@foss.st.com>, Sam Protsenko <semen.protsenko@linaro.org>,\n Tom Rini <trini@konsulko.com>, <u-boot@dh-electronics.com>", "Subject": "[PATCH V3] board: dhelectronics: imx: Use second Ethernet MAC also\n from fuse", "Date": "Wed, 15 Apr 2026 12:12:57 +0200", "Message-ID": "<20260415101257.23154-1-cniedermaier@dh-electronics.com>", "X-klartext": "yes", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "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>", "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": "Currently, the board specific code evaluates only the first Ethernet\nMAC address fuse, regardless of whether the first or second MAC\naddress is requested. When the function for determine the second\nEthernet MAC address is looking for the fused MAC address, it only\nreads the first MAC address fuse and increment it by one to set\nthe second Ethernet MAC address. That is not the expected behavior\nwhen two MAC addresses are fused, because this causes the second\nfused MAC address to be ignored. Change this so that the second\nfused MAC address will be used.\n\nReviewed-by: Peng Fan <peng.fan@nxp.com>\nSigned-off-by: Christoph Niedermaier <cniedermaier@dh-electronics.com>\n---\nCc: Marek Vasut <marex@nabladev.com>\nCc: Patrice Chotard <patrice.chotard@foss.st.com>\nCc: Peng Fan <peng.fan@nxp.com>\nCc: Sam Protsenko <semen.protsenko@linaro.org>\nCc: Tom Rini <trini@konsulko.com>\nCc: u-boot@dh-electronics.com\n---\nV2: - Change the commit message to be more precise\n - Move index to the end of parameters to be consistent to the STM32MP plattform\n - Remove fallback where the first MAC address fuse incremented by one is used\n - Remove MAC Adress treatmeant for early prototypes\nV3: - Revert removal of the MAC Adress treatmeant for early prototypes and\n and remove the corresponding part from the commit message\n - The Reviewed-by has now been properly ordered\n---\n board/dhelectronics/common/dh_imx.c | 4 ++--\n board/dhelectronics/common/dh_imx.h | 3 ++-\n board/dhelectronics/dh_imx6/dh_imx6.c | 2 +-\n board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c | 6 +++---\n 4 files changed, 8 insertions(+), 7 deletions(-)", "diff": "diff --git a/board/dhelectronics/common/dh_imx.c b/board/dhelectronics/common/dh_imx.c\nindex 3d6487dd0d8..50404a66f9d 100644\n--- a/board/dhelectronics/common/dh_imx.c\n+++ b/board/dhelectronics/common/dh_imx.c\n@@ -10,13 +10,13 @@\n #include <net.h>\n #include \"dh_imx.h\"\n \n-int dh_imx_get_mac_from_fuse(unsigned char *enetaddr)\n+int dh_imx_get_mac_from_fuse(unsigned char *enetaddr, int index)\n {\n \t/*\n \t * If IIM fuses contain valid MAC address, use it.\n \t * The IIM MAC address fuses are NOT programmed by default.\n \t */\n-\timx_get_mac_from_fuse(0, enetaddr);\n+\timx_get_mac_from_fuse(index, enetaddr);\n \tif (!is_valid_ethaddr(enetaddr))\n \t\treturn -EINVAL;\n \ndiff --git a/board/dhelectronics/common/dh_imx.h b/board/dhelectronics/common/dh_imx.h\nindex 284f8637fb8..be2ff5e076c 100644\n--- a/board/dhelectronics/common/dh_imx.h\n+++ b/board/dhelectronics/common/dh_imx.h\n@@ -7,6 +7,7 @@\n * dh_imx_get_mac_from_fuse - Get MAC address from fuse and write it to env\n *\n * @enetaddr: buffer where address is to be stored\n+ * @index: index of MAC address in fuse (starts with 0)\n * Return: 0 if OK, other value on error\n */\n-int dh_imx_get_mac_from_fuse(unsigned char *enetaddr);\n+int dh_imx_get_mac_from_fuse(unsigned char *enetaddr, int index);\ndiff --git a/board/dhelectronics/dh_imx6/dh_imx6.c b/board/dhelectronics/dh_imx6/dh_imx6.c\nindex 234824b38c2..c9e8107685a 100644\n--- a/board/dhelectronics/dh_imx6/dh_imx6.c\n+++ b/board/dhelectronics/dh_imx6/dh_imx6.c\n@@ -94,7 +94,7 @@ int dh_setup_mac_address(struct eeprom_id_page *eip)\n \tif (dh_get_mac_is_enabled(\"ethernet0\"))\n \t\treturn 0;\n \n-\tif (!dh_imx_get_mac_from_fuse(enetaddr))\n+\tif (!dh_imx_get_mac_from_fuse(enetaddr, 0))\n \t\tgoto out;\n \n \tif (!dh_get_mac_from_eeprom(enetaddr, \"eeprom0\"))\ndiff --git a/board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c b/board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c\nindex 3424be10936..486073392e9 100644\n--- a/board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c\n+++ b/board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c\n@@ -47,7 +47,7 @@ static int dh_imx8_setup_ethaddr(struct eeprom_id_page *eip)\n \tif (dh_get_mac_is_enabled(\"ethernet0\"))\n \t\treturn 0;\n \n-\tif (!dh_imx_get_mac_from_fuse(enetaddr))\n+\tif (!dh_imx_get_mac_from_fuse(enetaddr, 0))\n \t\tgoto out;\n \n \tif (!dh_get_value_from_eeprom_buffer(DH_MAC0, enetaddr, sizeof(enetaddr), eip))\n@@ -72,8 +72,8 @@ static int dh_imx8_setup_eth1addr(struct eeprom_id_page *eip)\n \tif (dh_get_mac_is_enabled(\"ethernet1\"))\n \t\treturn 0;\n \n-\tif (!dh_imx_get_mac_from_fuse(enetaddr))\n-\t\tgoto increment_out;\n+\tif (!dh_imx_get_mac_from_fuse(enetaddr, 1))\n+\t\tgoto out;\n \n \tif (!dh_get_value_from_eeprom_buffer(DH_MAC1, enetaddr, sizeof(enetaddr), eip))\n \t\tgoto out;\n", "prefixes": [ "V3" ] }