mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 19:49:33 -04:00
net: stmmac: dwmac4: clear LPI_CTRL_STATUS_LPITCSE too
Ensure that LPI_CTRL_STATUS_LPITCSE is also appropriately cleared when disabling LPI or enabling LPI without TX clock gating. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://patch.msgid.link/E1tffdx-003ZIZ-JQ@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
395c92c0fe
commit
a323ed92e4
@@ -410,7 +410,7 @@ static int dwmac4_set_lpi_mode(struct mac_device_info *hw,
|
||||
}
|
||||
|
||||
mask = LPI_CTRL_STATUS_LPIATE | LPI_CTRL_STATUS_LPIEN |
|
||||
LPI_CTRL_STATUS_LPITXA;
|
||||
LPI_CTRL_STATUS_LPITXA | LPI_CTRL_STATUS_LPITCSE;
|
||||
|
||||
value |= readl(ioaddr + GMAC4_LPI_CTRL_STATUS) & ~mask;
|
||||
writel(value, ioaddr + GMAC4_LPI_CTRL_STATUS);
|
||||
|
||||
Reference in New Issue
Block a user