net: phy: mscc: configure both RX and TX internal delays for RGMII
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 19 Mar 2020 21:16:48 +0000 (23:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2020 03:52:27 +0000 (20:52 -0700)
commit7b005a1742be4608480d9d151aec42170a06cbee
treead1fc3c639ee965ba6ebc6117fc73152e5b8b5a5
parentda206d65f2b293274f8082a26da4e43a1610da54
net: phy: mscc: configure both RX and TX internal delays for RGMII

The driver appears to be secretly enabling the RX clock skew
irrespective of PHY interface type, which is generally considered a big
no-no.

Make them configurable instead, and add TX internal delays when
necessary too.

While at it, configure a more canonical clock skew of 2.0 nanoseconds
than the current default of 1.1 ns.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mscc/mscc.h
drivers/net/phy/mscc/mscc_main.c