[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAGCDX1=iVH_JRq_QzrEqMnX31fBSgV9kpvsw8NP1raJR88O55g@mail.gmail.com>
Date: Mon, 2 Apr 2012 16:16:12 +0800
From: lin jason <kernel.jason@...il.com>
To: netdev@...r.kernel.org
Subject: How to enable phy's interrupt correctly using phylib?
Dear:
The design is a MAC connected to a Marvell phy.
Phy's interrupt will be triggered for some conditions, like link status changed,
and then it will trigger MAC's interrupt.
But phy itself has no direct interrupt connected to CPU.
I used phylib to implement the network driver (MAC driver).
When link status changed, I need to do something in MAC's irq.
In linux 2.6.36, I used phy_enable_interrupts() in MAC driver.
But after linux 2.6.37, this function is not used directly by any drivers.
Interrupt connection:
PHY ------> MAC ------> CPU
How to enable phy's interrupt correctly using phylib?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists