]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4f988a36ca1b7c364f92dc0b64a5d6d3286323cd
treee185ee31e81736c7570bbcc17ac1b7e6be968b05
parenta8e2d94dd4e8553c2a13d027bcb4dd4efe42ce96
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