aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipconfig.c
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>2016-08-03 15:56:47 +0200
committerDavid S. Miller <davem@davemloft.net>2016-08-09 16:16:08 -0700
commit0184165b2f42c4b032da9dd11546bfbaeb5afd4e (patch)
tree9bb2baf4a8925c1a353ac70bf9dc5dc80f788699 /net/ipv4/ipconfig.c
parentnet: dsa: b53: constify b53_io_ops structures (diff)
downloadlinux-dev-0184165b2f42c4b032da9dd11546bfbaeb5afd4e.tar.xz
linux-dev-0184165b2f42c4b032da9dd11546bfbaeb5afd4e.zip
ravb: add sleep PM suspend/resume support
The interface would not function after the system had been woken up after have been suspended (echo mem > /sys/power/state) cycle. The reason for this is that all device registers have been reset to its default values. This patch adds sleep suspend and resume functions that detached the interface at suspend and restore the registers and reattach the interface at resume. Only the registers that are only configured at probe time needs to be explicitly restored by the resume handler. All other registers are reconfigured by either reopening the device in the resume handler (if the device was running when the system was suspended) or when the interface is opened by a user at a later time. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipconfig.c')
0 files changed, 0 insertions, 0 deletions