mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
spidernet: remove unnecessary accesses to phy
This patch removes unnecessary accesses to phy registers. Signed-off-by: Kou Ishizaki <[email protected]> Signed-off-by: Linas Vepstas <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
491976b2bc
commit
a1c38a4a5d
1 changed files with 3 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue