]> git.dujemihanovic.xyz Git - linux.git/commit
net: stmmac: dwmac-ipq806x: account for rgmii-txid/rxid/id phy-mode
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 6 May 2024 12:32:46 +0000 (14:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 May 2024 11:19:54 +0000 (12:19 +0100)
commitabb45a2477f533cd4aab3085defdff131e2e8c4f
tree7c4d39217b84a5d8dd32d066810e04af75c458d3
parentb7ffab29a8e4705e7b9f05293669dc8a30272bc6
net: stmmac: dwmac-ipq806x: account for rgmii-txid/rxid/id phy-mode

Currently the ipq806x dwmac driver is almost always used attached to the
CPU port of a switch and phy-mode was always set to "rgmii" or "sgmii".

Some device came up with a special configuration where the PHY is
directly attached to the GMAC port and in those case phy-mode needs to
be set to "rgmii-id" to make the PHY correctly work and receive packets.

Since the driver supports only "rgmii" and "sgmii" mode, when "rgmii-id"
(or variants) mode is set, the mode is rejected and probe fails.

Add support also for these phy-modes to correctly setup PHYs that requires
delay applied to tx/rx.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c