]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: intel: prepare to support 1000BASE-X phy interface setting
authorOng Boon Leong <boon.leong.ong@intel.com>
Wed, 15 Jun 2022 08:39:05 +0000 (16:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jun 2022 09:55:35 +0000 (10:55 +0100)
commita23cb6b2a6cdac644f09eaa395599caa3e15c07d
tree97c462122001b63d41d125abcb3855ba0777d4a3
parente6f01a1460cbda9799734db9e8a52f860381ba53
stmmac: intel: prepare to support 1000BASE-X phy interface setting

Currently, intel_speed_mode_2500() redundantly fix-up phy_interface to
PHY_INTERFACE_MODE_SGMII if the underlying controller is in 1000Mbps
SGMII mode. The value of phy_interface has been initialized earlier.

This patch removes such redundancy to prepare for setting 1000BASE-X
mode for certain hardware platform configuration.

Also update the intel_mgbe_common_data() to include 1000BASE-X setup.

Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c