Skip to content

Commit

Permalink
atl1c: wrong register used to stop TXQ
Browse files Browse the repository at this point in the history
function atl1c_stop_mac uses wrong register of REG_TWSI_CTRL
to stop mac, replace it with REG_TXQ_CTRL.

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>
  • Loading branch information
Huang, Xiong authored and David S. Miller committed Apr 18, 2012
1 parent 027392c commit 0cbec61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/atheros/atl1c/atl1c_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ static int atl1c_stop_mac(struct atl1c_hw *hw)

AT_READ_REG(hw, REG_TXQ_CTRL, &data);
data &= ~TXQ_CTRL_EN;
AT_WRITE_REG(hw, REG_TWSI_CTRL, data);
AT_WRITE_REG(hw, REG_TXQ_CTRL, data);

atl1c_wait_until_idle(hw);

Expand Down

0 comments on commit 0cbec61

Please sign in to comment.