From: Baruch Siach <bar...@tkos.co.il>
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(), and
> leave phylink_connect_phy() as a wrapper. phylink_sfp_connect_phy() can
> now pass the SFP detected PHY interface to __phylink_connect_phy().
> 
> This fixes 1GB SFP module link up on eth3 of the Macchiatobin board that
> is configured in the DT to "2500base-x" phy-mode.
> 
> Fixes: 9525ae83959b6 ("phylink: add phylink infrastructure")
> Suggested-by: Russell King <rmk+ker...@armlinux.org.uk>
> Signed-off-by: Baruch Siach <bar...@tkos.co.il>
> ---
> v2: Leave the phylink_connect_phy() functionality unchanged. Only
>     phylink_sfp_connect_phy() calls __phylink_connect_phy() with the
>     detected interface (Russell King)

Applied and queued up for -stable.

Reply via email to