[2.6.1 PM] runtime device power management

From: Bharata B Rao
Date: Tue Jan 13 2004 - 21:43:29 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/