* [net-next, PATCH v2] net: phy: mediatek: do not require syscon compatible for pio property
@ 2025-05-10 17:49 Frank Wunderlich
2025-05-16 17:20 ` Aw: " Frank Wunderlich
2025-05-16 22:50 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 6+ messages in thread
From: Frank Wunderlich @ 2025-05-10 17:49 UTC (permalink / raw)
To: Daniel Golle, Qingfang Deng, SkyLake Huang, Andrew Lunn,
Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Matthias Brugger,
AngeloGioacchino Del Regno
Cc: netdev, linux-mediatek, linux-kernel, linux-arm-kernel
From: Frank Wunderlich <frank-w@public-files.de>
Current implementation requires syscon compatible for pio property
which is used for driving the switch leds on mt7988.
Replace syscon_regmap_lookup_by_phandle with of_parse_phandle and
device_node_to_regmap to get the regmap already assigned by pinctrl
driver.
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
v2:
- out of RFC
---
drivers/net/phy/mediatek/mtk-ge-soc.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/net/phy/mediatek/mtk-ge-soc.c b/drivers/net/phy/mediatek/mtk-ge-soc.c
index 175cf5239bba..21975ef946d5 100644
--- a/drivers/net/phy/mediatek/mtk-ge-soc.c
+++ b/drivers/net/phy/mediatek/mtk-ge-soc.c
@@ -7,6 +7,7 @@
#include <linux/pinctrl/consumer.h>
#include <linux/phy.h>
#include <linux/regmap.h>
+#include <linux/of.h>
#include "../phylib.h"
#include "mtk.h"
@@ -1319,6 +1320,7 @@ static int mt7988_phy_probe_shared(struct phy_device *phydev)
{
struct device_node *np = dev_of_node(&phydev->mdio.bus->dev);
struct mtk_socphy_shared *shared = phy_package_get_priv(phydev);
+ struct device_node *pio_np;
struct regmap *regmap;
u32 reg;
int ret;
@@ -1336,7 +1338,13 @@ static int mt7988_phy_probe_shared(struct phy_device *phydev)
* The 4 bits in TPBANK0 are kept as package shared data and are used to
* set LED polarity for each of the LED0.
*/
- regmap = syscon_regmap_lookup_by_phandle(np, "mediatek,pio");
+ pio_np = of_parse_phandle(np, "mediatek,pio", 0);
+ if (!pio_np)
+ return -ENODEV;
+
+ regmap = device_node_to_regmap(pio_np);
+ of_node_put(pio_np);
+
if (IS_ERR(regmap))
return PTR_ERR(regmap);
--
2.43.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Aw: [net-next, PATCH v2] net: phy: mediatek: do not require syscon compatible for pio property
2025-05-10 17:49 [net-next, PATCH v2] net: phy: mediatek: do not require syscon compatible for pio property Frank Wunderlich
@ 2025-05-16 17:20 ` Frank Wunderlich
2025-05-16 22:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 6+ messages in thread
From: Frank Wunderlich @ 2025-05-16 17:20 UTC (permalink / raw)
To: linux, daniel, dqfext, SkyLake.Huang, andrew, hkallweit1, linux,
davem, edumazet, kuba, pabeni, matthias.bgg,
angelogioacchino.delregno
Cc: netdev, linux-kernel, linux-arm-kernel, linux-mediatek
Hi,
i noticed my patch is in state "under review" for 2 days now without any comment and i want to make sure,
it is not missed somehow.
Imho it is a trivial patch (not much complex), unlike many other net patches :)
maybe it still has a chance to get into net-next.
regards Frank
^ permalink raw reply [flat|nested] 6+ messages in thread
* [net-next, PATCH v2] net: phy: mediatek: do not require syscon compatible for pio property
2025-05-16 18:01 [PATCH v2 00/14] further mt7988 devicetree work Frank Wunderlich
@ 2025-05-16 18:01 ` Frank Wunderlich
2025-05-16 18:08 ` Frank Wunderlich
0 siblings, 1 reply; 6+ messages in thread
From: Frank Wunderlich @ 2025-05-16 18:01 UTC (permalink / raw)
To: Andrew Lunn, Vladimir Oltean, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Matthias Brugger, AngeloGioacchino Del Regno,
Daniel Golle, Qingfang Deng, SkyLake Huang, Heiner Kallweit,
Russell King
Cc: devicetree, Landen Chao, Arınç ÜNAL, netdev,
Sean Wang, linux-kernel, linux-mediatek, Lorenzo Bianconi,
linux-arm-kernel, Felix Fietkau
From: Frank Wunderlich <frank-w@public-files.de>
Current implementation requires syscon compatible for pio property
which is used for driving the switch leds on mt7988.
Replace syscon_regmap_lookup_by_phandle with of_parse_phandle and
device_node_to_regmap to get the regmap already assigned by pinctrl
driver.
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
v2:
- out of RFC
---
drivers/net/phy/mediatek/mtk-ge-soc.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/net/phy/mediatek/mtk-ge-soc.c b/drivers/net/phy/mediatek/mtk-ge-soc.c
index 175cf5239bba..21975ef946d5 100644
--- a/drivers/net/phy/mediatek/mtk-ge-soc.c
+++ b/drivers/net/phy/mediatek/mtk-ge-soc.c
@@ -7,6 +7,7 @@
#include <linux/pinctrl/consumer.h>
#include <linux/phy.h>
#include <linux/regmap.h>
+#include <linux/of.h>
#include "../phylib.h"
#include "mtk.h"
@@ -1319,6 +1320,7 @@ static int mt7988_phy_probe_shared(struct phy_device *phydev)
{
struct device_node *np = dev_of_node(&phydev->mdio.bus->dev);
struct mtk_socphy_shared *shared = phy_package_get_priv(phydev);
+ struct device_node *pio_np;
struct regmap *regmap;
u32 reg;
int ret;
@@ -1336,7 +1338,13 @@ static int mt7988_phy_probe_shared(struct phy_device *phydev)
* The 4 bits in TPBANK0 are kept as package shared data and are used to
* set LED polarity for each of the LED0.
*/
- regmap = syscon_regmap_lookup_by_phandle(np, "mediatek,pio");
+ pio_np = of_parse_phandle(np, "mediatek,pio", 0);
+ if (!pio_np)
+ return -ENODEV;
+
+ regmap = device_node_to_regmap(pio_np);
+ of_node_put(pio_np);
+
if (IS_ERR(regmap))
return PTR_ERR(regmap);
--
2.43.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [net-next, PATCH v2] net: phy: mediatek: do not require syscon compatible for pio property
2025-05-16 18:01 ` [net-next, PATCH v2] net: phy: mediatek: do not require syscon compatible for pio property Frank Wunderlich
@ 2025-05-16 18:08 ` Frank Wunderlich
2025-05-16 23:31 ` Jakub Kicinski
0 siblings, 1 reply; 6+ messages in thread
From: Frank Wunderlich @ 2025-05-16 18:08 UTC (permalink / raw)
To: Frank Wunderlich, Andrew Lunn, Vladimir Oltean, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Daniel Golle, Qingfang Deng,
SkyLake Huang, Heiner Kallweit, Russell King
Cc: Arınç ÜNAL, Landen Chao, Sean Wang,
Lorenzo Bianconi, Felix Fietkau, netdev, devicetree, linux-kernel,
linux-arm-kernel, linux-mediatek
Sorry, resent it by accident while sending v2 of my dts series.
regards Frank
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [net-next, PATCH v2] net: phy: mediatek: do not require syscon compatible for pio property
2025-05-10 17:49 [net-next, PATCH v2] net: phy: mediatek: do not require syscon compatible for pio property Frank Wunderlich
2025-05-16 17:20 ` Aw: " Frank Wunderlich
@ 2025-05-16 22:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 6+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-05-16 22:50 UTC (permalink / raw)
To: Frank Wunderlich
Cc: andrew, linux-kernel, SkyLake.Huang, netdev, linux, daniel,
dqfext, edumazet, linux-mediatek, linux-arm-kernel, matthias.bgg,
kuba, pabeni, davem, angelogioacchino.delregno, hkallweit1
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sat, 10 May 2025 19:49:32 +0200 you wrote:
> From: Frank Wunderlich <frank-w@public-files.de>
>
> Current implementation requires syscon compatible for pio property
> which is used for driving the switch leds on mt7988.
>
> Replace syscon_regmap_lookup_by_phandle with of_parse_phandle and
> device_node_to_regmap to get the regmap already assigned by pinctrl
> driver.
>
> [...]
Here is the summary with links:
- [net-next,v2] net: phy: mediatek: do not require syscon compatible for pio property
https://git.kernel.org/netdev/net-next/c/15d7b3dfafa9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [net-next, PATCH v2] net: phy: mediatek: do not require syscon compatible for pio property
2025-05-16 18:08 ` Frank Wunderlich
@ 2025-05-16 23:31 ` Jakub Kicinski
0 siblings, 0 replies; 6+ messages in thread
From: Jakub Kicinski @ 2025-05-16 23:31 UTC (permalink / raw)
To: Frank Wunderlich
Cc: Frank Wunderlich, Andrew Lunn, Vladimir Oltean, David S. Miller,
Eric Dumazet, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Matthias Brugger, AngeloGioacchino Del Regno,
Daniel Golle, Qingfang Deng, SkyLake Huang, Heiner Kallweit,
Russell King, Arınç ÜNAL, Landen Chao, Sean Wang,
Lorenzo Bianconi, Felix Fietkau, netdev, devicetree, linux-kernel,
linux-arm-kernel, linux-mediatek
On Fri, 16 May 2025 20:08:47 +0200 Frank Wunderlich wrote:
> Sorry, resent it by accident while sending v2 of my dts series.
> regards Frank
Unfortunately patchwork thought this is patch 1 of the series instead
of the bindings patch :(
Let's wait for binding reviews and maybe you could repost patches 1-3
for net-next without the dts ones?
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-05-16 23:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-10 17:49 [net-next, PATCH v2] net: phy: mediatek: do not require syscon compatible for pio property Frank Wunderlich
2025-05-16 17:20 ` Aw: " Frank Wunderlich
2025-05-16 22:50 ` patchwork-bot+netdevbpf
-- strict thread matches above, loose matches on Subject: below --
2025-05-16 18:01 [PATCH v2 00/14] further mt7988 devicetree work Frank Wunderlich
2025-05-16 18:01 ` [net-next, PATCH v2] net: phy: mediatek: do not require syscon compatible for pio property Frank Wunderlich
2025-05-16 18:08 ` Frank Wunderlich
2025-05-16 23:31 ` Jakub Kicinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).