Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2140028/?format=api
{ "id": 2140028, "url": "http://patchwork.ozlabs.org/api/patches/2140028/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250920161013.31799-6-ansuelsmth@gmail.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/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, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20250920161013.31799-6-ansuelsmth@gmail.com>", "list_archive_url": null, "date": "2025-09-20T16:09:45", "name": "[v2,5/5] net: airoha: bind MDIO controller on Ethernet load", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "7671a91ab6be6929be3a34d31d0aa99bd69a751b", "submitter": { "id": 71108, "url": "http://patchwork.ozlabs.org/api/people/71108/?format=api", "name": "Christian Marangi", "email": "ansuelsmth@gmail.com" }, "delegate": { "id": 157425, "url": "http://patchwork.ozlabs.org/api/users/157425/?format=api", "username": "jforissier", "first_name": "Jerome", "last_name": "Forissier", "email": "jerome.forissier@linaro.org" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20250920161013.31799-6-ansuelsmth@gmail.com/mbox/", "series": [ { "id": 474528, "url": "http://patchwork.ozlabs.org/api/series/474528/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=474528", "date": "2025-09-20T16:09:40", "name": "net: mediatek: mt7988: various fixup + MDIO detach", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/474528/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2140028/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2140028/checks/", "tags": {}, "related": [], "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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=AV9HLHoq;\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=none dis=none) header.from=gmail.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 unprotected) header.d=gmail.com header.i=@gmail.com header.b=\"AV9HLHoq\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=ansuelsmth@gmail.com" ], "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))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4cTZ9l6dmsz1y24\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 21 Sep 2025 02:11:07 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 06D8183423;\n\tSat, 20 Sep 2025 18:10:32 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 66EF583192; Sat, 20 Sep 2025 18:10:28 +0200 (CEST)", "from mail-wr1-x433.google.com (mail-wr1-x433.google.com\n [IPv6:2a00:1450:4864:20::433])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 6C967833EB\n for <u-boot@lists.denx.de>; Sat, 20 Sep 2025 18:10:26 +0200 (CEST)", "by mail-wr1-x433.google.com with SMTP id\n ffacd0b85a97d-3ee1381b835so1883179f8f.1\n for <u-boot@lists.denx.de>; Sat, 20 Sep 2025 09:10:26 -0700 (PDT)", "from Ansuel-XPS24 (host-95-249-236-54.retail.telecomitalia.it.\n [95.249.236.54]) by smtp.googlemail.com with ESMTPSA id\n 5b1f17b1804b1-45f325cec0fsm105878675e9.4.2025.09.20.09.10.24\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 20 Sep 2025 09:10:25 -0700 (PDT)" ], "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,FREEMAIL_FROM,\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/relaxed;\n d=gmail.com; s=20230601; t=1758384626; x=1758989426; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to; bh=xdhQACNKIt+lO//CliGiwSKTr/HoLwrRs1465XTOkjo=;\n b=AV9HLHoqgDKdPYDv876y0LHZBXLGA48t4fezozC6jwUw6HTf7fT364cD9MgFriAqtf\n 8tfaJJFUcu6wHYz5R5KKmgxPsCu0xtq4+u7ARftynQwdMF2EkqjY5lzYPDp1M28RCEGA\n gJY2WzQT7Qc6BzWSL2m4A1yf2VAOnj4EyvlzpPwHHJYk2PGvmXhjWv2kcDJXCluNiCEz\n YE0hDdM1hCqbJaRgi9AN2G33dr0XHjj2Knv+VtvjnOG3Z2qhpVpNaWHwP1PTi9huyy+p\n EnYkh43bGK1NorOLB5AzQnqXhrL3z5wadBp3wyrZwG+S2o+GTIgaXUOjPUspuxz9h209\n 3TzA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1758384626; x=1758989426;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=xdhQACNKIt+lO//CliGiwSKTr/HoLwrRs1465XTOkjo=;\n b=m1HfO7dJ4NyFohELjCuPOL2z93XTTCEeLdivuu4PtDT9ceGURdGZIEyytyaOBz9Omw\n uqRQxT58kzje/C4gE/w9kKjAnR0IM6spQPcTaCqbMHNUmhwtLhrtsd5lMMAV+jo0xviI\n 5PgXXjXHq46r2B70AoQSnXzLoZ8jNcK1f9j/H6zuFupgaaCG1Wotx9NENjmqEJU7FqrG\n 7kmX5Cyf+HQ1PE6YJnSfaEeuD+GpsG5nxUFFx6n6F90iggLqjP/ZDJgYoqxw0MXcaP6F\n /qDUBjQipXMbaEgQfZuCjnvAEgLNUoyD9BIG5vT4h2vZKgtXJWeBWZDjcrMeEI80+BxE\n e8Ig==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCXlCBKKSuWBQOt/xhLddKjMm7hWneqFxYdVW/GwyKWzqf/e3jo2Jt0N3KVPFPaKqUVDzztp8aY=@lists.denx.de", "X-Gm-Message-State": "AOJu0Yz6mZKVqy0KT6gFFjEB90x5Aos2pWyyWK1aW5Ua+g9FiYh5WB/9\n 4Euftd+BCW39+xP8M1RRociyItQeKGLz4jluAmzC5Wh86b7bnaXQI2vE", "X-Gm-Gg": "ASbGncu/CsyyBvBhWoC1dCkK7oSveOXrQgslP16M/m/krEGJTbQaPFhZ3EK4TswkUsx\n iDCr/wV8Yvbbso63CsyE9X03eV+OvTrTodauq6II7VuV+VIZU1jZ1tocNdck8xgpmHEFQmgPQ3J\n Djd7AsoGkOL0yfLmS9p7k/bLzWTiquppR2XzXbQRGnRU/RkyGx1GfxhUJjTZm7CaYxVurL/aVLl\n AJbWbxoYFwAG25bCVKgrCaiOd0RYOw7PoJLHRpsZFx28B8WtMnGJ5rH5If+J7I3GdaOdqMVGwKl\n p5Jlm2JYCICbMWSzaDq7CIdAVPNWmDhQkuxVRELNiICJCVXPNUEl3xaG3Ky4PNktUuDEMZ9ZmOZ\n KxaN6ieKYqSbLfQPrMF8nZf9wqCMl8vGbvQQ/U/+koUuUiGPq3ByephgcVTw2ape+ebXye3s=", "X-Google-Smtp-Source": "\n AGHT+IHth8XprH3kN842znVgOHSLRaj/BYlOq2JOTZpWMBQsVSLgcgUJgTA6PEPbi13PKqjbYkMd7w==", "X-Received": "by 2002:a05:6000:2c12:b0:3ee:15b4:8443 with SMTP id\n ffacd0b85a97d-3ee7db4c6b2mr5141768f8f.18.1758384625715;\n Sat, 20 Sep 2025 09:10:25 -0700 (PDT)", "From": "Christian Marangi <ansuelsmth@gmail.com>", "To": "Tom Rini <trini@konsulko.com>, Joe Hershberger <joe.hershberger@ni.com>,\n Ramon Fried <rfried.dev@gmail.com>, Weijie Gao <weijie.gao@mediatek.com>,\n Christian Marangi <ansuelsmth@gmail.com>, u-boot@lists.denx.de", "Subject": "[PATCH v2 5/5] net: airoha: bind MDIO controller on Ethernet load", "Date": "Sat, 20 Sep 2025 18:09:45 +0200", "Message-ID": "<20250920161013.31799-6-ansuelsmth@gmail.com>", "X-Mailer": "git-send-email 2.51.0", "In-Reply-To": "<20250920161013.31799-1-ansuelsmth@gmail.com>", "References": "<20250920161013.31799-1-ansuelsmth@gmail.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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": "Bind MDIO controller on Ethernet Controller load. The Airoha AN7581 SoC\nhave an integrated Switch based on MT7531 (or more saying MT7988).\n\nAttach it to the switch node to support scanning for MDIO devices on the\nBUS.\n\nSigned-off-by: Christian Marangi <ansuelsmth@gmail.com>\n---\n drivers/net/Kconfig | 1 +\n drivers/net/airoha_eth.c | 26 ++++++++++++++++++++++++++\n 2 files changed, 27 insertions(+)", "diff": "diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig\nindex cee4a3fc9bd..ce7c7e6297e 100644\n--- a/drivers/net/Kconfig\n+++ b/drivers/net/Kconfig\n@@ -126,6 +126,7 @@ config AIROHA_ETH\n \tdepends on ARCH_AIROHA\n \tselect PHYLIB\n \tselect DM_RESET\n+\tselect MDIO_MT7531\n \thelp\n \t This Driver support Airoha Ethernet QDMA Driver\n \t Say Y to enable support for the Airoha Ethernet QDMA.\ndiff --git a/drivers/net/airoha_eth.c b/drivers/net/airoha_eth.c\nindex 6588eb3a806..6be6ec2845b 100644\n--- a/drivers/net/airoha_eth.c\n+++ b/drivers/net/airoha_eth.c\n@@ -971,6 +971,31 @@ static int arht_eth_write_hwaddr(struct udevice *dev)\n \treturn 0;\n }\n \n+static int airoha_eth_bind(struct udevice *dev)\n+{\n+\tstruct airoha_eth_soc_data *data = (void *)dev_get_driver_data(dev);\n+\tstruct udevice *mdio_dev;\n+\tofnode switch_node;\n+\tint ret = 0;\n+\n+\tif (!CONFIG_IS_ENABLED(MDIO_MT7531))\n+\t\treturn 0;\n+\n+\tswitch_node = ofnode_by_compatible(ofnode_null(),\n+\t\t\t\t\t \"airoha,en7581-switch\");\n+\tif (!ofnode_valid(switch_node)) {\n+\t\tdebug(\"Warning: missing switch node\\n\");\n+\t\treturn 0;\n+\t}\n+\n+\tret = device_bind_driver_to_node(dev, \"mt7531-mdio\", \"mdio\",\n+\t\t\t\t\t switch_node, &mdio_dev);\n+\tif (ret)\n+\t\tdebug(\"Warning: failed to bind mdio controller\\n\");\n+\n+\treturn 0;\n+}\n+\n static const struct udevice_id airoha_eth_ids[] = {\n \t{ .compatible = \"airoha,en7581-eth\" },\n \t{ }\n@@ -990,6 +1015,7 @@ U_BOOT_DRIVER(airoha_eth) = {\n \t.id = UCLASS_ETH,\n \t.of_match = airoha_eth_ids,\n \t.probe = airoha_eth_probe,\n+\t.bind = airoha_eth_bind,\n \t.ops = &airoha_eth_ops,\n \t.priv_auto = sizeof(struct airoha_eth),\n \t.plat_auto = sizeof(struct eth_pdata),\n", "prefixes": [ "v2", "5/5" ] }