From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Jakub Kicinski <kuba@kernel.org>
Cc: Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
linux-arm-kernel@lists.infradead.org,
linux-stm32@st-md-mailman.stormreply.com,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
netdev@vger.kernel.org, Paolo Abeni <pabeni@redhat.com>,
Richard Cochran <richardcochran@gmail.com>
Subject: Re: [PATCH net-next 0/8] net: stmmac: hwif.c cleanups
Date: Tue, 28 Oct 2025 23:54:57 +0000 [thread overview]
Message-ID: <aQFX0cdyCHLHIquB@shell.armlinux.org.uk> (raw)
In-Reply-To: <20251028164257.067bdbcd@kernel.org>
On Tue, Oct 28, 2025 at 04:42:57PM -0700, Jakub Kicinski wrote:
> On Fri, 24 Oct 2025 13:48:23 +0100 Russell King (Oracle) wrote:
> > This series cleans up hwif.c:
> >
> > - move the reading of the version information out of stmmac_hwif_init()
> > into its own function, stmmac_get_version(), storing the result in a
> > new struct.
> >
> > - simplify stmmac_get_version().
> >
> > - read the version register once, passing it to stmmac_get_id() and
> > stmmac_get_dev_id().
> >
> > - move stmmac_get_id() and stmmac_get_dev_id() into
> > stmmac_get_version()
> >
> > - define version register fields and use FIELD_GET() to decode
> >
> > - start tackling the big loop in stmmac_hwif_init() - provide a
> > function, stmmac_hwif_find(), which looks up the hwif entry, thus
> > making a much smaller loop, which improves readability of this code.
> >
> > - change the use of '^' to '!=' when comparing the dev_id, which is
> > what is really meant here.
> >
> > - reorganise the test after calling stmmac_hwif_init() so that we
> > handle the error case in the indented code, and the success case
> > with no indent, which is the classical arrangement.
>
> This one needs a respin (patch 6 vs your IRQ masking changes?).
Are you sure? Nothing came up in the re-base, and nothing was reported
in PW.
--
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-10-28 23:55 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-24 12:48 [PATCH net-next 0/8] net: stmmac: hwif.c cleanups Russell King (Oracle)
2025-10-24 12:49 ` [PATCH net-next v2 1/8] net: stmmac: move version handling into own function Russell King (Oracle)
2025-10-24 12:49 ` [PATCH net-next v2 2/8] net: stmmac: simplify stmmac_get_version() Russell King (Oracle)
2025-10-24 12:49 ` [PATCH net-next v2 3/8] net: stmmac: consolidate version reading and validation Russell King (Oracle)
2025-10-24 12:49 ` [PATCH net-next v2 4/8] net: stmmac: move stmmac_get_*id() into stmmac_get_version() Russell King (Oracle)
2025-10-24 12:49 ` [PATCH net-next v2 5/8] net: stmmac: use FIELD_GET() for version register Russell King (Oracle)
2025-10-24 12:49 ` [PATCH net-next v2 6/8] net: stmmac: provide function to lookup hwif Russell King (Oracle)
2025-10-24 12:49 ` [PATCH net-next v2 7/8] net: stmmac: use != rather than ^ for comparing dev_id Russell King (Oracle)
2025-10-24 12:49 ` [PATCH net-next v2 8/8] net: stmmac: reorganise stmmac_hwif_init() Russell King (Oracle)
2025-10-24 20:22 ` [PATCH net-next 0/8] net: stmmac: hwif.c cleanups Mohd Ayaan Anwar
2025-10-28 23:42 ` Jakub Kicinski
2025-10-28 23:54 ` Russell King (Oracle) [this message]
2025-10-28 23:57 ` Russell King (Oracle)
2025-10-29 0:10 ` Jakub Kicinski
-- strict thread matches above, loose matches on Subject: below --
2025-10-23 9:36 Russell King (Oracle)
2025-10-24 6:44 ` Maxime Chevallier
2025-10-24 10:48 ` Russell King (Oracle)
2025-10-24 10:53 ` Maxime Chevallier
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=aQFX0cdyCHLHIquB@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.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.