]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d3004900aa74d4e18652852967b73122ce77b8f
treead1fc3c639ee965ba6ebc6117fc73152e5b8b5a5
parentad42ddfdf0609055565124b8e5692f1dc8b9ae3a
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