[PATCH net 2/2] jme: Fix device PM wakeup API usage

2016-03-04 Thread cooldavid
From: Guo-Fu Tseng According to Documentation/power/devices.txt The driver should not use device_set_wakeup_enable() which is the policy for user to decide. Using device_init_wakeup() to initialize dev->power.should_wakeup and dev->power.can_wakeup on driver initialization. And use device_may_

[PATCH net 1/2] jme: Do not enable NIC WoL functions on S0

2016-03-04 Thread cooldavid
From: Guo-Fu Tseng Otherwise it might be back on resume right after going to suspend in some hardware. Reported-by: Diego Viola Signed-off-by: Guo-Fu Tseng --- drivers/net/ethernet/jme.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/net/etherne