From: Andy Fleming <afleming@freescale.com>
To: Andy Fleming <afleming@freescale.com>
Cc: steve.glendinning@smsc.com, netdev@vger.kernel.org
Subject: Re: phylib interrupt question
Date: Fri, 6 Jun 2008 12:19:02 -0500 [thread overview]
Message-ID: <8FE9058F-AE56-40FF-A91F-125C18949D83@freescale.com> (raw)
In-Reply-To: <4B4372CF-7AE3-40B2-980D-4D65637E7382@freescale.com>
On Jun 6, 2008, at 12:11, Andy Fleming wrote:
>
> On Jun 6, 2008, at 11:07, steve.glendinning@smsc.com wrote:
>
>> Hi everybody,
>>
>> I'm converting an ethernet driver to use phylib, and I have an
>> interrupt
>> question. My device is an integrated mac/phy, with the option to
>> disable
>> the internal phy and use an external phy instead. I've succesfully
>> used
>> phylib in polling mode, but I'd like to convert this to be
>> interrupt-driven if possible.
>>
>> When using the internal phy, it can raise interrupts via the mac (by
>> setting a "phy interrupt" bit in the mac's interrupt status
>> register). Is
>> there a way of signalling this phy interrupt to phylib from my mac
>> driver's isr? Phylib seems to want to connect to a real irq?
>
> Hm. Looks like one of the features of Phylib got accidentally
> dropped. However, it's a simple 2-line fix which I'm about to submit.
D'oh, I'm totally wrong about that being a bug. Both of the places
that check phydev->irq != PHY_POLL are valid. Good news is: that
means you don't need to wait for a patch!
Andy
next prev parent reply other threads:[~2008-06-06 17:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-06 16:07 phylib interrupt question Steve.Glendinning
2008-06-06 17:11 ` Andy Fleming
2008-06-06 17:19 ` Andy Fleming [this message]
2008-06-20 20:34 ` Trent Piepho
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=8FE9058F-AE56-40FF-A91F-125C18949D83@freescale.com \
--to=afleming@freescale.com \
--cc=netdev@vger.kernel.org \
--cc=steve.glendinning@smsc.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