dsa: mv88e6xxx: Set the RGMII delay based on phy interface
authorAndrew Lunn <andrew@lunn.ch>
Mon, 31 Aug 2015 13:56:51 +0000 (15:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2015 21:48:02 +0000 (14:48 -0700)
commite7e72ac05acc357065a9448314dd14fff7c40d39
tree62ba32f0a6868d23d2703435da7044d2f9ff129a
parente44853466844c20d8b5b16de187f63ddc50710dd
dsa: mv88e6xxx: Set the RGMII delay based on phy interface

Some Marvell switches allow the RGMII Rx and Tx clock to be delayed
when the port is using RGMII. Have the adjust_link function look at
the phy interface type and enable this delay as requested.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h