Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143435
b: refs/heads/master
c: dcd07be
h: refs/heads/master
i:
  143433: b760c21
  143431: 1af3ad9
v: v3
  • Loading branch information
Anatolij Gustschin authored and David S. Miller committed Apr 13, 2009
1 parent fa7cfb1 commit c03e64c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8729eb302a5b5da8b0b4d29582c42648a2e0f12
refs/heads/master: dcd07be3ffab7d20f4d498369e7526f6f4945257
13 changes: 13 additions & 0 deletions trunk/drivers/net/phy/marvell.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,18 @@ static int marvell_read_status(struct phy_device *phydev)
return 0;
}

static int m88e1121_did_interrupt(struct phy_device *phydev)
{
int imask;

imask = phy_read(phydev, MII_M1011_IEVENT);

if (imask & MII_M1011_IMASK_INIT)
return 1;

return 0;
}

static struct phy_driver marvell_drivers[] = {
{
.phy_id = 0x01410c60,
Expand Down Expand Up @@ -520,6 +532,7 @@ static struct phy_driver marvell_drivers[] = {
.read_status = &marvell_read_status,
.ack_interrupt = &marvell_ack_interrupt,
.config_intr = &marvell_config_intr,
.did_interrupt = &m88e1121_did_interrupt,
.driver = { .owner = THIS_MODULE },
},
{
Expand Down

0 comments on commit c03e64c

Please sign in to comment.