* [PATCH v2 net-next 1/1] net: stmmac: allow stmmac to probe for C45 PHY devices
@ 2020-12-09 22:47 ` Wong Vee Khee
0 siblings, 0 replies; 6+ messages in thread
From: Wong Vee Khee @ 2020-12-09 22:47 UTC (permalink / raw)
To: Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
David S . Miller, Jakub Kicinski, Maxime Coquelin
Cc: netdev, linux-stm32, linux-arm-kernel, linux-kernel,
Ong Boon Leong, Voon Wei Feng, Wong Vee Khee
Assign stmmac's mdio_bus probe capabilities to MDIOBUS_C22_C45.
This extended the probing of C45 PHY devices on the MDIO bus.
Signed-off-by: Wong Vee Khee <vee.khee.wong@intel.com>
---
v2 changelog:
- Added conditional check for gmac4.
---
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
index b2a707e2ef43..d64116e0543e 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
@@ -365,6 +365,9 @@ int stmmac_mdio_register(struct net_device *ndev)
new_bus->name = "stmmac";
+ if (priv->plat->has_gmac4)
+ new_bus->probe_capabilities = MDIOBUS_C22_C45;
+
if (priv->plat->has_xgmac) {
new_bus->read = &stmmac_xgmac2_mdio_read;
new_bus->write = &stmmac_xgmac2_mdio_write;
--
2.17.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 net-next 1/1] net: stmmac: allow stmmac to probe for C45 PHY devices
@ 2020-12-09 22:47 ` Wong Vee Khee
0 siblings, 0 replies; 6+ messages in thread
From: Wong Vee Khee @ 2020-12-09 22:47 UTC (permalink / raw)
To: Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
David S . Miller, Jakub Kicinski, Maxime Coquelin
Cc: Voon Wei Feng, Wong Vee Khee, netdev, linux-kernel,
Ong Boon Leong, linux-stm32, linux-arm-kernel
Assign stmmac's mdio_bus probe capabilities to MDIOBUS_C22_C45.
This extended the probing of C45 PHY devices on the MDIO bus.
Signed-off-by: Wong Vee Khee <vee.khee.wong@intel.com>
---
v2 changelog:
- Added conditional check for gmac4.
---
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
index b2a707e2ef43..d64116e0543e 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
@@ -365,6 +365,9 @@ int stmmac_mdio_register(struct net_device *ndev)
new_bus->name = "stmmac";
+ if (priv->plat->has_gmac4)
+ new_bus->probe_capabilities = MDIOBUS_C22_C45;
+
if (priv->plat->has_xgmac) {
new_bus->read = &stmmac_xgmac2_mdio_read;
new_bus->write = &stmmac_xgmac2_mdio_write;
--
2.17.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2 net-next 1/1] net: stmmac: allow stmmac to probe for C45 PHY devices
2020-12-09 22:47 ` Wong Vee Khee
@ 2020-12-10 0:43 ` Andrew Lunn
-1 siblings, 0 replies; 6+ messages in thread
From: Andrew Lunn @ 2020-12-10 0:43 UTC (permalink / raw)
To: Wong Vee Khee
Cc: Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
David S . Miller, Jakub Kicinski, Maxime Coquelin, Voon Wei Feng,
netdev, linux-kernel, Ong Boon Leong, linux-stm32,
linux-arm-kernel
On Thu, Dec 10, 2020 at 06:47:00AM +0800, Wong Vee Khee wrote:
> Assign stmmac's mdio_bus probe capabilities to MDIOBUS_C22_C45.
> This extended the probing of C45 PHY devices on the MDIO bus.
>
> Signed-off-by: Wong Vee Khee <vee.khee.wong@intel.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 net-next 1/1] net: stmmac: allow stmmac to probe for C45 PHY devices
@ 2020-12-10 0:43 ` Andrew Lunn
0 siblings, 0 replies; 6+ messages in thread
From: Andrew Lunn @ 2020-12-10 0:43 UTC (permalink / raw)
To: Wong Vee Khee
Cc: Alexandre Torgue, Voon Wei Feng, netdev, linux-kernel,
linux-stm32, Jose Abreu, Maxime Coquelin, Jakub Kicinski,
Ong Boon Leong, Giuseppe Cavallaro, David S . Miller,
linux-arm-kernel
On Thu, Dec 10, 2020 at 06:47:00AM +0800, Wong Vee Khee wrote:
> Assign stmmac's mdio_bus probe capabilities to MDIOBUS_C22_C45.
> This extended the probing of C45 PHY devices on the MDIO bus.
>
> Signed-off-by: Wong Vee Khee <vee.khee.wong@intel.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 net-next 1/1] net: stmmac: allow stmmac to probe for C45 PHY devices
2020-12-09 22:47 ` Wong Vee Khee
@ 2020-12-10 3:40 ` David Miller
-1 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2020-12-10 3:40 UTC (permalink / raw)
To: vee.khee.wong
Cc: peppe.cavallaro, alexandre.torgue, joabreu, kuba,
mcoquelin.stm32, netdev, linux-stm32, linux-arm-kernel,
linux-kernel, boon.leong.ong, weifeng.voon
From: Wong Vee Khee <vee.khee.wong@intel.com>
Date: Thu, 10 Dec 2020 06:47:00 +0800
> Assign stmmac's mdio_bus probe capabilities to MDIOBUS_C22_C45.
> This extended the probing of C45 PHY devices on the MDIO bus.
>
> Signed-off-by: Wong Vee Khee <vee.khee.wong@intel.com>
> ---
> v2 changelog:
> - Added conditional check for gmac4.
Applied, thanks.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 net-next 1/1] net: stmmac: allow stmmac to probe for C45 PHY devices
@ 2020-12-10 3:40 ` David Miller
0 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2020-12-10 3:40 UTC (permalink / raw)
To: vee.khee.wong
Cc: alexandre.torgue, weifeng.voon, netdev, linux-kernel, joabreu,
mcoquelin.stm32, kuba, boon.leong.ong, peppe.cavallaro,
linux-stm32, linux-arm-kernel
From: Wong Vee Khee <vee.khee.wong@intel.com>
Date: Thu, 10 Dec 2020 06:47:00 +0800
> Assign stmmac's mdio_bus probe capabilities to MDIOBUS_C22_C45.
> This extended the probing of C45 PHY devices on the MDIO bus.
>
> Signed-off-by: Wong Vee Khee <vee.khee.wong@intel.com>
> ---
> v2 changelog:
> - Added conditional check for gmac4.
Applied, thanks.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-12-10 3:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-09 22:47 [PATCH v2 net-next 1/1] net: stmmac: allow stmmac to probe for C45 PHY devices Wong Vee Khee
2020-12-09 22:47 ` Wong Vee Khee
2020-12-10 0:43 ` Andrew Lunn
2020-12-10 0:43 ` Andrew Lunn
2020-12-10 3:40 ` David Miller
2020-12-10 3:40 ` David Miller
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.