]> 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)
commit1b19a85869ceb03bea5a77fcb5e63298d0bfddd7
treee185ee31e81736c7570bbcc17ac1b7e6be968b05
parentb4c58e66b948b7cde615af0e8802d9a80a9838f3
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