Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103102
b: refs/heads/master
c: aa1eb45
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks authored and Jeff Garzik committed Jun 25, 2008
1 parent 8ce3513 commit 50b9deb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: f8d79e79a1700fdcf26a1dfcaefad905b1279600
refs/heads/master: aa1eb452e8d8a97ee65ace0054e7a733ae12cf6d
9 changes: 8 additions & 1 deletion trunk/drivers/net/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,14 @@ static int dm9000_nway_reset(struct net_device *dev)
static u32 dm9000_get_link(struct net_device *dev)
{
board_info_t *dm = to_dm9000_board(dev);
return mii_link_ok(&dm->mii);
u32 ret;

if (dm->flags & DM9000_PLATF_EXT_PHY)
ret = mii_link_ok(&dm->mii);
else
ret = dm9000_read_locked(dm, DM9000_NSR) & NSR_LINKST ? 1 : 0;

return ret;
}

#define DM_EEPROM_MAGIC (0x444D394B)
Expand Down

0 comments on commit 50b9deb

Please sign in to comment.