Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287689
b: refs/heads/master
c: b0c06e1
h: refs/heads/master
i:
  287687: a459fbb
v: v3
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Feb 13, 2012
1 parent 33df19a commit ac164c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: ea51ade9398f3c94f63a25f512445ee7cbbbf284
refs/heads/master: b0c06e12b6f1dad480c459ddc5412a0fd8582201
4 changes: 2 additions & 2 deletions trunk/drivers/net/ethernet/octeon/octeon_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,15 +670,15 @@ static void octeon_mgmt_adjust_link(struct net_device *netdev)
static int octeon_mgmt_init_phy(struct net_device *netdev)
{
struct octeon_mgmt *p = netdev_priv(netdev);
char phy_id[20];
char phy_id[MII_BUS_ID_SIZE + 3];

if (octeon_is_simulation()) {
/* No PHYs in the simulator. */
netif_carrier_on(netdev);
return 0;
}

snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, "0", p->port);
snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, "mdio-octeon-0", p->port);

p->phydev = phy_connect(netdev, phy_id, octeon_mgmt_adjust_link, 0,
PHY_INTERFACE_MODE_MII);
Expand Down

0 comments on commit ac164c0

Please sign in to comment.