]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteac22837142687c6dd3bb4361c7efce6abdceab5
tree442d27b1ab2abe6bf1aca088b5a35fcfc54ac62a
parenta30f6958c564276cd743dc9fb53f952df05a8c9c
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