sh_eth: add more PM methods
authorMikhail Ulyanov <mikhail.ulyanov@cogentembedded.com>
Wed, 21 Jan 2015 22:19:48 +0000 (01:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Jan 2015 23:26:41 +0000 (15:26 -0800)
commitb71af04676e9cfea6be49a8f40db36785017e944
tree442d27b1ab2abe6bf1aca088b5a35fcfc54ac62a
parente7d7e89846d53e27d6e48a746c5c69e69c22aaaa
sh_eth: add more PM methods

Add sh_eth_{suspend|resume}() implementing {suspend|resume|freeze|thaw|poweroff|
restore}() PM methods to make it possible to restore from hibernation not only
in Linux  but also in e.g. U-Boot and  to have more determined state on resume/
restore.

Signed-off-by: Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com>
[Sergei: moved sh_eth_{suspend|resume}() before sh_eth_runtime_nop(), enclosed
them with #ifdef CONFIG_PM_SLEEP, reordered the local variables, got rid of
*goto* and label, reordered macro invocations, renamed, modified the changelog.]
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c