From: Len Brown <lenb@kernel.org>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: Shaohua Li <shaohua.li@intel.com>,
linux acpi <linux-acpi@vger.kernel.org>,
linux-ide@vger.kernel.org
Subject: Re: [PATCH] hook ACPI _PSx method to IDE power on/off
Date: Wed, 22 Aug 2007 21:26:10 -0400 [thread overview]
Message-ID: <200708222126.11045.lenb@kernel.org> (raw)
In-Reply-To: <200708042155.24843.bzolnier@gmail.com>
On Saturday 04 August 2007 15:55, Bartlomiej Zolnierkiewicz wrote:
> 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)?
yes.
Acked-by: Len Brown <len.brown@intel.com>
thanks,
-Len
> > 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;
> > }
> -
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
prev parent reply other threads:[~2007-08-23 1:26 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
2007-08-23 1:26 ` Len Brown [this message]
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=200708222126.11045.lenb@kernel.org \
--to=lenb@kernel.org \
--cc=bzolnier@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.