Re: [PATCH v2] net: phy: phylink: fix SFP interface autodetection

2018-10-05 Thread David Miller
From: Baruch Siach Date: Wed, 3 Oct 2018 19:04:49 +0300 > When connecting SFP PHY to phylink use the detected interface. > Otherwise, the link fails to come up when the configured 'phy-mode' > differs from the SFP detected mode. > > Move most of phylink_connect_phy() into __phylink_connect_phy(

[PATCH v2] net: phy: phylink: fix SFP interface autodetection

2018-10-03 Thread Baruch Siach
When connecting SFP PHY to phylink use the detected interface. Otherwise, the link fails to come up when the configured 'phy-mode' differs from the SFP detected mode. Move most of phylink_connect_phy() into __phylink_connect_phy(), and leave phylink_connect_phy() as a wrapper. phylink_sfp_connect_