]> git.baikalelectronics.ru Git - kernel.git/commit
Marvell phy: check link status in case of fiber link.
authorCharles-Antoine Couret <charles-antoine.couret@nexvision.fr>
Tue, 19 Jul 2016 09:13:10 +0000 (11:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jul 2016 23:05:56 +0000 (16:05 -0700)
commit501dec778b748dbff34091f2add51b532bdd6575
tree59ae0b31cfbdff5e6aa44faaeb9fffb2ecc00c52
parenta0309ba53b32bedd8b357ae48109d8f3883fe83e
Marvell phy: check link status in case of fiber link.

For concerned phy, the fiber link is checked before the copper link.
According to datasheet, the link which is up is enabled.

If both links are down, copper link would be used.
To detect fiber link status, we used the real time status
because of troubles with the copper method.

Tested with Marvell 88E1512.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Charles-Antoine Couret <charles-antoine.couret@nexvision.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c