summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/marvell.c
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2009-04-07 04:01:42 +0200
committerDavid S. Miller <davem@davemloft.net>2009-04-13 23:51:23 +0200
commita8729eb302a5b5da8b0b4d29582c42648a2e0f12 (patch)
tree88af13216c6c7ae1b7a802e65996f6a0db447a4b /drivers/net/phy/marvell.c
parentphylib: Basic support for the M88E1121R Marvell chip (diff)
downloadlinux-a8729eb302a5b5da8b0b4d29582c42648a2e0f12.tar.xz
linux-a8729eb302a5b5da8b0b4d29582c42648a2e0f12.zip
phylib: Allow early-out in phy_change
Marvell 88E1121R Dual PHY device can be hardware-configured to use shared interrupt pin for both PHY ports. For such PHY configurations using shared PHY interrupt phy_interrupt() handler will also schedule a work for PHY port which didn't cause an interrupt. This patch adds a possibility for PHY drivers to provide did_interrupt() function which reports if the PHY (or a PHY port in a multi-PHY device) generated an interrupt. This function is called in phy_change() as phy_change() shouldn't proceed if it is invoked for a PHY which didn't cause an interrupt. So check for interrupt originator in phy_change() to allow early-out. Signed-off-by: Anatolij Gustschin <agust@denx.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/marvell.c')
0 files changed, 0 insertions, 0 deletions