From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Andrew Lunn <andrew@lunn.ch>, Andrew Lunn <andrew+netdev@lunn.ch>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Eric Dumazet <edumazet@google.com>,
David Miller <davem@davemloft.net>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
Florian Fainelli <f.fainelli@gmail.com>
Subject: Re: [PATCH v3 net] net: phy: fixed_phy: fix missing calls to gpiod_put in fixed_mdio_bus_exit
Date: Wed, 27 Aug 2025 22:46:46 +0100 [thread overview]
Message-ID: <aK98xjr5bNDpSFtI@shell.armlinux.org.uk> (raw)
In-Reply-To: <78b5c985-9d48-4383-af34-1f8b09d0243d@gmail.com>
On Wed, Aug 27, 2025 at 11:29:43PM +0200, Heiner Kallweit wrote:
> On 8/27/2025 11:09 PM, Russell King (Oracle) wrote:
> > On Wed, Aug 27, 2025 at 11:02:55PM +0200, Heiner Kallweit wrote:
> >> Cleanup in fixed_mdio_bus_exit() misses to call gpiod_put().
> >> Easiest fix is to call fixed_phy_del() for each possible phy address.
> >> This may consume a few cpu cycles more, but is much easier to read.
> >>
> >> Fixes: a5597008dbc2 ("phy: fixed_phy: Add gpio to determine link up/down.")
> >
> > Here's a question that should be considered as well. Do we still need
> > to keep the link-gpios for fixed-phy?
> >
> > $ grep -r link-gpios arch/*/boot/dts/
> > arch/arm/boot/dts/nxp/vf/vf610-zii-dev-rev-b.dts: link-gpios = <&gpio6 2
> > arch/arm/boot/dts/nxp/vf/vf610-zii-dev-rev-b.dts: link-gpios = <&gpio6 3
> >
> > These are used with the mv88e6xxx DSA switch, and DSA being fully
> > converted to phylink, means that fixed-phy isn't used for these
> > link-gpios properties, and hasn't been for some time.
> >
> Means we can remove all "fixed-link" blocks from vf610-zii-dev-rev-b.dts?
phylink has support for it (because phylink needed to be 100%
compatible to avoid regressions!) Thus, there's no need to remove it,
nor drop it from the DT bindings.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
next prev parent reply other threads:[~2025-08-27 21:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-27 21:02 [PATCH v3 net] net: phy: fixed_phy: fix missing calls to gpiod_put in fixed_mdio_bus_exit Heiner Kallweit
2025-08-27 21:09 ` Russell King (Oracle)
2025-08-27 21:14 ` Florian Fainelli
2025-08-27 21:44 ` Russell King (Oracle)
2025-08-27 22:27 ` Andrew Lunn
2025-08-27 21:29 ` Heiner Kallweit
2025-08-27 21:46 ` Russell King (Oracle) [this message]
2025-08-28 10:31 ` Heiner Kallweit
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=aK98xjr5bNDpSFtI@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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 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.