stmmac: hardware TX COE doesn't work when force_thresh_dma_mode is set
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Mon, 16 May 2016 15:41:07 +0000 (12:41 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 May 2016 02:17:45 +0000 (22:17 -0400)
commita8df35d45800c2af2b9bac04a8f9d4e426862e4d
tree78a53c8552d30d443322aa563850d961845b65f3
parent73d9011c1f50ad3f82886d2187799acba1feb236
stmmac: hardware TX COE doesn't work when force_thresh_dma_mode is set

Commit f748be531d70 ("stmmac: support new GMAC4") reverted a previous fix
by mistake. This commit re-applies said fix:

  commit dec2165ff38a99f937fe61875d102c6c8596c815
  Author: Sonic Zhang <sonic.zhang@analog.com>
  Date:   Thu Jan 22 14:55:57 2015 +0800
  stmmac: hardware TX COE doesn't work when force_thresh_dma_mode is set

  Clear the TX COE bit when force_thresh_dma_mode is set even hardware
  dma capability says support.

  Tested on BF609.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Tested on LPC4350 Hitex board.

Fixes: f748be531d70 ("stmmac: support new GMAC4")
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Tested-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c