Skip to content

Commit a323ed9

Browse files
Russell King (Oracle)kuba-moo
authored andcommitted
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>
1 parent 395c92c commit a323ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ static int dwmac4_set_lpi_mode(struct mac_device_info *hw,
410410
}
411411

412412
mask = LPI_CTRL_STATUS_LPIATE | LPI_CTRL_STATUS_LPIEN |
413-
LPI_CTRL_STATUS_LPITXA;
413+
LPI_CTRL_STATUS_LPITXA | LPI_CTRL_STATUS_LPITCSE;
414414

415415
value |= readl(ioaddr + GMAC4_LPI_CTRL_STATUS) & ~mask;
416416
writel(value, ioaddr + GMAC4_LPI_CTRL_STATUS);

0 commit comments

Comments
 (0)