[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1654680790.git.lukas@wunner.de>
Date: Wed, 8 Jun 2022 11:52:10 +0200
From: Lukas Wunner <lukas@...ner.de>
To: "David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Eric Dumazet <edumazet@...gle.com>,
Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Thomas Gleixner <tglx@...utronix.de>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Len Brown <len.brown@...el.com>, Pavel Machek <pavel@....cz>
Cc: netdev@...r.kernel.org,
Steve Glendinning <steve.glendinning@...well.net>,
UNGLinuxDriver@...rochip.com, Oliver Neukum <oneukum@...e.com>,
Andre Edich <andre.edich@...rochip.com>,
Oleksij Rempel <linux@...pel-privat.de>,
Martyn Welch <martyn.welch@...labora.com>,
Gabriel Hojda <ghojda@...urs.ro>,
Christoph Fritz <chf.fritz@...glemail.com>,
Lino Sanfilippo <LinoSanfilippo@....de>,
Philipp Rosenberger <p.rosenberger@...bus.com>,
Ferry Toth <fntoth@...il.com>,
Krzysztof Kozlowski <krzk@...nel.org>,
linux-samsung-soc@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-pm@...r.kernel.org
Subject: [PATCH net v2 0/1] PHY interruptus horribilis
Andrew Lunn (PHY maintainer) asked me to resend this patch and cc the
IRQ maintainer. I'm also cc'ing PM maintainers for good measure.
The patch addresses an issue with PHY interrupts occurring during a
system sleep transition after the PHY has already been suspended.
The IRQ subsystem uses an internal flag IRQD_WAKEUP_ARMED to avoid
handling such interrupts, but it's not set until suspend_device_irqs()
is called during the ->suspend_noirq() phase. That's too late in this
case as PHYs are suspended in the ->suspend() phase. And there's
no external interface to set the flag earlier.
As I'm lacking access to the flag, I'm open coding its functionality
in this patch. Is this the correct approach or should I instead look
into providing an external interface to the flag?
Side note: suspend_device_irqs() and resume_device_irqs() have been
exported since forever even though there's no module user...
Thanks!
Changes since v1:
* Extend rationale in the commit message.
* Drop Fixes tag, add Tested-by tag (Marek).
Link to v1:
https://lore.kernel.org/netdev/688f559346ea747d3b47a4d16ef8277e093f9ebe.1653556322.git.lukas@wunner.de/
Lukas Wunner (1):
net: phy: Don't trigger state machine while in suspend
drivers/net/phy/phy.c | 23 +++++++++++++++++++++++
drivers/net/phy/phy_device.c | 23 +++++++++++++++++++++++
include/linux/phy.h | 6 ++++++
3 files changed, 52 insertions(+)
--
2.35.2
Powered by blists - more mailing lists