Skip to content

Commit

Permalink
net: ethernet: ti: am65-cpsw: Add suspend/resume support
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
rogerq authored and davem330 committed Nov 7, 2022
1 parent cef122d commit fd23df7
Showing 1 changed file with 166 additions and 55 deletions.
Loading

0 comments on commit fd23df7

Please sign in to comment.