From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Shaohua Li <shaohua.li@intel.com>
Cc: linux acpi <linux-acpi@vger.kernel.org>,
linux-ide@vger.kernel.org, Len Brown <lenb@kernel.org>
Subject: Re: [PATCH] hook ACPI _PSx method to IDE power on/off
Date: Sat, 4 Aug 2007 21:55:24 +0200 [thread overview]
Message-ID: <200708042155.24843.bzolnier@gmail.com> (raw)
In-Reply-To: <1186035248.29979.5.camel@sli10-conroe.sh.intel.com>
On Thursday 02 August 2007, Shaohua Li wrote:
> ACPI spec defines the sequence of IDE power on/off:
> Powering down:
> Call _GTM.
> Power down drive (calls _PS3 method and turns off power planes).
> Powering up:
> Power up drive (calls _PS0 method if present and turns on power planes).
> Call _STM passing info from _GTM (possibly modified), with ID data from
> each drive.
> Initialize the channel.
> May modify the results of _GTF.
> For each drive:
> Call _GTF.
> Execute task file (possibly modified).
> This patch adds the missed _PS0/_PS3 methods call.
>
> Signed-off-by: Shaohua Li <shaohua.li@intel.com>
applied, thanks
Len, are you OK with the ACPI part of the patch (below)?
> Index: linux/drivers/acpi/bus.c
> ===================================================================
> --- linux.orig/drivers/acpi/bus.c 2007-08-02 13:35:06.000000000 +0800
> +++ linux/drivers/acpi/bus.c 2007-08-02 13:56:56.000000000 +0800
> @@ -262,10 +262,12 @@ int acpi_bus_set_power(acpi_handle handl
> printk(KERN_WARNING PREFIX
> "Transitioning device [%s] to D%d\n",
> device->pnp.bus_id, state);
> - else
> + else {
> + device->power.state = state;
> ACPI_DEBUG_PRINT((ACPI_DB_INFO,
> "Device [%s] transitioned to D%d\n",
> device->pnp.bus_id, state));
> + }
>
> return result;
> }
next prev parent reply other threads:[~2007-08-04 19:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-02 6:14 [PATCH] hook ACPI _PSx method to IDE power on/off Shaohua Li
2007-08-02 12:31 ` Matthew Garrett
2007-08-03 0:44 ` Shaohua Li
2007-08-04 8:03 ` Tejun Heo
2007-08-04 19:55 ` Bartlomiej Zolnierkiewicz [this message]
2007-08-23 1:26 ` Len Brown
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=200708042155.24843.bzolnier@gmail.com \
--to=bzolnier@gmail.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=shaohua.li@intel.com \
/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;
as well as URLs for NNTP newsgroup(s).