mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-20 07:34:42 +02:00
ramips: raeth: force link down in ramips_phy_stop
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30550 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
815334db9c
commit
d0794e0d35
@ -424,14 +424,13 @@ 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user