[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251020095500.1330057-1-inochiama@gmail.com>
Date: Mon, 20 Oct 2025 17:54:56 +0800
From: Inochi Amaoto <inochiama@...il.com>
To: Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Chen Wang <unicorn_wang@...look.com>,
Inochi Amaoto <inochiama@...il.com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>,
"Russell King (Oracle)" <rmk+kernel@...linux.org.uk>,
Han Gao <rabenda.cn@...il.com>,
Icenowy Zheng <uwu@...nowy.me>,
Vivian Wang <wangruikang@...as.ac.cn>,
Yao Zi <ziyao@...root.org>
Cc: netdev@...r.kernel.org,
devicetree@...r.kernel.org,
sophgo@...ts.linux.dev,
linux-kernel@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org,
Yixun Lan <dlan@...too.org>,
Longbin Li <looong.bin@...il.com>
Subject: [PATCH v2 0/3] net: stmmac: dwmac-sophgo: Add phy interface filter
As the SG2042 has an internal rx delay, the delay should be remove
when init the mac, otherwise the phy will be misconfigurated.
Since this delay fix is common for other MACs, add a common helper
for it. And use it to fix SG2042.
Change from v1:
- https://lore.kernel.org/all/20251017011802.523140-1-inochiama@gmail.com
1. Add phy-mode property to dt-bindings of sophgo,sg2044-dwmac
2. Add common helper for fixing RGMII phy mode
3. Use struct to hold the compatiable data.
Inochi Amaoto (3):
dt-bindings: net: sophgo,sg2044-dwmac: add phy mode restriction
net: phy: Add helper for fixing RGMII PHY mode based on internal mac
delay
net: stmmac: dwmac-sophgo: Add phy interface filter
.../bindings/net/sophgo,sg2044-dwmac.yaml | 17 ++++++++
.../ethernet/stmicro/stmmac/dwmac-sophgo.c | 17 +++++++-
drivers/net/phy/phy-core.c | 43 +++++++++++++++++++
include/linux/phy.h | 3 ++
4 files changed, 79 insertions(+), 1 deletion(-)
--
2.51.1.dirty
Powered by blists - more mailing lists