Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1469760
| From | Xander Huff <xander.huff@ni.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2] Revert "phy: IRQ cannot be shared" |
| Date | 2016-08-25 00:10 +0200 |
| Message-ID | <s9OwV-dA-13@gated-at.bofh.it> (permalink) |
| References | <s9Lpn-69M-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This reverts:
commit 33c133cc7598 ("phy: IRQ cannot be shared")
On hardware with multiple PHY devices hooked up to the same IRQ line, allow
them to share it.
Sergei Shtylyov says:
"I'm not sure now what was the reason I concluded that the IRQ sharing
was impossible... most probably I thought that the kernel IRQ handling
code exited the loop over the IRQ actions once IRQ_HANDLED was returned
-- which is obviously not so in reality..."
Signed-off-by: Xander Huff <xander.huff@ni.com>
Signed-off-by: Nathan Sullivan <nathan.sullivan@ni.com>
---
Note: this reverted code fails "CHECK: Alignment should match open
parentesis"
---
drivers/net/phy/phy.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index c5dc2c36..c6f6683 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -722,8 +722,10 @@ phy_err:
int phy_start_interrupts(struct phy_device *phydev)
{
atomic_set(&phydev->irq_disable, 0);
- if (request_irq(phydev->irq, phy_interrupt, 0, "phy_interrupt",
- phydev) < 0) {
+ if (request_irq(phydev->irq, phy_interrupt,
+ IRQF_SHARED,
+ "phy_interrupt",
+ phydev) < 0) {
pr_warn("%s: Can't get IRQ %d (PHY)\n",
phydev->mdio.bus->name, phydev->irq);
phydev->irq = PHY_POLL;
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] phy: request shared IRQ Xander Huff <xander.huff@ni.com> - 2016-08-24 20:00 +0200
Re: [PATCH] phy: request shared IRQ Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-08-24 20:50 +0200
Re: [PATCH] phy: request shared IRQ Xander Huff <xander.huff@ni.com> - 2016-08-25 00:10 +0200
[PATCH v2] Revert "phy: IRQ cannot be shared" Xander Huff <xander.huff@ni.com> - 2016-08-25 00:10 +0200
Re: [PATCH v2] Revert "phy: IRQ cannot be shared" David Miller <davem@redhat.com> - 2016-08-26 02:20 +0200
csiph-web