OpenCloudOS-Kernel/drivers/net/ethernet/renesas
Niklas Söderlund 0184165b2f 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>
2016-08-09 16:16:08 -07:00
..
Kconfig sh_eth, ravb: Use ARCH_RENESAS 2016-03-03 17:09:08 -05:00
Makefile Renesas Ethernet AVB PTP clock driver 2015-06-11 00:24:12 -07:00
ravb.h ravb: make ravb_ptp_interrupt() *void* 2016-04-14 00:48:33 -04:00
ravb_main.c ravb: add sleep PM suspend/resume support 2016-08-09 16:16:08 -07:00
ravb_ptp.c ravb: make ravb_ptp_interrupt() *void* 2016-04-14 00:48:33 -04:00
sh_eth.c ethernet: renesas: sh_eth: add missing of_node_put after calling of_parse_phandle 2016-08-01 21:43:49 -07:00
sh_eth.h sh_eth: rename ARSTR register bit 2016-04-26 16:07:20 -04:00