Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30860
b: refs/heads/master
c: 677177c
h: refs/heads/master
v: v3
  • Loading branch information
Philippe De Muyter authored and Linus Torvalds committed Jun 28, 2006
1 parent a6818ef commit 4f24b72
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 67bdd9842430f946213d0482862aae1ed8fd3ad0
refs/heads/master: 677177c5319f7079c22d04926c23b31166d7d405
15 changes: 11 additions & 4 deletions trunk/drivers/net/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* Copyright (c) 2001-2005 Greg Ungerer (gerg@snapgear.com)
*
* Bug fixes and cleanup by Philippe De Muyter (phdm@macqel.be)
* Copyright (c) 2004-2005 Macq Electronique SA.
* Copyright (c) 2004-2006 Macq Electronique SA.
*/

#include <linux/config.h>
Expand Down Expand Up @@ -2420,9 +2420,16 @@ fec_stop(struct net_device *dev)
fep = netdev_priv(dev);
fecp = fep->hwp;

fecp->fec_x_cntrl = 0x01; /* Graceful transmit stop */

while(!(fecp->fec_ievent & FEC_ENET_GRA));
/*
** We cannot expect a graceful transmit stop without link !!!
*/
if (fep->link)
{
fecp->fec_x_cntrl = 0x01; /* Graceful transmit stop */
udelay(10);
if (!(fecp->fec_ievent & FEC_ENET_GRA))
printk("fec_stop : Graceful transmit stop did not complete !\n");
}

/* Whack a reset. We should wait for this.
*/
Expand Down

0 comments on commit 4f24b72

Please sign in to comment.