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)
commit2e5f9f281ee8369f56d403b4a52942f19b6978f8
tree87ba5c99bd21f84921cf8c7747bef83dc0c02d8b
parente15bb4c64ddbf62122ef906732b96ae31135f156
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