ramips: raeth: force link down in ramips_phy_stop

SVN-Revision: 30550
This commit is contained in:
Gabor Juhos 2012-02-15 13:47:52 +00:00
parent 3e7b461431
commit b3b79365f3

View file

@ -424,15 +424,14 @@ ramips_phy_stop(struct raeth_priv *re)
{ {
unsigned long flags; unsigned long flags;
if (re->phy_dev) { if (re->phy_dev)
phy_stop(re->phy_dev); phy_stop(re->phy_dev);
} else {
spin_lock_irqsave(&re->phy_lock, flags); spin_lock_irqsave(&re->phy_lock, flags);
re->link = 0; re->link = 0;
ramips_link_adjust(re); ramips_link_adjust(re);
spin_unlock_irqrestore(&re->phy_lock, flags); spin_unlock_irqrestore(&re->phy_lock, flags);
} }
}
#else #else
static inline int static inline int
ramips_mdio_init(struct raeth_priv *re) ramips_mdio_init(struct raeth_priv *re)