Re: [PATCH 1/4] Marvell phy: check link status in case of fiber link.

2016-07-18 Thread Andrew Lunn
On Mon, Jul 18, 2016 at 11:03:40AM +0200, Charles-Antoine Couret wrote: Hi Charles-Antoine Looking good. Just one nitpick. > /* marvell_read_status You missed changing this name above. > * > - * Generic status code does not detect Fiber correctly! > * Description: > * Check the link,

[PATCH 1/4] Marvell phy: check link status in case of fiber link.

2016-07-18 Thread Charles-Antoine Couret
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 Marvel