[PATCH v8 0/3] net: stmmac: dwmac-sophgo: Add phy interface filter
Inochi Amaoto <[email protected]>
| Newsgroups | dev.linux.lists.sophgo,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
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 v7: - https://lore.kernel.org/all/[email protected] 1. patch 1: fix a mistake that using rgmii-txid instead of rgmii-rxid for SG2042 Change from v6: - https://lore.kernel.org/all/[email protected] 1. patch 2: fixed kdoc warning Change from v5: - https://lore.kernel.org/all/[email protected] 1. patch 1: remove duplicate empty line Change from v4: - https://lore.kernel.org/all/[email protected] 1. patch 3: add const qualifier to struct sg2042_dwmac_data Change from v3: - https://lore.kernel.org/all/[email protected] 1. patch 1: fix binding check error Change from v2: - https://lore.kernel.org/all/[email protected] 1. patch 3: fix comment typo 2. patch 3: add check for PHY_INTERFACE_MODE_NA. Change from v1: - https://lore.kernel.org/all/[email protected] 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 | 19 ++++++++ .../ethernet/stmicro/stmmac/dwmac-sophgo.c | 20 ++++++++- drivers/net/phy/phy-core.c | 43 +++++++++++++++++++ include/linux/phy.h | 3 ++ 4 files changed, 84 insertions(+), 1 deletion(-) -- 2.51.2