Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2140025/?format=api
{ "id": 2140025, "url": "http://patchwork.ozlabs.org/api/patches/2140025/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250920161013.31799-3-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-3-ansuelsmth@gmail.com>", "list_archive_url": null, "date": "2025-09-20T16:09:42", "name": "[v2,2/5] net: mediatek: mt7988: restore PHY page on PHY setting exit", "commit_ref": "85f3d070e27c3024c6d2c58ecbfd0ecb2343cc0c", "pull_url": null, "state": "accepted", "archived": false, "hash": "a147901fe01fec22a2f58d552a69be8f6f5ee450", "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-3-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/2140025/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2140025/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=Kw1f2Ftz;\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=\"Kw1f2Ftz\";\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 4cTZ9G1Dq8z1y24\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 21 Sep 2025 02:10:42 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id E057C8004F;\n\tSat, 20 Sep 2025 18:10:27 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id ED0BC83327; Sat, 20 Sep 2025 18:10:24 +0200 (CEST)", "from mail-wm1-x331.google.com (mail-wm1-x331.google.com\n [IPv6:2a00:1450:4864:20::331])\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 F2EBD8003E\n for <u-boot@lists.denx.de>; Sat, 20 Sep 2025 18:10:22 +0200 (CEST)", "by mail-wm1-x331.google.com with SMTP id\n 5b1f17b1804b1-45f2c5ef00fso23260785e9.1\n for <u-boot@lists.denx.de>; Sat, 20 Sep 2025 09:10:22 -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.21\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 20 Sep 2025 09:10:21 -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=1758384622; x=1758989422; 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=7L9njOUmsxHm9NGRDv7NAH+4+29gn1b4BwlhKJgBaJo=;\n b=Kw1f2Ftz+4Togmtm/qrmRz/8b4DlY8OUeQxhGPm9qu6xtmbyNCxP6dEvyJJzGfm7uf\n 3XUAJHcP1xXt+fWhun85JR5iGTUq2Z7negSqdIREI8s2B2w7nSoNJKRFkNu1s/ZkiMhe\n FmBfsxBTvfLevva/2zX+9dwYWTNFMzubQ8OM9gHnoShbnEWEWPkPnNcxO0DVIIZpbEHe\n xtvyh3gpMgdgZkSvm3MfkFE/OF/NwDxZybPzT1LHDOGqNPAjXsSu6N2JFTFErgqurvgy\n p9yCeUEt2izOyGQqMGmYXkY+26ToMf+UYqyNU76zpnXslpLSn1pEmiJ/a0mPcz/ATpNW\n yFFw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1758384622; x=1758989422;\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=7L9njOUmsxHm9NGRDv7NAH+4+29gn1b4BwlhKJgBaJo=;\n b=S4Io7atcOBZXeeEfumzbgq/zXqzQXHe4RdOH4XHduMomdG5IUn5F9tgo8F/51D4Kit\n AiLUPEungKN9IetiBGO1fZgBR9rsiK3HRWgIws3TRKPsUOPAFlp3dP0aGGI2PyxHfA8b\n DolUUzgSHeD9uQNC81bYuRrfKPMnRRVHJGzEsI+Ey/9iavLSfeLSmX7ESZ7gZnyef1VU\n FcOp0jOHgF8Ndal8ncGrAlCuVLmU9QDWxKN39L93p4qQT69N9fXE5qvLrIfLBn5uQMAg\n NEWlbZDXdXAGgTyw0nrsD3rK/0GxXUB+6sYnEIqGbMRdF3TVh/lkL8JlTCe8ccX077he\n bp7Q==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCULbqI6ZcmNdQCtlwbMPuzVOtuHcVhYG2XHikuw0Tmup8+BmwbLoCtrBz58ziqS1K6tUf9uV1c=@lists.denx.de", "X-Gm-Message-State": "AOJu0YwM/YLV4W0G7Nq4CrJRez3Lb01bCPHg2JAqNRExXUydpXnx4G1R\n /Vs5R1O6MTFMH9RjyxtuTyz6aiC2WyH7ODD2VUabc/b7Q7zTUGMuEcxODCz3Pg==", "X-Gm-Gg": "ASbGncs/5PU9UXD7AdI+EK6GRINvnSzBsCbynDBgU+9P3hcPxiWpMlNf3eBpJ9eh+xr\n BTs5WCFtGoJvrjtTSmPUZKtQMRgaKc6zhd1UiCNqJD7rQQl6hNf0GQn74yg2KEWouZJ3Usdo53c\n VwTIxSyjccB0OsGIAlRE+VctCB57s8/1/P7HuoRX37iQd6CmMWyHJWfy1uEzYzoRFs0cQpIuDG7\n kK58GNvQ3dm4Ls8/xrnXTH84v2Erf1j1nCUku2Cyh7rzqHwuj9XPIgpNZQzSlMi2R7BhS7toWBM\n x0+HGDdArt93uhMTR4yY+iCtx7j2o6lVN6Dwrawbs4h6D5PVkq2UtxFoS8PEA+KiyvZuKKxW9Tw\n nSYZsXLsiQXZQj5DXy9Jdze5I5mPnbdRKzLVp18fZvPMKGPaeaRNISl18Lg8URrzdRDbZPcg=", "X-Google-Smtp-Source": "\n AGHT+IFdvnKKd4dGvD6jQeFx6JQAQdGO6xBKs+aOagN2WLf0In8uAelsKb+mDt5A6XEeivUBug6/dQ==", "X-Received": "by 2002:a05:600c:1391:b0:45b:74fc:d6ec with SMTP id\n 5b1f17b1804b1-467ead675c1mr71300205e9.8.1758384622371;\n Sat, 20 Sep 2025 09:10:22 -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 2/5] net: mediatek: mt7988: restore PHY page on PHY setting\n exit", "Date": "Sat, 20 Sep 2025 18:09:42 +0200", "Message-ID": "<20250920161013.31799-3-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": "On exiting the phy_setting function for MT7988, the PHY page is never\nrestored to Page 0. This can cause all kind of problem with reading the\nstatus of the PHY at runtime.\n\nCorrectly restore PHY page on exiting the PHY setting function.\n\nSigned-off-by: Christian Marangi <ansuelsmth@gmail.com>\n---\n drivers/net/mtk_eth/mt7988.c | 7 ++++++-\n 1 file changed, 6 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/mtk_eth/mt7988.c b/drivers/net/mtk_eth/mt7988.c\nindex 87b6ed30cd0..06bbe049da3 100644\n--- a/drivers/net/mtk_eth/mt7988.c\n+++ b/drivers/net/mtk_eth/mt7988.c\n@@ -34,8 +34,10 @@ static void mt7988_phy_setting(struct mt753x_switch_priv *priv)\n \tu32 i;\n \n \tfor (i = 0; i < MT753X_NUM_PHYS; i++) {\n-\t\t/* Enable HW auto downshift */\n+\t\t/* Set PHY to PHY page 1 */\n \t\tmt7531_mii_write(priv, i, 0x1f, 0x1);\n+\n+\t\t/* Enable HW auto downshift */\n \t\tval = mt7531_mii_read(priv, i, PHY_EXT_REG_14);\n \t\tval |= PHY_EN_DOWN_SHFIT;\n \t\tmt7531_mii_write(priv, i, PHY_EXT_REG_14, val);\n@@ -44,6 +46,9 @@ static void mt7988_phy_setting(struct mt753x_switch_priv *priv)\n \t\tval = mt7531_mii_read(priv, i, PHY_EXT_REG_17);\n \t\tval |= PHY_LINKDOWN_POWER_SAVING_EN;\n \t\tmt7531_mii_write(priv, i, PHY_EXT_REG_17, val);\n+\n+\t\t/* Restore PHY to PHY page 0 */\n+\t\tmt7531_mii_write(priv, i, 0x1f, 0x0);\n \t}\n }\n \n", "prefixes": [ "v2", "2/5" ] }