Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266842
b: refs/heads/master
c: a4886d5
h: refs/heads/master
v: v3
  • Loading branch information
Giuseppe CAVALLARO authored and David S. Miller committed Oct 19, 2011
1 parent 1c92784 commit 7457817
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2425717b27eb92b175335ca4ff0bb218cbe0cb64
refs/heads/master: a4886d522e18e5d4a63b95a5ead72f6105e3ef98
13 changes: 8 additions & 5 deletions trunk/drivers/net/phy/icplus.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,15 @@ static int ip1001_config_init(struct phy_device *phydev)
if (c < 0)
return c;

/* Additional delay (2ns) used to adjust RX clock phase
* at GMII/ RGMII interface */
c = phy_read(phydev, IP10XX_SPEC_CTRL_STATUS);
c |= IP1001_PHASE_SEL_MASK;
if (phydev->interface == PHY_INTERFACE_MODE_RGMII) {
/* Additional delay (2ns) used to adjust RX clock phase
* at RGMII interface */
c = phy_read(phydev, IP10XX_SPEC_CTRL_STATUS);
c |= IP1001_PHASE_SEL_MASK;
c = phy_write(phydev, IP10XX_SPEC_CTRL_STATUS, c);
}

return phy_write(phydev, IP10XX_SPEC_CTRL_STATUS, c);
return c;
}

static int ip101a_config_init(struct phy_device *phydev)
Expand Down

0 comments on commit 7457817

Please sign in to comment.