]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: at803x: Allow specifying the RGMII RX clock delay via phy mode
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Fri, 15 Jan 2016 00:55:22 +0000 (01:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jan 2016 00:16:46 +0000 (19:16 -0500)
commit7ed67c0e41e376db3e94bf81e59db13280d6f4ef
tree87ba5c99bd21f84921cf8c7747bef83dc0c02d8b
parent3181b1efbae60ab192943afb7bcf3045995b269f
net: phy: at803x: Allow specifying the RGMII RX clock delay via phy mode

at803x currently automatically enables the RGMII TX clock delay when the
phy interface mode is PHY_INTERFACE_MODE_RGMII_TXID. The same should be
done when PHY_INTERFACE_MODE_RGMII_ID is specified.
Use a similar logic to enable the RGMII RX clock delay as well.
at803x_context_{save,restore} were not touched because these are only
used on AR8030 which is a RMII phy (RGMII clock delays are irrelevant).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c