diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2019-11-06 16:02:59 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-06 21:22:55 -0800 |
commit | 97add93fbcfa566735d6a4b96684110d356ebd35 (patch) | |
tree | 08fde595035bd9ba02072e5f575a0ae74b4c35c8 /drivers | |
parent | 96147375d49f9b523e6462992ddcfb753835c42f (diff) | |
download | linux-riscv-97add93fbcfa566735d6a4b96684110d356ebd35.tar.gz linux-riscv-97add93fbcfa566735d6a4b96684110d356ebd35.tar.bz2 linux-riscv-97add93fbcfa566735d6a4b96684110d356ebd35.zip |
net: stmmac: xgmac: Fix TSA selection
When we change between Transmission Scheduling Algorithms, we need to
clear previous values so that the new chosen algorithm is correctly
selected.
Fixes: ec6ea8e3eee9 ("net: stmmac: Add CBS support in XGMAC2")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c index 01075a955c66..070bd7d1ae4c 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c @@ -224,6 +224,7 @@ static void dwxgmac2_config_cbs(struct mac_device_info *hw, writel(low_credit, ioaddr + XGMAC_MTL_TCx_LOCREDIT(queue)); value = readl(ioaddr + XGMAC_MTL_TCx_ETS_CONTROL(queue)); + value &= ~XGMAC_TSA; value |= XGMAC_CC | XGMAC_CBS; writel(value, ioaddr + XGMAC_MTL_TCx_ETS_CONTROL(queue)); } |