Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2220020/?format=api
{ "id": 2220020, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2220020/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260405144944.41074-3-lucienzx159@gmail.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260405144944.41074-3-lucienzx159@gmail.com>", "list_archive_url": null, "date": "2026-04-05T14:49:42", "name": "[v3,2/4] net: phy: air_en8811h: use standard rx-polarity/tx-polarity properties", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "bf6de746d65e8dd72fe942638503d7bf69a566bc", "submitter": { "id": 90627, "url": "http://patchwork.ozlabs.org/api/1.2/people/90627/?format=api", "name": "Lucien.Jheng", "email": "lucienzx159@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260405144944.41074-3-lucienzx159@gmail.com/mbox/", "series": [ { "id": 498806, "url": "http://patchwork.ozlabs.org/api/1.2/series/498806/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498806", "date": "2026-04-05T14:49:40", "name": "phy: add common PHY polarity properties support", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/498806/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2220020/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2220020/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=20251104 header.b=oU8w4+BY;\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=\"oU8w4+BY\";\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=lucienzx159@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) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fpkKJ65XJz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 06 Apr 2026 06:17:40 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 1FC1A8407E;\n\tSun, 5 Apr 2026 22:17:14 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id BB51D8394E; Sun, 5 Apr 2026 16:51:04 +0200 (CEST)", "from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com\n [IPv6:2607:f8b0:4864:20::1030])\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 A6C488341A\n for <u-boot@lists.denx.de>; Sun, 5 Apr 2026 16:51:00 +0200 (CEST)", "by mail-pj1-x1030.google.com with SMTP id\n 98e67ed59e1d1-35d99bae2ebso2856845a91.3\n for <u-boot@lists.denx.de>; Sun, 05 Apr 2026 07:51:00 -0700 (PDT)", "from localhost.localdomain (124-218-201-66.cm.dynamic.apol.com.tw.\n [124.218.201.66]) by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-35dbe959358sm15333261a91.13.2026.04.05.07.50.55\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 05 Apr 2026 07:50:58 -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=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_GMAIL_RCVD,\n FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775400659; x=1776005459; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=7WZN/Hkcq7MSmV5F0vael9It/JztFoUAXL5o6yMeQQE=;\n b=oU8w4+BY0be5HPdvEeAduyJe9DIyaY3FH7P/812qTZqF0PF+/oUh7ksDwGlSKcmA+T\n LWpldYo9+/1d6gMW3EzRpzxzNYBkc+C0QuNsWRcSXHNjFry5qYknaS5Z2YfOvZGQiP2c\n EU1yfVmZCUV9yyS8Rcjn7NIwqW0UDe+hXPeUjDjI/HP9p6T3EMeGRq+QKo4rr+/eucpE\n GIeYR4hypQsRtUuUhthZQECSnYGbFJt5H0qCfb45E/zRYXbfR+CtBywHbORESoTQ+7Wc\n HC7WHJPtrvjHeOpLT0sBtfBiHLr9s3FwIWnLDWoBSZY+3AsfoGdsW8DYyRpIAQeLGDnk\n lggA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775400659; x=1776005459;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=7WZN/Hkcq7MSmV5F0vael9It/JztFoUAXL5o6yMeQQE=;\n b=C42IbAmELSXBlwCkCVW0bW4LuGa1wTtC8psVrDRJsOqLL3UCq52QIdHYSW68eRnbN8\n 3sSEKaPTxdn4vOhD84ic/xaFAPTcIcTwY4VkzEID4Ok4R8ToStaUp1pkUFg0eiX3V48P\n Wxz3/Fw8es91dZEBQbdDhkASB3DjDnree8gkq8avJukj+i996SxDDA2fzVAS3tC7YeoU\n 0LVnCYhM6DMhNCkBxwWaw2ckzGXI3GhmOKpu5sr0ogyCkbxaOax2zzr+gG8RFTIqs3fP\n cjI4eCWaIuT8GLg9jAAms7/EgnFGgIZH36tX7qg9/LwOv8AYQ7I8EEMDW/JraW/tl9ly\n 0LiQ==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCUpfg7zbTKWE6laTibK1OkQYrBM9O/9+hGdiEStZ0/yqocuPy8TZrcbpoY95VYzQ0klPatXoYM=@lists.denx.de", "X-Gm-Message-State": "AOJu0YzXGfjApO4qgDeKl/zhG/FEuHg+Ik1zC9VsWXk4NquC4X63S0T8\n O3dP0H0jnxz8LjrNaFV5ZMkfddyAJdCfUoLZMEvZ+T2ysidPfBGo359s", "X-Gm-Gg": "AeBDieuFsN7vBuAKSVpZh0Wvad1tmFlAAZyX36oLq+B/nEz8BeNBac5Mg+/cXCWEq8f\n aJiLmQ1LxWqWHjCJCGpglvGx74Uov1hoHgtuM1Mxu6JkL6CrMqiUy3EdHesEbiUU8ht5OR7ZbfQ\n HB85+qB6h3TalfAgj4u6PXCdFEaFGXqw29CvEtJPrFR0WakqPDsLWA7/ZR64+F63G7B8XAXr4ZK\n 486++513yxyZtqTN5j3tM6ASJHpBzAMRDZwPwe5T/z4EG2wdjiP29XGO9PHEQ6VpmfzCPhtJfJe\n pAcHMG+YPD4CPhcns6R7U6bVuAhEtH3w/f4dkSzUlsUDkKNdvVNJTiYF+5JiEGRr3yxSbkQdGzJ\n 9+QujiWKP7ohXkSwziqPV+dWGsKe7cmiHsSGGBPp8g04lrz/yzn/HccxPOaM+7koswKdnISnZDq\n Ujtt1Z8Wb4fhl2PmEYu96A1D+N6ukisuFHvm1HVgvUh6pawF8obbFfzVuItGpAYwPe6pIqxNh8Y\n Vzvp4JIGnHAYIraYvq19Q==", "X-Received": "by 2002:a17:90b:1dcc:b0:35b:929f:7e92 with SMTP id\n 98e67ed59e1d1-35de68ce5d0mr8917628a91.18.1775400659155;\n Sun, 05 Apr 2026 07:50:59 -0700 (PDT)", "From": "\"Lucien.Jheng\" <lucienzx159@gmail.com>", "To": "trini@konsulko.com, jerome.forissier@arm.com, sumit.garg@kernel.org,\n marek.vasut+renesas@mailbox.org, vladimir.oltean@nxp.com", "Cc": "ericwouds@gmail.com, kabel@kernel.org, frank-w@public-files.de,\n daniel@makrotopia.org, ansuelsmth@gmail.com, mkorpershoek@kernel.org,\n skylake.huang@mediatek.com, lucien.jheng@airoha.com, u-boot@lists.denx.de,\n \"Lucien.Jheng\" <lucienzx159@gmail.com>", "Subject": "[PATCH v3 2/4] net: phy: air_en8811h: use standard\n rx-polarity/tx-polarity properties", "Date": "Sun, 5 Apr 2026 22:49:42 +0800", "Message-Id": "<20260405144944.41074-3-lucienzx159@gmail.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20260405144944.41074-1-lucienzx159@gmail.com>", "References": "<20260405144944.41074-1-lucienzx159@gmail.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Mailman-Approved-At": "Sun, 05 Apr 2026 22:17:12 +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>", "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": "Replace the proprietary airoha,pnswap-rx / airoha,pnswap-tx boolean\ndevice tree properties with the standard rx-polarity and tx-polarity\nproperties defined in phy-common-props.yaml.\n\nBackward compatibility is maintained by reading the legacy boolean\nproperties first and passing them as the default_pol argument to\nphy_get_rx/tx_polarity(). If the standard properties are absent the\nlegacy values are used transparently, so existing device trees remain\nfunctional without modification.\n\nLink: https://git.kernel.org/linus/66d8a334b57e64e43810623b3d88f0ce9745270b\nSigned-off-by: Lucien.Jheng <lucienzx159@gmail.com>\n---\n drivers/net/phy/airoha/Kconfig | 1 +\n drivers/net/phy/airoha/air_en8811.c | 58 ++++++++++++++++++++++-------\n 2 files changed, 45 insertions(+), 14 deletions(-)", "diff": "diff --git a/drivers/net/phy/airoha/Kconfig b/drivers/net/phy/airoha/Kconfig\nindex da8747939e3..4139df343ad 100644\n--- a/drivers/net/phy/airoha/Kconfig\n+++ b/drivers/net/phy/airoha/Kconfig\n@@ -7,6 +7,7 @@ config PHY_AIROHA_EN8811\n \tdepends on PHY_AIROHA\n \tdepends on SUPPORTS_FW_LOADER\n \tselect FW_LOADER\n+\tselect PHY_COMMON_PROPS\n \thelp\n \t AIROHA EN8811H supported.\n \t AIROHA AN8811HB supported.\ndiff --git a/drivers/net/phy/airoha/air_en8811.c b/drivers/net/phy/airoha/air_en8811.c\nindex 0b974472732..0a56ee0bdf3 100644\n--- a/drivers/net/phy/airoha/air_en8811.c\n+++ b/drivers/net/phy/airoha/air_en8811.c\n@@ -23,6 +23,7 @@\n #include <linux/compat.h>\n #include <dm/device_compat.h>\n #include <u-boot/crc.h>\n+#include <linux/phy/phy-common-props.h>\n \n /* MII Registers */\n #define AIR_AUX_CTRL_STATUS\t\t0x1d\n@@ -1046,6 +1047,47 @@ static int air_leds_init(struct phy_device *phydev, int num, u16 dur, int mode)\n \treturn 0;\n }\n \n+static int en8811h_config_serdes_polarity(struct phy_device *phydev)\n+{\n+\tofnode node = phy_get_ofnode(phydev);\n+\tunsigned int pol, default_pol;\n+\tu32 pbus_value = 0;\n+\tint ret;\n+\n+\tif (!ofnode_valid(node))\n+\t\treturn 0;\n+\n+\tdefault_pol = PHY_POL_NORMAL;\n+\tif (ofnode_read_bool(node, \"airoha,pnswap-rx\"))\n+\t\tdefault_pol = PHY_POL_INVERT;\n+\n+\tret = phy_get_rx_polarity(node,\n+\t\t\t\t phy_interface_strings[phydev->interface],\n+\t\t\t\t BIT(PHY_POL_NORMAL) | BIT(PHY_POL_INVERT),\n+\t\t\t\t default_pol, &pol);\n+\tif (ret)\n+\t\treturn ret;\n+\tif (pol == PHY_POL_INVERT)\n+\t\tpbus_value |= EN8811H_POLARITY_RX_REVERSE;\n+\n+\tdefault_pol = PHY_POL_NORMAL;\n+\tif (ofnode_read_bool(node, \"airoha,pnswap-tx\"))\n+\t\tdefault_pol = PHY_POL_INVERT;\n+\n+\tret = phy_get_tx_polarity(node,\n+\t\t\t\t phy_interface_strings[phydev->interface],\n+\t\t\t\t BIT(PHY_POL_NORMAL) | BIT(PHY_POL_INVERT),\n+\t\t\t\t default_pol, &pol);\n+\tif (ret)\n+\t\treturn ret;\n+\tif (pol == PHY_POL_NORMAL)\n+\t\tpbus_value |= EN8811H_POLARITY_TX_NORMAL;\n+\n+\treturn air_buckpbus_reg_modify(phydev, EN8811H_POLARITY,\n+\t\t\t\t EN8811H_POLARITY_RX_REVERSE |\n+\t\t\t\t EN8811H_POLARITY_TX_NORMAL, pbus_value);\n+}\n+\n static int en8811h_config(struct phy_device *phydev)\n {\n \tstruct en8811h_priv *priv = phydev->priv;\n@@ -1081,20 +1123,8 @@ static int en8811h_config(struct phy_device *phydev)\n \tif (ret < 0)\n \t\treturn ret;\n \n-\t/* Serdes polarity */\n-\tpbus_value = 0;\n-\tif (ofnode_read_bool(node, \"airoha,pnswap-rx\"))\n-\t\tpbus_value |= EN8811H_POLARITY_RX_REVERSE;\n-\telse\n-\t\tpbus_value &= ~EN8811H_POLARITY_RX_REVERSE;\n-\tif (ofnode_read_bool(node, \"airoha,pnswap-tx\"))\n-\t\tpbus_value &= ~EN8811H_POLARITY_TX_NORMAL;\n-\telse\n-\t\tpbus_value |= EN8811H_POLARITY_TX_NORMAL;\n-\tret = air_buckpbus_reg_modify(phydev, EN8811H_POLARITY,\n-\t\t\t\t EN8811H_POLARITY_RX_REVERSE |\n-\t\t\t\t EN8811H_POLARITY_TX_NORMAL,\n-\t\t\t\t pbus_value);\n+\t/* Configure Serdes polarity from device tree */\n+\tret = en8811h_config_serdes_polarity(phydev);\n \tif (ret < 0)\n \t\treturn ret;\n \n", "prefixes": [ "v3", "2/4" ] }