Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2170664/?format=api
{ "id": 2170664, "url": "http://patchwork.ozlabs.org/api/patches/2170664/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20251202081352.302025-2-Max.Merchel@ew.tq-group.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": "<20251202081352.302025-2-Max.Merchel@ew.tq-group.com>", "list_archive_url": null, "date": "2025-12-02T08:13:42", "name": "[v2,1/2] net: phy: micrel_ksz90x1: disable asymmetric pause for KSZ9031 and KSZ9021", "commit_ref": "60545cf032f097bd096be9d8285320704fc61088", "pull_url": null, "state": "accepted", "archived": false, "hash": "3765d9f3500fc9793366b428919a60b166f31a8c", "submitter": { "id": 89096, "url": "http://patchwork.ozlabs.org/api/people/89096/?format=api", "name": "Max Merchel", "email": "Max.Merchel@ew.tq-group.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/20251202081352.302025-2-Max.Merchel@ew.tq-group.com/mbox/", "series": [ { "id": 484104, "url": "http://patchwork.ozlabs.org/api/series/484104/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=484104", "date": "2025-12-02T08:13:41", "name": "net: phy: micrel_ksz90x1: workarounds for ksz9031 ERRATA", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/484104/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2170664/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2170664/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=ew.tq-group.com header.i=@ew.tq-group.com\n header.a=rsa-sha256 header.s=hse1 header.b=LiuG4OkV;\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=reject dis=none) header.from=ew.tq-group.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=ew.tq-group.com header.i=@ew.tq-group.com\n header.b=\"LiuG4OkV\";\n\tdkim-atps=neutral", "phobos.denx.de; dmarc=pass (p=reject dis=none)\n header.from=ew.tq-group.com", "phobos.denx.de; spf=pass\n smtp.mailfrom=prvs=042460c183=max.merchel@ew.tq-group.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 4dLDBS3ZFPz1y00\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 2 Dec 2025 19:16:32 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 4485D83E45;\n\tTue, 2 Dec 2025 09:16:16 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id BD2C083E21; Tue, 2 Dec 2025 09:16:14 +0100 (CET)", "from mx-relay75-hz1.antispameurope.com\n (mx-relay75-hz1.antispameurope.com [94.100.132.238])\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 AC58C83E28\n for <u-boot@lists.denx.de>; Tue, 2 Dec 2025 09:16:12 +0100 (CET)", "from he-nlb01-hz1.hornetsecurity.com ([94.100.132.6]) by\n mx-relay75-hz1.antispameurope.com; Tue, 02 Dec 2025 09:16:11 +0100", "from merchelm-W2.tq-net.de\n (host-82-135-125-110.customer.m-online.net [82.135.125.110])\n (Authenticated sender: max.merchel@ew.tq-group.com)\n by hmail-p-smtp01-out03-hz1.hornetsecurity.com (Postfix) with ESMTPSA id\n 29576CC0E96; Tue, 2 Dec 2025 09:15:56 +0100 (CET)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,\n RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "ARC-Authentication-Results": "i=1; mx-gate75-hz1.hornetsecurity.com 1; spf=pass\n reason=mailfrom (ip=94.100.132.6,\n headerfrom=ew.tq-group.com)\n smtp.mailfrom=ew.tq-group.com\n smtp.helo=hmail-p-smtp01-out03-hz1.hornetsecurity.com; dmarc=pass\n header.from=ew.tq-group.com orig.disposition=pass", "ARC-Message-Signature": "a=rsa-sha256;\n bh=RShDpxbiwMs0SbJFikxb+1a+mcY2skWnEKvZ+tPq2uQ=; c=relaxed/relaxed;\n d=hornetsecurity.com; h=from:to:date:subject:mime-version:; i=1; s=hse1;\n t=1764663372;\n b=dODgv2A4ejp34rjZRsAm3aj8i2m4z4Z1/KYETJp4D6/SFNCUE3GYO7h+qk67AXiKGW4YtSxW\n Z4aA7kVyB3xikiKBYDorcmO9LhyILeJbbDowcBcb86KM0p73D41rcbvvg7zYmUreb9izgKE6ugF\n HWVDD36UASfHGLl0moL1OI9QpliU4hy+nvGCggNDFgYw6XJ9mOGA0+/Gf9zy2MCn4wugaMbL17G\n wfTwyTnXTJup0MZbAJBYbEK91wyuInDugg5RqrehtfqQ32btOJ6FwP5GImVWBBfUsI3F99q5zh0\n rzJr8AUYx8nsZ1koSqfixXaRdMGXSrXaz1isy/9rnmKwA==", "ARC-Seal": "a=rsa-sha256; cv=none; d=hornetsecurity.com; i=1; s=hse1;\n t=1764663372;\n b=WfCVL6I9I53eiNHI/TUinU/ZUs/MiZdwMv+0u8Kz4n5a1frCRUAxj9/o6RS6U3FRgA3JbzYT\n ktmXO1wC7WkuzKUu5m0SWiF6jzSAtZfnZ0lQjQ8mfEuusy1b6vb/409v8yloflIbE0Wk4LquQbQ\n B5IwJbOqK85xh387npbnWMofxSBzp1LTp2DSuMvjYMhpaDytOkADphA2sIxxppuC540miQaEWzM\n GJ8DfoZqrmn+BYkAWqiv2M9qRT0lxk2jaFbrOQTwUNtFbGGiS3JqkdrvBZNkZ1aEHHg6Z9az9yY\n lsco8mLXhb7u4T7e6dQ/zRBHztXgEENnmnGG+24uxtIQQ==", "From": "Max Merchel <Max.Merchel@ew.tq-group.com>", "To": "Joe Hershberger <joe.hershberger@ni.com>,\n Ramon Fried <rfried.dev@gmail.com>,\n Jerome Forissier <jerome.forissier@linaro.org>,\n Tom Rini <trini@konsulko.com>", "Cc": "Markus Niebel <Markus.Niebel@ew.tq-group.com>, u-boot@lists.denx.de,\n u-boot@ew.tq-group.com, Quentin Schulz <quentin.schulz@cherry.de>,\n Max Merchel <Max.Merchel@ew.tq-group.com>", "Subject": "[PATCH v2 1/2] net: phy: micrel_ksz90x1: disable asymmetric pause for\n KSZ9031 and KSZ9021", "Date": "Tue, 2 Dec 2025 09:13:42 +0100", "Message-ID": "<20251202081352.302025-2-Max.Merchel@ew.tq-group.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20251202081352.302025-1-Max.Merchel@ew.tq-group.com>", "References": "<20251202081352.302025-1-Max.Merchel@ew.tq-group.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-cloud-security-sender": "max.merchel@ew.tq-group.com", "X-cloud-security-recipient": "u-boot@lists.denx.de", "X-cloud-security-crypt": "load encryption module", "X-cloud-security-Mailarchiv": "E-Mail archived for: max.merchel@ew.tq-group.com", "X-cloud-security-Mailarchivtype": "outbound", "X-cloud-security-Virusscan": "CLEAN", "X-cloud-security-disclaimer": "This E-Mail was scanned by E-Mailservice on\n mx-relay75-hz1.antispameurope.com with 4dLD9m4Y9vz2tV5S", "X-cloud-security-connect": "he-nlb01-hz1.hornetsecurity.com[94.100.132.6],\n TLS=1,\n IP=94.100.132.6", "X-cloud-security-Digest": "8751c42e2f54f8f9baa9675ce31b91e7", "X-cloud-security": "scantime:1.859", "DKIM-Signature": "a=rsa-sha256;\n bh=RShDpxbiwMs0SbJFikxb+1a+mcY2skWnEKvZ+tPq2uQ=; c=relaxed/relaxed;\n d=ew.tq-group.com;\n h=content-type:mime-version:subject:from:to:message-id:date; s=hse1;\n t=1764663371; v=1;\n b=LiuG4OkVhL81rhwiMiLrU3vanjAYxtKIT83FCELqidZgoBVPLJ9NwPqZa/1x8GxsmXzr0w1u\n IG6gY3NPnxs7a6uELFlrmJjqFzuyRQ+4m6TXlT+kXXwpq/tXH9joh+yLg0FP4OUgXFon0ZdO9Pi\n MYX8hlcYUoHeqL12uvUb+z8IV3OYekoQB+eqL/xbch4NdbIw7AYN2Car7v2m/bTF+7fto+jOn+D\n GrejTQm3ZWzz4kGVv1sqlrqOIfcO3x2/17sq+aWkYNu3OjbR3JZSyP7JLUj3FbcfHT+NNKP9wFX\n +eqivaFhfxm6Y1K7KSKyPdHG/LiPHOiU7m/VzcmM5isKA==", "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": "From: Markus Niebel <Markus.Niebel@ew.tq-group.com>\n\nDisable the support due to chip errata and call genphy_config_aneg\ninstead of genphy_config. For a complete describtion look at the\nKSZ9031 errata sheets: DS80000691D or DS80000692D.\n\nMicrel KSZ9021 has no errata, but has the same issue with Asymmetric Pause.\nThis patch apply the same workaround as the one for KSZ9031.\n\nThis follows linux implementation in commits\n3aed3e2a143c (\"net: phy: micrel: add Asym Pause workaround\")\n407d8098cb1a (\"net: phy: micrel: add Asym Pause workaround for KSZ9021\")\n\nSigned-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com>\nSigned-off-by: Max Merchel <Max.Merchel@ew.tq-group.com>\n---\n drivers/net/phy/micrel_ksz90x1.c | 29 +++++++++++++++++++++++++++++\n 1 file changed, 29 insertions(+)", "diff": "diff --git a/drivers/net/phy/micrel_ksz90x1.c b/drivers/net/phy/micrel_ksz90x1.c\nindex a02dbe900b8..a669a5789b9 100644\n--- a/drivers/net/phy/micrel_ksz90x1.c\n+++ b/drivers/net/phy/micrel_ksz90x1.c\n@@ -217,6 +217,31 @@ static int ksz9031_center_flp_timing(struct phy_device *phydev)\n \treturn ret;\n }\n \n+static void ksz90x1_workaround_asymmetric_pause(struct phy_device *phydev)\n+{\n+\tu32 features = phydev->drv->features;\n+\n+\t/* Silicon Errata Sheet (DS80000691D or DS80000692D):\n+\t * Whenever the device's Asymmetric Pause capability is set to 1,\n+\t * link-up may fail after a link-up to link-down transition.\n+\t *\n+\t * The Errata Sheet is for ksz9031, but ksz9021 has the same issue\n+\t *\n+\t * Workaround:\n+\t * Do not enable the Asymmetric Pause capability bit.\n+\t */\n+\tfeatures &= ~ADVERTISE_PAUSE_ASYM;\n+\n+\t/* We force setting the Pause capability as the core will force the\n+\t * Asymmetric Pause capability to 1 otherwise.\n+\t */\n+\tfeatures |= ADVERTISE_PAUSE_CAP;\n+\n+\t/* update feature support and forward to advertised features */\n+\tphydev->supported = features;\n+\tphydev->advertising = phydev->supported;\n+}\n+\n /*\n * KSZ9021\n */\n@@ -260,6 +285,8 @@ static int ksz9021_config(struct phy_device *phydev)\n \tif (ret)\n \t\treturn ret;\n \n+\tksz90x1_workaround_asymmetric_pause(phydev);\n+\n \tif (env_get(\"disable_giga\"))\n \t\tfeatures &= ~(SUPPORTED_1000baseT_Half |\n \t\tSUPPORTED_1000baseT_Full);\n@@ -345,6 +372,8 @@ static int ksz9031_config(struct phy_device *phydev)\n \tif (ret)\n \t\treturn ret;\n \n+\tksz90x1_workaround_asymmetric_pause(phydev);\n+\n \t/* add an option to disable the gigabit feature of this PHY */\n \tif (env_get(\"disable_giga\")) {\n \t\tunsigned features;\n", "prefixes": [ "v2", "1/2" ] }