HSD #15010262011-2: net: eth: altera: fix QSE driver broken link speed configuration

This patch fixes QSE driver broken link speed configuration during
mac_config. During mac_config, the link speed is still unknown and
will only be set after mac_pcs_get_state is called. Hence, it is
more appropriate to check for state interface which is defined in
device tree phy-mode instead of link speed during mac_config.

The reason for this change is, commit e0f909bc3a24 ('net: switch to
using PHY_INTERFACE_MODE_10GBASER rather than 10GKR') that was
introduced in v5.10-lts.

Fix is applied to update the PHY interface to align with the upstream
change.

Signed-off-by: Teoh, Ji Sheng <ji.sheng.teoh@intel.com>
1 file changed