From: Cheng Han Date: Thu, 9 May 2019 03:13:41 +0000 (+0800) Subject: dwmac4_prog_mtl_tx_algorithms() missing write operation X-Git-Tag: v5.2-rc1~102^2~15 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=68a5cde9f02e690206e41c2d5aba88461a8829f1;p=users%2Fjedix%2Flinux-maple.git dwmac4_prog_mtl_tx_algorithms() missing write operation net: ethernet: stmmac: dwmac4_prog_mtl_tx_algorithms() missing write operation The value of MTL_OPERATION_MODE is not written back Signed-off-by: Cheng Han Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c index 7e5d5db0d516..b4bb5629de38 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c @@ -192,6 +192,8 @@ static void dwmac4_prog_mtl_tx_algorithms(struct mac_device_info *hw, default: break; } + + writel(value, ioaddr + MTL_OPERATION_MODE); } static void dwmac4_set_mtl_tx_queue_weight(struct mac_device_info *hw,