Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 222038
b: refs/heads/master
c: 75e6047
h: refs/heads/master
v: v3
  • Loading branch information
Joakim Tjernlund authored and David S. Miller committed Nov 12, 2010
1 parent fab531c commit cb04181
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 2040bd57b5f0c52dc4503e0e960b1dcafaf30a8b
refs/heads/master: 75e6047431872dadd0b13503b374e48ccd71a507
10 changes: 7 additions & 3 deletions trunk/drivers/net/ucc_geth.c
Original file line number Diff line number Diff line change
Expand Up @@ -2050,12 +2050,16 @@ static void ucc_geth_stop(struct ucc_geth_private *ugeth)

ugeth_vdbg("%s: IN", __func__);

/*
* Tell the kernel the link is down.
* Must be done before disabling the controller
* or deadlock may happen.
*/
phy_stop(phydev);

/* Disable the controller */
ugeth_disable(ugeth, COMM_DIR_RX_AND_TX);

/* Tell the kernel the link is down */
phy_stop(phydev);

/* Mask all interrupts */
out_be32(ugeth->uccf->p_uccm, 0x00000000);

Expand Down

0 comments on commit cb04181

Please sign in to comment.