From: Baruch Siach <bar...@tkos.co.il> Date: Tue, 4 Dec 2018 16:03:52 +0200
> The mvpp2_phylink_validate() relies on the interface field of > phylink_link_state to determine valid link modes. However, when called > from phylink_sfp_module_insert() this field in not initialized. The > default switch case then excludes 10G link modes. This allows 10G SFP > modules that are detected correctly to be configured at max rate of > 2.5G. > > Catch the uninitialized PHY mode case, and allow 10G rates. > > Fixes: d97c9f4ab000b ("net: mvpp2: 1000baseX support") > Cc: Maxime Chevallier <maxime.chevall...@bootlin.com> > Cc: Antoine Tenart <antoine.ten...@bootlin.com> > Acked-by: Russell King <rmk+ker...@armlinux.org.uk> > Signed-off-by: Baruch Siach <bar...@tkos.co.il> Applied.