lkml.org 
[lkml]   [2004]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.017 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site