How to enable phy's interrupt correctly using phylib?
From: lin jason <hidden>
Date: 2012-04-02 08:16:12
From: lin jason <hidden>
Date: 2012-04-02 08:16:12
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?