LKML Archive on lore.kernel.org help / color / mirror / Atom feed
From: Yi Yang <yi.y.yang@intel.com> To: Zhang Rui <rui.zhang@intel.com> Cc: Maxim Levitsky <maximlevitsky@gmail.com>, david-b@pacbell.net, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, lenb@kernel.org, acpi-bugzilla@lists.sourceforge.net Subject: Re: [PATCH] ACPI: Add sysfs interface for acpi device wakeup Date: Fri, 11 Jan 2008 07:55:42 +0800 [thread overview] Message-ID: <1200009342.5389.12.camel@yangyi-dev.bj.intel.com> (raw) In-Reply-To: <1200039383.3749.124.camel@acpi-sony.sh.intel.com> > > I think that it would be much much better to place wake-up attributes under > > corresponding PCI and PNP devices. > > Probably it is even better to link this code to PCI code, so PCI drivers will be aware of ACPI. > I like this idea, maxim. :) > And that's what we actually did about half a year ago. > > Yi, > Please refer to http://bugzilla.kernel.org/show_bug.cgi?id=6892 > and David's patch set here: > http://marc.info/?l=linux-mm-commits&m=117701595209299&w=2 > http://marc.info/?l=linux-mm-commits&m=117701866524935&w=2 > You can have a look at this thread as well: > http://marc.info/?l=linux-acpi&m=119982937409968&w=2 > I checked those patches you mentioned, they did bind two wakeup flag to some extent, but they can't be exchanged to use and they are just partly in current linus tree, two flags bind isn't in linus tree. According to my test on the latest linus tree, wakeup flag of acpi_device hasn't any association with device's, i don't know if they are the same thing. if we enbale or disable it manually, what will happen? From source code, it is just a flag, it doesn't trigger any event or hardware operation. > thanks, > Rui > > For example it will fix the 'EHCI instantly wakes up the system from S4' on my system, since here USB doesn't wake > > up anything from S4, and ACPI tables correctly show that. > > > > If ehci driver was aware of that it could disable #PME on entrance to S4. > > And we even can reuse its 'wakeup' attribute, thus enabling wakeup automatically. > > > > Going ever further, I think that it will be great to get rid of ACPI device tree, since > > most acpi devices are ether PCI of PNP ones. > > > > Or, even better have a small ACPI tree, that will contain 'true' ACPI devices, like cpus > > thermal sensors, buttons, etc. > > > >
next prev parent reply other threads:[~2008-01-11 9:05 UTC|newest] Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-12-27 6:47 [PATCH linux-acpi] Fix /proc/acpi/alarm set error Yi Yang 2007-12-27 8:41 ` [PATCH linux-acpi] Remove superfluous code and correct counting error in function acpi_system_write_alarm Yi Yang 2007-12-29 8:22 ` [PATCH linux-acpi] Correct wakeup set error and append a new column PCI ID Yi Yang 2008-01-01 23:20 ` Pavel Machek 2008-01-02 2:03 ` Yi Yang 2008-01-02 16:09 ` Pavel Machek 2008-01-03 2:02 ` Yi Yang 2008-01-03 2:11 ` Yi Yang 2008-01-04 8:16 ` [PATCH linux-acpi] fix acpi fan state set error Yi Yang 2008-01-07 6:56 ` [PATCH] ACPI: fix processor throttling " Yi Yang 2008-01-08 3:21 ` [PATCH] ACPI: fix processor limit " Yi Yang 2008-01-24 0:45 ` [PATCH] ACPI: create proc entry 'power' only if C2 or C3 is supported Yi Yang 2008-01-24 14:43 ` Mark Lord 2008-01-09 22:21 ` [PATCH] ACPI: Add sysfs interface for acpi device wakeup Yi Yang 2008-01-10 7:43 ` Maxim Levitsky 2008-01-09 23:59 ` Yi Yang 2008-01-10 10:30 ` Matthew Garrett 2008-01-13 18:16 ` Pavel Machek 2008-01-11 8:16 ` Zhang Rui 2008-01-10 23:55 ` Yi Yang [this message] 2008-03-19 13:06 ` Thomas Renninger 2008-03-19 14:37 ` Yi Yang 2008-03-20 4:32 ` Zhao Yakui 2008-03-19 18:52 ` David Brownell 2008-03-20 5:12 ` Zhao Yakui 2008-03-20 6:12 ` David Brownell
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=1200009342.5389.12.camel@yangyi-dev.bj.intel.com \ --to=yi.y.yang@intel.com \ --cc=acpi-bugzilla@lists.sourceforge.net \ --cc=david-b@pacbell.net \ --cc=lenb@kernel.org \ --cc=linux-acpi@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=maximlevitsky@gmail.com \ --cc=rui.zhang@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: linkBe 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).