diff options
author | Zeng Zhaoming <b32542@freescale.com> | 2010-12-14 11:43:21 +0800 |
---|---|---|
committer | Zeng Zhaoming <b32542@freescale.com> | 2010-12-14 11:43:21 +0800 |
commit | a7d0bcf12db5915b4a083ea0023f8cadec1690d9 (patch) | |
tree | b84401aec239c1d30b3d47cfda73dcd27f4c87e9 | |
parent | c6b55f9d8b751ee7e5a6232dac5a5e3dc9c344a5 (diff) |
ENGR00136942 FEC: Fix resume fec trigger transmit timeout
Set carrier flag to off when suspend,
to avoid kernel warning about sending timeout.
Reported-by: Peter Chen <peter.chen@freescale.com>
Tested-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
-rw-r--r-- | drivers/net/fec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c index 2f159b56fc67..d0e2e690b66e 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -1608,7 +1608,8 @@ fec_suspend(struct platform_device *dev, pm_message_t state) if (netif_running(ndev)) { netif_device_detach(ndev); fec_stop(ndev); - clk_disable(fep->clk); + netif_carrier_off(ndev); + clk_disable(fep->clk); } } return 0; |