Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56221
b: refs/heads/master
c: a1c38a4
h: refs/heads/master
i:
  56219: 5b2b50b
v: v3
  • Loading branch information
Ishizaki Kou authored and Jeff Garzik committed May 11, 2007
1 parent 79e5d57 commit eaa60aa
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 491976b2bce07f2c44e32a987fa6eb9edf8b0aeb
refs/heads/master: a1c38a4a5dd36487b65c4b48e37ecfdd080817f3
8 changes: 3 additions & 5 deletions trunk/drivers/net/spider_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,10 @@ spider_net_setup_aneg(struct spider_net_card *card)
{
struct mii_phy *phy = &card->phy;
u32 advertise = 0;
u16 bmcr, bmsr, stat1000, estat;
u16 bmsr, estat;

bmcr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMCR);
bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR);
stat1000 = spider_net_read_phy(card->netdev, phy->mii_id, MII_STAT1000);
estat = spider_net_read_phy(card->netdev, phy->mii_id, MII_ESTATUS);
bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR);
estat = spider_net_read_phy(card->netdev, phy->mii_id, MII_ESTATUS);

if (bmsr & BMSR_10HALF)
advertise |= ADVERTISED_10baseT_Half;
Expand Down

0 comments on commit eaa60aa

Please sign in to comment.