[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAGCDX1krdFtNF0+AP8EyS58v6+VgQGVXjDJtLeM2ixsO8Ee+Eg@mail.gmail.com>
Date: Mon, 2 Apr 2012 16:41:12 +0800
From: lin jason <kernel.jason@...il.com>
To: netdev@...r.kernel.org
Subject: [RFC] How to enable phy's interrupt correctly using phylib?
Dear:
Sorry for the previous message with no category.
------------------------------------------------------------------------------------
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
Maybe you can use phy_start_interrupts().
But the phy has no interrupt connected to CPU,
it will failed when request_irq().
And it will not execute phy_enable_interrupts(phydev).
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