Article View: linux.kernel.netdev
Article #22095Re: [PATCH net v2] net: mdio: mux-meson-g12a: keep the MAC data path when switching MDIO
From: Igor Velkov
Date: Tue, 24 Nov 2026 21:30
Date: Tue, 24 Nov 2026 21:30
30 lines
11005 bytes
11005 bytes
Hi Martin, On Tue, Nov 24, 2026 at 9:50 PM Martin Blumenstingl <martin.blumenstingl@googlemail.com> wrote: > I have just reviewed Lucas patch [0] which adds Ethernet support for the T7 SoC. > He kept the internal MDIO mux path disabled by default, so boards > using it will have to enable it. > Have you tested that approach as well? If not: it would be great if > you could investigate the pros/cons of your approach vs. Lucas' > approach. Not on hardware. By the code it works: mdio-mux registers only the available child buses, and the g12a driver writes CNTL2 only from switch_fn. With int_mdio disabled the internal bus never exists, so CNTL2 only ever gets the external setting. But that avoids the bug rather than fixes it. The MDIO source and the data path are separate CNTL2 bits; the driver switched them together. Disabling int_mdio only keeps that path from running, and only on boards whose DT does it. The G12A/G12B/SM1/S4/C3 dtsi enable int_mdio, and ten boards use the internal PHY relying on that. Changing the default touches all of them, and existing DTBs keep the bug. The driver change removes the coupling: the data path follows the PHY the MAC attaches, with any DTB. For a new SoC like T7, int_mdio disabled in the dtsi is ordinary DT practice, and the two combine. If one has to pick, the driver change: it fixes the cause. Igor
Technical Details
Message-ID:
<20261124-re-martin-g12a-mux-t7@iav.lv>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370771-linux-kernel-netdev=dewy.ruReferences:
<20261117-g12a-mux-data-path-v2-1-fc56db5973af@iav.lv> <CAFBinCALe-8oB5Mwpyx-B_7dKJ-WZcMCjycHv=xH+JasRBOaPw@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370771-linux-kernel-netdev=dewy.ru From: iav@iav.lv (Igor Velkov) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2] net: mdio: mux-meson-g12a: keep the MAC data path when switching MDIO Date: Tue, 24 Nov 2026 23:30:25 +0200 Organization: Usenet Network Message-ID: <20261124-re-martin-g12a-mux-t7@iav.lv> References: <20261117-g12a-mux-data-path-v2-1-fc56db5973af@iav.lv> <CAFBinCALe-8oB5Mwpyx-B_7dKJ-WZcMCjycHv=xH+JasRBOaPw@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="42780"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:XXNyvyCfYqmXZrXsDGVGrjz3Xos= sha256:GS3LP3xbkPzrvE7an8duAjBtjnswv9psKX7FiJby3bc= sha1:tHx6Vsf/qQN/84Rz07I9xf6QVMc= sha256:VawfLe8IpuzB25cWVaOIyeEjTqWcxar8/YusMhvuzoM= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 30B0C125E33; Wed, 25 Nov 2026 00:31:46 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.85 X-Spam-Status: No, score=-2.85 tagged_above=-9999 required=6.31 tests=[DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=iav.lv X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wm4Nhns27Jn8; Wed, 25 Nov 2026 00:31:42 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-370771-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=iav.lv X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id B31FC125D85; Wed, 25 Nov 2026 00:31:32 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id B7E5A604FB2; Tue, 24 Nov 2026 21:31:31 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795555890; b=T+i1bkSiu9s4mq4GiW4ZPXNd86ZOPIehKM2lz21H1m337pbEXNAz520HnkU4EtTECyx9 ZVrsjETLVJnM113/46Yif2UYVbv2ssenslZ13J90mK4v1bMmG2w03FhrZHtRgg3IRJEEa z2c7v69EByXItP+YyxPRJQCN5UewmO8xbpFGPAepTggE895aKiwsZrusrNeyQ1fiBKWQm giUuBdK7W2dWsqMHEPknC8DIK5aCQBdteXTbvB4H6Pq8nlEJcen6tVWGs6GnFqFuB2VfU RRGUGcF9WkIbzoILhsMO8zBmYlt2ha7V+4AizYAcFTWvFYt9uSVSc/JvIom8h905xEw== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795555890; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:In-Reply-To:References:X-Mailing-List: List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe: List-Owner:Precedence:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=2ZZ0i6HlDHdHe4CdRACxk5+gA57bus4KuijYTBcB6nE=; b=BDUGH0Kdo28rl2wRh7LhH5e5vjDJliDQowCkbPN5A6Q1PjuTTFhlxUDweosBKJ5VDXcV kuLrUz6LK6hXgCYkK3YkV6szsGLX9WhDcaE/FChE2jqCBGsL1RfbnNtE20vzUBh1Jhow6 zh9FMjiZ3GS58qvejApe+ynj25k4pFxsW8mKoq9kSql8K6WUqNIPAyL0bLnjojCxqWqAm nn4px4RGntMylvzbmktohu6Fk2ssawP2Fx82IaqoF/u3ThiRrqXF7jdLG6tjfBccj3bx6 b2aTX5UJjc0dnJ7yMfpGwxhh6NAzvys+rdFWqGMKnpcOOljnRDyEZjfNFZAkM20P5rg== X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" header.d=iav.lv header.i=@iav.lv header.a=rsa-sha256 header.s=zoho header.b=Xg0gjWbS; dmarc=none header.from=iav.lv; spf=pass smtp.mailfrom=iav.lv; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FC72606A686; Tue, 24 Nov 2026 21:31:30 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=iav.lv header.i=@iav.lv header.a=rsa-sha256 header.s=zoho header.b=Xg0gjWbS X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=136.143.169.15 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795555884; b=n8xmwPO26xnp/DZSkMPeYj5jGHA6MfYDL17kAAk5i1QgHhLmJlziEongC0lHhUy2vfWI uqIM3q9NbQTZ593b9vRU5fWM1X9WvaWq3HYUmSFsnxI22fkN66IWwU6ULUrCZkuk8TO0a TYOvPEBmqhO49UpKsBi7IDV0G8JeQt4Bf6cv2hXo8v83I+ZrAAHpEulm1UpPLoGkDHHQd 05h3oA/o9ak5p9eodJCe2aZaIyVdEhG0dAxCIedwFgwvfBQM0Y5cxnvF69jrlKuWRfBN6 IYfENeBqrx3S08m6Cc8xlmjvXjPduQCBENPaHwl5eb8mo2UHuffnU8ZMm2TuVeMaZ5g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795555884; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=2ZZ0i6HlDHdHe4CdRACxk5+gA57bus4KuijYTBcB6nE=; b=YE3nONpTNMbekaZZfcEcbVWx4vcSD8lcQR7mOaHoqQfqnSEZeRnl2mImxTvQP8i/Ui7U XR1b7LmQnQanBSj2RKvRWz0Vj8nQgbvViPYQRVywWPUGeRBKtuyc5wupFD0sVvj4PVLTi ZpJgQBYT2GGUYU1ZrW5DxOYorCi86PjctmmUu0bhbT3aRz2Hv6FETScDLRR90HEfKlh/u 6KdmjAqMfDtNbUqB+gaM/iMDlbY2Gwo+i/d/Y7dz3cZrg0qFVbn4gznqjXug7kkBxwHbh uQwh72YH+3KNXJq0+s8sRzykHf2SMuJd58rhvQxE1QoBSkK0AwPJjXjoA8TYtX5QtjA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=iav.lv; spf=pass smtp.mailfrom=iav.lv; dkim=pass header.d=iav.lv header.i=@iav.lv header.a=rsa-sha256 header.s=zoho header.b=Xg0gjWbS; arc=pass header.oldest-pass=0 smtp.remote-ip=136.143.169.15 X-Received: from sender-op-o15.zoho.eu (sender-op-o15.zoho.eu [136.143.169.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9C0D606A683; Tue, 24 Nov 2026 21:31:22 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A9C0D606A683 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iav.lv X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iav.lv X-ARC-Seal: i=1; a=rsa-sha256; t=1795555829; cv=none; d=zohomail.eu; s=zohoarc; b=gFavRAac8duItiIcuykCC4U61BDDEiC8fP2KB+VUJuuLNRtEiTFH5vHKze6UuNxk3eOL63Wwbetql5b1pbTeENhh9U4bNVFQyggwysLatnKMx6S/2OEVimaIEE1ZHCEHkTvQUnVO28gfLVl6sdEYg5J/NXn5wjqjpd3QqbsmfjI= X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1795555829; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=2ZZ0i6HlDHdHe4CdRACxk5+gA57bus4KuijYTBcB6nE=; b=iDo5Tt4apH7dCuqFXUmkAkaL2RlWPK4dG6HvucfGlm3ZZB0yL607G7RFH8Qy3trdPw/dNa5IBzNPbcYthVo+cyLef86+BBPiz9LEHx6CSPGc83xV1qKZZExECgFSSykQdQ9gSDNJztSnyJvuccg5jbomyzle2QhdzX1ugMH6krM= X-ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=iav.lv; spf=pass smtp.mailfrom=iav@iav.lv; dmarc=pass header.from=<iav@iav.lv> X-DKIM-Signature: a=rsa-sha256; b=Xg0gjWbSOrN3ih4nu1jb8196N6p51fu/BEXKP8u/Rt9ERiF00e1NNOkZCidAxfVQj1WAd+XEnTNTIhf7J0q2Hb1rwIfo/7ZtxrJo2l8QG6CU64eep+f5yKCQTTofb+0GcULk/4UpgZehAdaGO9pFh0FJZZR41XaDUwZewmqxGFw=; c=relaxed/relaxed; s=zoho; d=iav.lv; v=1; bh=2ZZ0i6HlDHdHe4CdRACxk5+gA57bus4KuijYTBcB6nE=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; X-Received: by smtp.zoho.eu with SMTPS id 1795555827111698.0393064779806; Tue, 24 Nov 2026 22:30:27 +0100 (CET) X-Cc: Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Neil Armstrong <neil.armstrong@linaro.org>, Kevin Hilman <khilman@baylibre.com>, Jerome Brunet <jbrunet@baylibre.com>, Lucas Tanure <tanure@linux.com>, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, iav@iav.lv X-In-Reply-To: <CAFBinCALe-8oB5Mwpyx-B_7dKJ-WZcMCjycHv=xH+JasRBOaPw@mail.gmail.com> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list