Commit a1c38a4a authored by Ishizaki Kou's avatar Ishizaki Kou Committed by Jeff Garzik

spidernet: remove unnecessary accesses to phy

This patch removes unnecessary accesses to phy registers.
Signed-off-by: default avatarKou Ishizaki <kou.ishizaki@toshiba.co.jp>
Signed-off-by: default avatarLinas Vepstas <linas@austin.ibm.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 491976b2
...@@ -175,11 +175,9 @@ spider_net_setup_aneg(struct spider_net_card *card) ...@@ -175,11 +175,9 @@ spider_net_setup_aneg(struct spider_net_card *card)
{ {
struct mii_phy *phy = &card->phy; struct mii_phy *phy = &card->phy;
u32 advertise = 0; 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); 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); estat = spider_net_read_phy(card->netdev, phy->mii_id, MII_ESTATUS);
if (bmsr & BMSR_10HALF) if (bmsr & BMSR_10HALF)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment