From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: leroy christophe <christophe.leroy@c-s.fr>,
Florian Fainelli <f.fainelli@gmail.com>,
"David S. Miller" <davem@davemloft.net>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
netdev <netdev@vger.kernel.org>
Subject: Re: Issue with commit 33c133cc7598e60976a phy: IRQ cannot be shared
Date: Thu, 14 Aug 2014 15:03:31 +0400 [thread overview]
Message-ID: <53EC9783.3020809@cogentembedded.com> (raw)
In-Reply-To: <53EC57B9.8080903@c-s.fr>
Hello.
On 8/14/2014 10:31 AM, leroy christophe wrote:
> I have an hardware with two ethernet interfaces, and with the two PHYs inside
> the same component INTEL LXT973 which has only one interrupt.
> I also have another hardware with two ethernet interfaces and two independant
> PHYs. But the two PHYs are wired to the same interrupt.
> This is working perfectly up to Linux 3.12.
Hm, I'm surprised it works. Are you sure you're getting interrupts from
both PHYs? Because if both Ethernet controllers are active simultaneously,
only the first registered PHY IRQ handler should get all the interrupts.
> But since your commit, introduced in Linux 3.13, my interfaces don't work
> anymore as the second PHYs can't register IRQ.
Strange too, the phylib should use polling in case request_irq() fails.
> Reading the commit log, I can't really understand the reason for the change.
The shared IRQ handler should check for IRQ from its device and return
IRQ_NONE if there's no IRQ active; phy_interrupt() doesn't do that (this is
pushed to the workqueue).
> Is it really worth it, and therefore how shall my case be handled ?
PHY IRQs are not necessary for the phylib state machine.
> Christophe
WBR, Sergei
next prev parent reply other threads:[~2014-08-14 11:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-14 6:31 Issue with commit 33c133cc7598e60976a phy: IRQ cannot be shared leroy christophe
2014-08-14 11:03 ` Sergei Shtylyov [this message]
2014-08-15 9:10 ` christophe leroy
2014-08-15 13:39 ` Sergei Shtylyov
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=53EC9783.3020809@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=christophe.leroy@c-s.fr \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).