Skip to content

Commit

Permalink
ENGR00320136 net: fec: fix rcv is not last issue when do suspend/resu…
Browse files Browse the repository at this point in the history
…me test

When do suspend/resume stress test, some log shows "rcv is not +last".
The issue is that enet suspend will disable phy clock, phy link down,
after resume back, enet MAC redo initial and ready to tx/rx packet,
but phy still is not ready which is doing auto-negotiation. When phy
link is not up, don't schdule napi soft irq.

Signed-off-by: Fugang Duan <B38611@freescale.com>
  • Loading branch information
Fugang Duan authored and Nitin Garg committed Aug 27, 2014
1 parent 75c407f commit 61b16b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/freescale/fec_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,7 @@ fec_enet_interrupt(int irq, void *dev_id)
fep->work_ts = 0;
}

if (fep->work_tx || fep->work_rx) {
if ((fep->work_tx || fep->work_rx) && fep->link) {
ret = IRQ_HANDLED;

/* Disable the RX interrupt */
Expand Down

0 comments on commit 61b16b3

Please sign in to comment.