linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Pearson <markpearson@lenovo.com>
To: "Hans de Goede" <hdegoede@redhat.com>,
	"Bastien Nocera" <hadess@hadess.net>,
	"Barnabás Pőcze" <pobrn@protonmail.com>
Cc: "rjw@rjwysocki.net" <rjw@rjwysocki.net>,
	"mgross@linux.intel.com" <mgross@linux.intel.com>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	"mario.limonciello@dell.com" <mario.limonciello@dell.com>,
	"eliadevito@gmail.com" <eliadevito@gmail.com>,
	"bberg@redhat.com" <bberg@redhat.com>,
	"platform-driver-x86@vger.kernel.org" 
	<platform-driver-x86@vger.kernel.org>,
	"dvhart@infradead.org" <dvhart@infradead.org>
Subject: Re: [External] Re: [PATCH v3] ACPI: platform-profile: Add platform profile support
Date: Wed, 25 Nov 2020 14:41:09 -0500	[thread overview]
Message-ID: <4e82d54f-33c2-e880-c5f8-beb9d3460cdb@lenovo.com> (raw)
In-Reply-To: <92a564fa-686f-455d-a0cb-962d4d87a8c7@redhat.com>

On 25/11/2020 11:42, Hans de Goede wrote:
> Hi,
> 
> On 11/24/20 4:30 PM, Bastien Nocera wrote:
>> On Sat, 2020-11-21 at 15:27 +0100, Hans de Goede wrote:
>>> Hi,
>>> On 11/20/20 8:50 PM, Barnabás Pőcze wrote:
>>>> Hi
>>>> 2020. november 15., vasárnap 1:44 keltezéssel, Mark Pearson
>>>> írta:
>>>> 
>>> Bastien, what do you think about Barnabás' suggestion to always
>>> have the files present and use poll (POLL_PRI) on it to see when
>>> it changes, listing maybe "none" as available profiles when there
>>> is no provider?
>> 
>> Whether the file exists or doesn't, we have ways to monitor it 
>> appearing or disappearing. I can monitor the directory with inotify
>> to see the file appearing or disappearing, or I can monitor the
>> file with inotify to see whether it changes.
> 
> Ok, do you have a preference either way? I personally think having
> the file only appear if its functional is a bit cleaner. So if it
> does not matter much for userspace either way then I suggest we go
> that route.
> 
My (limited) vote is having the file appear when the profile is loaded 
seems nicer (and to disappear if the profile is unloaded). No profile, 
no interface just seems elegant.

I pretty much have v4 of the patches ready to go (I wanted to rebase on 
the update for the palm sensor and finished that today). I'm happy to 
hold off on them until we're ready if that helps. Bastien - let me know 
if it would be useful to have a version to test against to see what will 
work best for you, or if you need something different. Definitely want 
to make sure user space gets the best option as my understanding is 
changing this later becomes a pain :)

Thanks
Mark

  reply	other threads:[~2020-11-25 19:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-15  0:44 [PATCH v3] ACPI: platform-profile: Add platform profile support Mark Pearson
2020-11-15 18:26 ` Barnabás Pőcze
2020-11-15 23:04   ` [External] " Mark Pearson
2020-11-16 10:24     ` Barnabás Pőcze
2020-11-16 15:25       ` Mark Pearson
2020-11-16 14:33     ` Hans de Goede
2020-11-16 15:19       ` Mark Pearson
2020-11-20 19:50 ` Barnabás Pőcze
2020-11-21  4:14   ` [External] " Mark Pearson
2020-11-21 14:27   ` Hans de Goede
2020-11-21 21:18     ` Barnabás Pőcze
2020-11-22  9:32       ` Hans de Goede
2020-11-24 15:30     ` Bastien Nocera
2020-11-25 16:42       ` Hans de Goede
2020-11-25 19:41         ` Mark Pearson [this message]
2020-11-25 22:32           ` [External] " Bastien Nocera
2020-11-26 10:36             ` Hans de Goede

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=4e82d54f-33c2-e880-c5f8-beb9d3460cdb@lenovo.com \
    --to=markpearson@lenovo.com \
    --cc=bberg@redhat.com \
    --cc=dvhart@infradead.org \
    --cc=eliadevito@gmail.com \
    --cc=hadess@hadess.net \
    --cc=hdegoede@redhat.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mario.limonciello@dell.com \
    --cc=mgross@linux.intel.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=pobrn@protonmail.com \
    --cc=rjw@rjwysocki.net \
    /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).