]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: fix cpts irq after suspend
authorGrygorii Strashko <grygorii.strashko@ti.com>
Thu, 12 Nov 2020 11:15:46 +0000 (13:15 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Nov 2020 22:20:42 +0000 (14:20 -0800)
commit18d1ce05bc5b530a92ea65ff287c2ca633f15804
treed6ec52131f6c4443f4623325723b352b65c6f0c3
parentaade562a3570d7b6c2d3b74036c5d1c44dcd99e4
net: ethernet: ti: cpsw: fix cpts irq after suspend

Depending on the SoC/platform the CPSW can completely lose context after a
suspend/resume cycle, including CPSW wrapper (WR) which will cause reset of
WR_C0_MISC_EN register, so CPTS IRQ will became disabled.

Fix it by moving CPTS IRQ enabling in cpsw_ndo_open() where CPTS is
actually started.

Fixes: 4944a737c97e ("net: ethernet: ti: cpsw: enable cpts irq")
Reported-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20201112111546.20343-1-grygorii.strashko@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/cpsw_new.c