From: Bharata B Rao <rao.bharata@samsung.com>
To: linux-kernel@vger.kernel.org
Subject: [2.6.1 PM] runtime device power management
Date: Wed, 14 Jan 2004 11:29:30 +0900 [thread overview]
Message-ID: <4004A98A.3020301@samsung.com> (raw)
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.
reply other threads:[~2004-01-14 2:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4004A98A.3020301@samsung.com \
--to=rao.bharata@samsung.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox