Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150094
b: refs/heads/master
c: c8014fe
h: refs/heads/master
v: v3
  • Loading branch information
Florian Fainelli authored and David S. Miller committed May 5, 2009
1 parent 89a8ab1 commit f8bbe9e
Show file tree
Hide file tree
Showing 2 changed files with 9 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: aee64faf236815e0f337408892c01b373cd340f3
refs/heads/master: c8014fe1d4548da8b9ea54730852c48a7117b03f
8 changes: 8 additions & 0 deletions trunk/drivers/net/r6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,14 @@ static int r6040_up(struct net_device *dev)
struct r6040_private *lp = netdev_priv(dev);
void __iomem *ioaddr = lp->base;
int ret;
u16 val;

/* Check presence of a second PHY */
val = r6040_phy_read(ioaddr, lp->phy_addr, 2);
if (val == 0xFFFF) {
printk(KERN_ERR DRV_NAME " no second PHY attached\n");
return -EIO;
}

/* Initialise and alloc RX/TX buffers */
r6040_init_txbufs(dev);
Expand Down

0 comments on commit f8bbe9e

Please sign in to comment.