Message ID | 20211130101015.164916-1-horatiu.vultur@microchip.com |
---|---|
State | Accepted |
Commit | 17dcc120fb8d0da4e954ce4386f1376f9cef43d0 |
Headers | show |
Series | phy: lan966x: Extend lan966x to support multiple phy interfaces. | expand |
On Tue, Nov 30, 2021 at 11:10:15AM +0100, Horatiu Vultur wrote: > Currently the driver is supporting only the interfaces QSGMII, SGMII, > RGMII and GMII. This patch extend the supported interfaces with > 1000BASE-X and 2500BASE-X. > > Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Acked-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Thanks.
On 30-11-21, 11:10, Horatiu Vultur wrote: > Currently the driver is supporting only the interfaces QSGMII, SGMII, > RGMII and GMII. This patch extend the supported interfaces with > 1000BASE-X and 2500BASE-X. Applied, thanks
diff --git a/drivers/phy/microchip/lan966x_serdes.c b/drivers/phy/microchip/lan966x_serdes.c index 262bb616b4bb..c0b80a176387 100644 --- a/drivers/phy/microchip/lan966x_serdes.c +++ b/drivers/phy/microchip/lan966x_serdes.c @@ -392,6 +392,10 @@ static int serdes_set_mode(struct phy *phy, enum phy_mode mode, int submode) if (mode != PHY_MODE_ETHERNET) return -EOPNOTSUPP; + if (submode == PHY_INTERFACE_MODE_1000BASEX || + submode == PHY_INTERFACE_MODE_2500BASEX) + submode = PHY_INTERFACE_MODE_SGMII; + for (i = 0; i < ARRAY_SIZE(lan966x_serdes_muxes); i++) { if (macro->idx != lan966x_serdes_muxes[i].idx || mode != lan966x_serdes_muxes[i].mode ||
Currently the driver is supporting only the interfaces QSGMII, SGMII, RGMII and GMII. This patch extend the supported interfaces with 1000BASE-X and 2500BASE-X. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> --- drivers/phy/microchip/lan966x_serdes.c | 4 ++++ 1 file changed, 4 insertions(+)