OSDN Git Service

net: ethernet: ti: am65-cpsw: Add suspend/resume support
authorRoger Quadros <rogerq@kernel.org>
Fri, 4 Nov 2022 13:23:07 +0000 (15:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2022 12:20:03 +0000 (12:20 +0000)
commitfd23df72f2be317d38d9fde0a8996b8e7454fd2a
treef7543ffee914a0ae667b3355d6521e15a11c6b73
parentcef122d4cf5b6463d16e71ed04330f32a526a6ab
net: ethernet: ti: am65-cpsw: Add suspend/resume support

Add PM handlers for System suspend/resume.

As DMA driver doesn't yet support suspend/resume we free up
the DMA channels at suspend and acquire and initialize them
at resume.

Move the init/free dma calls to ndo_open/close() hooks so
it is symmetric and easier to invoke from suspend/resume handler.

As CPTS looses contect during suspend/resume, invoke the
necessary CPTS suspend/resume helpers.

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