]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
atl1c: do MAC-reset when PHY link down
authorHuang, Xiong <xiong@qca.qualcomm.com>
Mon, 30 Apr 2012 15:38:56 +0000 (15:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2012 01:44:15 +0000 (21:44 -0400)
commit5e5c0964d9b93debb040431b5036d28fe8b19136
treed0fb8d55bb621b064b64d573c1aa7705365c75be
parent0aa76ce3324e324d3091aef0c3e22c249ae4b693
atl1c: do MAC-reset when PHY link down

There may be tx-skbs still pending in HW when PHY link down.
Reset MAC will make the DMA engine go to the start point.
and release all pending skbs.
Note: Reset MAC will clear any interrupt status and mask.

Signed-off-by: xiong <xiong@qca.qualcomm.com>
Tested-by: Liu David <dwliu@qca.qualcomm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c