From: Kory Maincent <kory.maincent@bootlin.com>
To: "Kory Maincent (Dent Project)" <kory.maincent@bootlin.com>,
Oleksij Rempel <o.rempel@pengutronix.de>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: thomas.petazzoni@bootlin.com, Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>
Subject: [PATCH net-next] net: pse-pd: fix bogus budget evaluation strategy check in IRQ handler
Date: Thu, 26 Nov 2026 15:30:02 +0100 [thread overview]
Message-ID: <20261126143012.1595919-1-kory.maincent@bootlin.com> (raw)
pse_set_config_isr() wrongly tested the PSE event notification bitmask
against PSE_BUDGET_EVAL_STRAT_DYNAMIC, a budget evaluation strategy
constant that has nothing to do with event notifications.
The mistake went unnoticed because ETHTOOL_C33_PSE_EVENT_DETECTION and
PSE_BUDGET_EVAL_STRAT_DYNAMIC are both BIT(2) and, when only the
detection event is reported, the function performs no action anyway.
The check does not prevent the TPS23881 from working properly, but when
a controller reports the detection event together with other events,
the whole notification handling is skipped instead of processed.
Remove this bogus check.
Fixes: ffef61d6d2737 ("net: pse-pd: Add support for budget evaluation strategies")
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
---
Found this issue while developing the support for the TPS23861 version of
the controller.
As the TPS23881 driver (the only user of this path) works fine with this
bogus check, I am sending the fix to net-next.
If any developer of the SUIE or Sashiko passes by, I would like to point
out that all my PSE patches and fixes are registered under the DENT
company, which is wrong as I am not working for them anymore.
---
drivers/net/pse-pd/pse_core.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/net/pse-pd/pse_core.c b/drivers/net/pse-pd/pse_core.c
index a3d4a3d7e5257..59cc0dcfa2a4b 100644
--- a/drivers/net/pse-pd/pse_core.c
+++ b/drivers/net/pse-pd/pse_core.c
@@ -1205,9 +1205,6 @@ static int pse_set_config_isr(struct pse_controller_dev *pcdev, int id,
{
int ret = 0;
- if (notifs & PSE_BUDGET_EVAL_STRAT_DYNAMIC)
- return 0;
-
if ((notifs & ETHTOOL_C33_PSE_EVENT_DISCONNECTION) &&
((notifs & ETHTOOL_C33_PSE_EVENT_DETECTION) ||
(notifs & ETHTOOL_C33_PSE_EVENT_CLASSIFICATION))) {
--
2.43.0
reply other threads:[~2026-11-26 14:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261126143012.1595919-1-kory.maincent@bootlin.com \
--to=kory.maincent@bootlin.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
--cc=pabeni@redhat.com \
--cc=thomas.petazzoni@bootlin.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®