Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18273
b: refs/heads/master
c: 4d3248a
h: refs/heads/master
i:
  18271: 08b2406
v: v3
  • Loading branch information
Kumar Gala authored and Jeff Garzik committed Jan 12, 2006
1 parent 6c66004 commit ab0a416
Show file tree
Hide file tree
Showing 3 changed files with 7 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: a4d00f179fcec7065fe5742e9cebd6500886070f
refs/heads/master: 4d3248a29cb78b31bb0520eb99b4be620e810a40
5 changes: 4 additions & 1 deletion trunk/drivers/net/gianfar.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,15 @@ static int init_phy(struct net_device *dev)
priv->einfo->device_flags & FSL_GIANFAR_DEV_HAS_GIGABIT ?
SUPPORTED_1000baseT_Full : 0;
struct phy_device *phydev;
char phy_id[BUS_ID_SIZE];

priv->oldlink = 0;
priv->oldspeed = 0;
priv->oldduplex = -1;

phydev = phy_connect(dev, priv->einfo->bus_id, &adjust_link, 0);
snprintf(phy_id, BUS_ID_SIZE, PHY_ID_FMT, priv->einfo->bus_id, priv->einfo->phy_id);

phydev = phy_connect(dev, phy_id, &adjust_link, 0);

if (IS_ERR(phydev)) {
printk(KERN_ERR "%s: Could not attach to PHY\n", dev->name);
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/linux/fsl_devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ struct gianfar_platform_data {

/* board specific information */
u32 board_flags;
const char *bus_id;
u32 bus_id;
u32 phy_id;
u8 mac_addr[6];
};

Expand Down

0 comments on commit ab0a416

Please sign in to comment.