From: "Sverdlin, Alexander" <alexander.sverdlin@siemens.com>
To: "hauke@hauke-m.de" <hauke@hauke-m.de>,
"olteanv@gmail.com" <olteanv@gmail.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"andrew@lunn.ch" <andrew@lunn.ch>,
"linux@armlinux.org.uk" <linux@armlinux.org.uk>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"daniel@makrotopia.org" <daniel@makrotopia.org>,
"kuba@kernel.org" <kuba@kernel.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"edumazet@google.com" <edumazet@google.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Cc: "john@phrozen.org" <john@phrozen.org>,
"Stockmann, Lukas" <lukas.stockmann@siemens.com>,
"yweng@maxlinear.com" <yweng@maxlinear.com>,
"fchan@maxlinear.com" <fchan@maxlinear.com>,
"lxu@maxlinear.com" <lxu@maxlinear.com>,
"jpovazanec@maxlinear.com" <jpovazanec@maxlinear.com>,
"Schirm, Andreas" <andreas.schirm@siemens.com>,
"Christen, Peter" <peter.christen@siemens.com>,
"ajayaraman@maxlinear.com" <ajayaraman@maxlinear.com>,
"bxu@maxlinear.com" <bxu@maxlinear.com>,
"lrosu@maxlinear.com" <lrosu@maxlinear.com>
Subject: Re: [PATCH net-next 5/6] net: dsa: lantiq_gswip: support standard MDIO node name
Date: Tue, 26 Aug 2025 07:23:23 +0000 [thread overview]
Message-ID: <c627bfef02dfd670ef1c07267f53468ca1c3df72.camel@siemens.com> (raw)
In-Reply-To: <6f4b14df1eef78c09481784555a911b7505d1943.1756163848.git.daniel@makrotopia.org>
Hi!
On Tue, 2025-08-26 at 01:14 +0100, Daniel Golle wrote:
> Instead of matching against the child node's compatible string also
> support locating the node of the device tree node of the MDIO bus
> in the standard way by referencing the node name ("mdio").
>
> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
> ---
> drivers/net/dsa/lantiq_gswip.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/dsa/lantiq_gswip.c b/drivers/net/dsa/lantiq_gswip.c
> index f9b03fb5f57b..23b68047f3c4 100644
> --- a/drivers/net/dsa/lantiq_gswip.c
> +++ b/drivers/net/dsa/lantiq_gswip.c
> @@ -286,6 +286,9 @@ static int gswip_mdio(struct gswip_priv *priv)
> int err = 0;
>
> mdio_np = of_get_compatible_child(switch_np, "lantiq,xrx200-mdio");
> + if (!mdio_np)
> + mdio_np = of_get_child_by_name(switch_np, "mdio");
> +
> if (!of_device_is_available(mdio_np))
> goto out_put_node;
--
Alexander Sverdlin
Siemens AG
www.siemens.com
next prev parent reply other threads:[~2025-08-26 7:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-26 0:11 [PATCH net-next 0/6] net: dsa: lantiq_gswip: prepare for supporting MaxLinear GSW1xx Daniel Golle
2025-08-26 0:12 ` [PATCH net-next 1/6] MAINTAINERS: lantiq_gswip: broaden file pattern Daniel Golle
2025-08-26 1:36 ` Andrew Lunn
2025-08-26 0:12 ` [PATCH net-next 3/6] net: dsa: lantiq_gswip: ignore SerDes modes in phylink_mac_config() Daniel Golle
2025-08-26 0:12 ` [PATCH net-next 2/6] net: dsa: lantiq_gswip: support model-specific mac_select_pcs() Daniel Golle
2025-08-26 19:43 ` kernel test robot
2025-08-26 0:14 ` [PATCH net-next 4/6] net: dsa: lantiq_gswip: support offset of MII registers Daniel Golle
2025-08-26 0:14 ` [PATCH net-next 5/6] net: dsa: lantiq_gswip: support standard MDIO node name Daniel Golle
2025-08-26 1:38 ` Andrew Lunn
2025-08-26 7:23 ` Sverdlin, Alexander [this message]
2025-08-26 0:14 ` [PATCH net-next 6/6] net: dsa: lantiq_gswip: move MDIO bus registration to .setup() Daniel Golle
2025-08-26 1:40 ` Andrew Lunn
2025-08-26 7:30 ` Sverdlin, Alexander
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c627bfef02dfd670ef1c07267f53468ca1c3df72.camel@siemens.com \
--to=alexander.sverdlin@siemens.com \
--cc=ajayaraman@maxlinear.com \
--cc=andreas.schirm@siemens.com \
--cc=andrew@lunn.ch \
--cc=bxu@maxlinear.com \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=fchan@maxlinear.com \
--cc=hauke@hauke-m.de \
--cc=john@phrozen.org \
--cc=jpovazanec@maxlinear.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=lrosu@maxlinear.com \
--cc=lukas.stockmann@siemens.com \
--cc=lxu@maxlinear.com \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=peter.christen@siemens.com \
--cc=yweng@maxlinear.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®