net: phy: mscc: consolidate a common RGMII delay implementation
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 24 Mar 2020 14:13:58 +0000 (16:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2020 23:36:37 +0000 (16:36 -0700)
commit2283a02b67d41251a80857121e36845161fc57b5
treee185ee31e81736c7570bbcc17ac1b7e6be968b05
parent148aa2a86c7a7db88b911f4efd63547bcec94710
net: phy: mscc: consolidate a common RGMII delay implementation

It looks like the VSC8584 PHY driver is rolling its own RGMII delay
configuration code, despite the fact that the logic is mostly the same.

In fact only the register layout and position for the RGMII controls has
changed. So we need to adapt and parameterize the PHY-dependent bit
fields when calling the new generic function.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mscc/mscc.h
drivers/net/phy/mscc/mscc_main.c