From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Shaohua Li <shaohua.li@intel.com>
Cc: ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Alan Stern <stern@rowland.harvard.edu>,
Jesse Barnes <jbarnes@virtuousgeek.org>,
Len Brown <lenb@kernel.org>,
pm list <linux-pm@lists.linux-foundation.org>,
"Zhang, Rui" <rui.zhang@intel.com>,
"Zhao, Yakui" <yakui.zhao@intel.com>
Subject: Re: [PATCH 6/8] PCI ACPI: Rework PCI handling of wake-up
Date: Fri, 27 Jun 2008 15:26:45 +0200 [thread overview]
Message-ID: <200806271526.46932.rjw@sisk.pl> (raw)
In-Reply-To: <1214532498.26388.2.camel@sli10-desk.sh.intel.com>
On Friday, 27 of June 2008, Shaohua Li wrote:
> On Fri, 2008-06-27 at 06:28 +0800, Rafael J. Wysocki wrote:
[--snip--]
> > +
> > + if (pmc & PCI_PM_CAP_PME_MASK) {
> > + dev_printk(KERN_INFO, &dev->dev,
> > + "PME# supported from%s%s%s%s%s\n",
> > + (pmc & PCI_PM_CAP_PME_D0) ? " D0" : "",
> > + (pmc & PCI_PM_CAP_PME_D1) ? " D1" : "",
> > + (pmc & PCI_PM_CAP_PME_D2) ? " D2" : "",
> > + (pmc & PCI_PM_CAP_PME_D3) ? " D3hot" : "",
> > + (pmc & PCI_PM_CAP_PME_D3cold) ? " D3cold" :
> > "");
> > + /*
> > + * Make device's PM flags reflect the wake-up
> > capability, but
> > + * let the user space enable it to wake up the system
> > as needed.
> > + */
> > + device_set_wakeup_capable(&dev->dev, true);
> > + device_set_wakeup_enable(&dev->dev, false);
> > + /* Disable the PME# generation functionality */
> > + pci_pme_active(dev, pm, false);
> > + }
> > }
> It appears a lot of drivers will call device_init_wakeup(dev, 1)
> regardless if userspace enable wakeup for the device. Will you fix the
> drivers?
Either fix the drivers, or change device_init_wakeup() so that it doesn't
set power.should_wakeup to the same value as power.can_wakeup, which IMO is
a mistake.
Perhaps it's better to drop device_init_wakeup() altogether.
Thanks,
Rafael
next prev parent reply other threads:[~2008-06-27 13:25 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-26 22:22 [PATCH 0/8] PCI PM: Handling of PCI devices wake-up functionality (rev. 2) Rafael J. Wysocki
2008-06-26 22:23 ` [PATCH 1/8] ACPI: Introduce acpi_bus_power_manageable function Rafael J. Wysocki
2008-06-26 22:23 ` Rafael J. Wysocki
2008-06-26 22:24 ` [PATCH 2/8] PCI: Introduce platform_pci_power_manageable function Rafael J. Wysocki
2008-06-26 22:24 ` Rafael J. Wysocki
2008-06-26 22:25 ` [PATCH 3/8] PCI: Rework pci_set_power_state function (rev. 4) Rafael J. Wysocki
2008-06-26 22:25 ` Rafael J. Wysocki
2008-06-26 22:26 ` [PATCH 4/8] ACPI: Introduce acpi_device_sleep_wake function Rafael J. Wysocki
2008-06-26 22:26 ` Rafael J. Wysocki
2008-06-26 22:27 ` [PATCH 5/8] ACPI: Introduce new device wakeup flag 'prepared' Rafael J. Wysocki
2008-06-26 22:27 ` Rafael J. Wysocki
2008-06-26 22:28 ` [PATCH 6/8] PCI ACPI: Rework PCI handling of wake-up Rafael J. Wysocki
2008-06-27 2:08 ` Shaohua Li
2008-06-27 2:08 ` Shaohua Li
2008-06-27 13:26 ` Rafael J. Wysocki [this message]
2008-06-27 15:12 ` Rafael J. Wysocki
2008-06-27 15:12 ` Rafael J. Wysocki
2008-06-27 13:26 ` Rafael J. Wysocki
2008-06-28 0:40 ` [PATCH 6/8] PCI ACPI: Rework PCI handling of wake-up (rev. 3) Rafael J. Wysocki
2008-06-30 2:05 ` Zhao Yakui
2008-06-30 10:19 ` Rafael J. Wysocki
2008-06-30 10:19 ` Rafael J. Wysocki
2008-07-01 2:26 ` Zhao Yakui
2008-07-01 13:57 ` Rafael J. Wysocki
2008-07-01 13:57 ` Rafael J. Wysocki
2008-07-01 2:26 ` Zhao Yakui
2008-06-30 2:05 ` Zhao Yakui
2008-06-28 0:40 ` Rafael J. Wysocki
2008-06-26 22:28 ` [PATCH 6/8] PCI ACPI: Rework PCI handling of wake-up Rafael J. Wysocki
2008-06-26 22:29 ` [PATCH 7/8] PCI PM: Introduce pci_prepare_to_sleep and pci_back_from_sleep (rev. 2) Rafael J. Wysocki
2008-06-26 22:29 ` Rafael J. Wysocki
2008-06-26 22:31 ` [PATCH 8/8] PCI: Simplify PCI device PM code " Rafael J. Wysocki
2008-06-27 16:39 ` Rafael J. Wysocki
2008-06-27 16:39 ` Rafael J. Wysocki
2008-06-28 0:42 ` [PATCH 8/8] PCI: Simplify PCI device PM code (rev. 4) Rafael J. Wysocki
2008-06-28 0:42 ` Rafael J. Wysocki
2008-06-26 22:31 ` [PATCH 8/8] PCI: Simplify PCI device PM code (rev. 2) Rafael J. Wysocki
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=200806271526.46932.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=jbarnes@virtuousgeek.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=rui.zhang@intel.com \
--cc=shaohua.li@intel.com \
--cc=stern@rowland.harvard.edu \
--cc=yakui.zhao@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.