netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] phy: IRQ cannot be shared
@ 2013-12-20 19:09 Sergei Shtylyov
  2013-12-20 18:24 ` Florian Fainelli
  0 siblings, 1 reply; 5+ messages in thread
From: Sergei Shtylyov @ 2013-12-20 19:09 UTC (permalink / raw)
  To: netdev

With the way PHY IRQ handler is implemented (all real handling being pushed to
the workqueue and returning IRQ_HANDLED all the time PHY is active), we cannot
really claim that PHY IRQ can be shared when calling request_irq().  

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
The patch is against DaveM's 'net.git' repo.
I recommend pushing it to the stable kernels as well.

 drivers/net/phy/phy.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Index: net/drivers/net/phy/phy.c
===================================================================
--- net.orig/drivers/net/phy/phy.c
+++ net/drivers/net/phy/phy.c
@@ -565,10 +565,8 @@ int phy_start_interrupts(struct phy_devi
 	int err = 0;
 
 	atomic_set(&phydev->irq_disable, 0);
-	if (request_irq(phydev->irq, phy_interrupt,
-				IRQF_SHARED,
-				"phy_interrupt",
-				phydev) < 0) {
+	if (request_irq(phydev->irq, phy_interrupt, 0, "phy_interrupt",
+			phydev) < 0) {
 		pr_warn("%s: Can't get IRQ %d (PHY)\n",
 			phydev->bus->name, phydev->irq);
 		phydev->irq = PHY_POLL;

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-12-30  3:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-20 19:09 [PATCH] phy: IRQ cannot be shared Sergei Shtylyov
2013-12-20 18:24 ` Florian Fainelli
2013-12-27 18:43   ` David Miller
2013-12-27 19:53     ` Sergei Shtylyov
2013-12-30  3:35       ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).