Re: [PATCH 2/2] r8169: transition to D0 state at shutdown
From: Francois Romieu <romieu@fr.zoreil.com>
Date: 2012-02-15 00:14:53
Also in:
netdev
From: Francois Romieu <romieu@fr.zoreil.com>
Date: 2012-02-15 00:14:53
Also in:
netdev
Sameer Nanda [off-list ref] :
With runtime PM, if the ethernet cable is disconnected, the device is transitioned to D3 state to conserve energy. If the system is shutdown in this state, any register accesses in rtl_shutdown are dropped on the floor. This patch transitions the device back to D0 state in rtl_shutdown if the device was runtime PM suspended. In addition, since runtiome PM also mucks around with WOL options, the saved WOL options are also restored in rtl_shutdown.
Ok. I'll leave Rafael choose if he prefers the runtime pm layer to handle it or not. -- Ueimor