From: Mario Limonciello <mario.limonciello@amd.com>
To: Hans de Goede <hdegoede@redhat.com>,
Mark Gross <mgross@linux.intel.com>,
"Rafael J . Wysocki" <rjw@rjwysocki.net>
Cc: "open list:X86 PLATFORM DRIVERS"
<platform-driver-x86@vger.kernel.org>, <markpearson@lenovo.com>,
<linux-acpi@vger.kernel.org>,
Mario Limonciello <mario.limonciello@amd.com>
Subject: [PATCH v4 0/3] Let other drivers react to platform profile changes
Date: Tue, 26 Oct 2021 14:08:32 -0500 [thread overview]
Message-ID: <20211026190835.10697-1-mario.limonciello@amd.com> (raw)
Currently only one driver can register as a handler for a platform profile.
This limitation means that if multiple drivers want to react to platform
profile changes that they will need to directly interact with individual
drivers.
Instead introduce a notification flow that drivers can register for event
changes. The idea is that any driver that wants to can:
1. read the current profile
2. set up initial values
3. register for changes
4. react to changes
Changes from v3->v4:
* Simplify platform_profile_notify
- No need to check cur_profile as platform_profile_get does it
- No need to track ret as it's unused
Changes from v2->v3:
* Add patches to avoid collisions in hp-wmi and asus-wmi symbols
Mario Limonciello (3):
platform/x86: hp-wmi: rename platform_profile_* function symbols
platform/x86: asus-wmi: rename platform_profile_* function symbols
ACPI: platform_profile: Add support for notification chains
drivers/acpi/platform_profile.c | 46 +++++++++++++++++++++++++++-----
drivers/platform/x86/asus-wmi.c | 12 ++++-----
drivers/platform/x86/hp-wmi.c | 12 ++++-----
include/linux/platform_profile.h | 10 +++++++
4 files changed, 61 insertions(+), 19 deletions(-)
--
2.25.1
next reply other threads:[~2021-10-26 19:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-26 19:08 Mario Limonciello [this message]
2021-10-26 19:08 ` [PATCH v4 1/3] platform/x86: hp-wmi: rename platform_profile_* function symbols Mario Limonciello
2021-10-27 14:08 ` Hans de Goede
2021-10-26 19:08 ` [PATCH v4 2/3] platform/x86: asus-wmi: " Mario Limonciello
2021-10-27 14:08 ` Hans de Goede
2021-10-26 19:08 ` [PATCH v4 3/3] ACPI: platform_profile: Add support for notification chains Mario Limonciello
2021-10-27 13:51 ` [PATCH v4 0/3] Let other drivers react to platform profile changes Hans de Goede
2021-10-27 13:57 ` Rafael J. Wysocki
2021-10-27 14:02 ` Limonciello, Mario
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=20211026190835.10697-1-mario.limonciello@amd.com \
--to=mario.limonciello@amd.com \
--cc=hdegoede@redhat.com \
--cc=linux-acpi@vger.kernel.org \
--cc=markpearson@lenovo.com \
--cc=mgross@linux.intel.com \
--cc=platform-driver-x86@vger.kernel.org \
--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