Messages in this thread | | | Date | Wed, 14 Jan 2004 11:29:30 +0900 | From | Bharata B Rao <> | Subject | [2.6.1 PM] runtime device power management |
| |
Hello,
I have been trying to suspend and resume a device in runtime using the /sys/devices/pci.../power/state interface.
First time the device suspend/resume works correctly.
But since, during resume the power_state is not set for the device(as is done during suspend), it still retains the old suspended state value. Because of which, it can't be suspended again. (kernel thinks its already suspended)
This can be fixed by just setting the dev->power.power_state to appropriate value in drivers/base/power/runtime.c:runtime_resume() or in any other suitable place.
Regards, Bharata.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |