OSDN Git Service

net: ethernet: ti: am65-cpsw: Fix hardware switch mode on suspend/resume
authorRoger Quadros <rogerq@kernel.org>
Fri, 4 Nov 2022 13:23:10 +0000 (15:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2022 12:20:03 +0000 (12:20 +0000)
commit1af3cb3702d02167926a2bd18580cecb2d64fd94
tree3b4206c4a1cd92005ffe615a35127b428c52c0bd
parent643cf0e3ab5ccee37b3c53c018bd476c45c4b70e
net: ethernet: ti: am65-cpsw: Fix hardware switch mode on suspend/resume

On low power during system suspend the ALE table context is lost.
Save the ALE contect before suspend and restore it after resume.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/am65-cpsw-nuss.c
drivers/net/ethernet/ti/am65-cpsw-nuss.h