All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] phy: lan966x: Extend lan966x to support multiple phy interfaces.
@ 2021-11-30 10:10 ` Horatiu Vultur
  0 siblings, 0 replies; 6+ messages in thread
From: Horatiu Vultur @ 2021-11-30 10:10 UTC (permalink / raw)
  To: kishon, vkoul, linux, linux-phy, linux-kernel; +Cc: Horatiu Vultur

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(+)

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 ||
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] phy: lan966x: Extend lan966x to support multiple phy interfaces.
@ 2021-11-30 10:10 ` Horatiu Vultur
  0 siblings, 0 replies; 6+ messages in thread
From: Horatiu Vultur @ 2021-11-30 10:10 UTC (permalink / raw)
  To: kishon, vkoul, linux, linux-phy, linux-kernel; +Cc: Horatiu Vultur

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(+)

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 ||
-- 
2.33.0


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] phy: lan966x: Extend lan966x to support multiple phy interfaces.
  2021-11-30 10:10 ` Horatiu Vultur
@ 2021-11-30 13:58   ` Russell King (Oracle)
  -1 siblings, 0 replies; 6+ messages in thread
From: Russell King (Oracle) @ 2021-11-30 13:58 UTC (permalink / raw)
  To: Horatiu Vultur; +Cc: kishon, vkoul, linux-phy, linux-kernel

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.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] phy: lan966x: Extend lan966x to support multiple phy interfaces.
@ 2021-11-30 13:58   ` Russell King (Oracle)
  0 siblings, 0 replies; 6+ messages in thread
From: Russell King (Oracle) @ 2021-11-30 13:58 UTC (permalink / raw)
  To: Horatiu Vultur; +Cc: kishon, vkoul, linux-phy, linux-kernel

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.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] phy: lan966x: Extend lan966x to support multiple phy interfaces.
  2021-11-30 10:10 ` Horatiu Vultur
@ 2021-12-02  4:19   ` Vinod Koul
  -1 siblings, 0 replies; 6+ messages in thread
From: Vinod Koul @ 2021-12-02  4:19 UTC (permalink / raw)
  To: Horatiu Vultur; +Cc: kishon, linux, linux-phy, linux-kernel

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

-- 
~Vinod

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] phy: lan966x: Extend lan966x to support multiple phy interfaces.
@ 2021-12-02  4:19   ` Vinod Koul
  0 siblings, 0 replies; 6+ messages in thread
From: Vinod Koul @ 2021-12-02  4:19 UTC (permalink / raw)
  To: Horatiu Vultur; +Cc: kishon, linux, linux-phy, linux-kernel

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

-- 
~Vinod

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-12-02  4:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-30 10:10 [PATCH] phy: lan966x: Extend lan966x to support multiple phy interfaces Horatiu Vultur
2021-11-30 10:10 ` Horatiu Vultur
2021-11-30 13:58 ` Russell King (Oracle)
2021-11-30 13:58   ` Russell King (Oracle)
2021-12-02  4:19 ` Vinod Koul
2021-12-02  4:19   ` Vinod Koul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.