From: Mingyou Chen <qby140326@gmail.com>
To: Bozhen Peng <bozhenpeng93@gmail.com>
Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com>,
Ilya Gladyshev <ilya.gladyshev@linux.dev>,
Hans de Goede <hansg@kernel.org>, Armin Wolf <W_Armin@gmx.de>,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 3/4] platform/x86: bitland-mifs-wmi: Add a quirk to hide extra controls
Date: Wed, 2 Dec 2026 13:40:00 +0800 [thread overview]
Message-ID: <aw-usStS7hBv8Hub@qby-laptop> (raw)
In-Reply-To: <e4264510-501c-4d27-a60a-f37b5e23f3d7@gmail.com>
On 26/12/01 08:03PM, Bozhen Peng wrote:
> The WUJIE15 PRO HPT does not support the GPU mode, keyboard RGB mode
> or fan-boost controls. Add a quirk to hide their sysfs attributes.
> Existing models keep the same attributes and permissions.
>
> No functional change intended.
>
> Signed-off-by: Bozhen Peng <bozhenpeng93@gmail.com>
> ---
> drivers/platform/x86/bitland-mifs-wmi.c | 23 ++++++++++++++++++++++-
> 1 file changed, 22 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/bitland-mifs-wmi.c b/drivers/platform/x86/bitland-mifs-wmi.c
> index 43f709714edac3d731378349f9fb5cbf6b1fc09b..9fa77e667a1a8ec7e152555fd47a56711e484095 100644
> --- a/drivers/platform/x86/bitland-mifs-wmi.c
> +++ b/drivers/platform/x86/bitland-mifs-wmi.c
> @@ -108,6 +108,7 @@ struct bitland_mifs_quirks {
> int (*check_performance_capability)(void);
> const struct bitland_hwmon_config *hwmon;
>
> + bool disable_extra_controls;
I'd suggest adding bitflags like the uniwill driver.
Then we can control what sysfs attrs to enable with the bitflag.
> bool return_code_at_end;
> bool skip_ac_type_check;
> };
next prev parent reply other threads:[~2026-12-02 5:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 4:00 [PATCH v4 0/4] platform/x86: bitland-mifs-wmi: Support WUJIE15 PRO HPT Bozhen Peng
2026-12-02 4:01 ` [PATCH v4 1/4] platform/x86: bitland-mifs-wmi: Allow per-model hwmon configuration Bozhen Peng
2026-12-02 4:02 ` [PATCH v4 2/4] platform/x86: bitland-mifs-wmi: Allow quirks to override the power check Bozhen Peng
2026-12-02 4:03 ` [PATCH v4 3/4] platform/x86: bitland-mifs-wmi: Add a quirk to hide extra controls Bozhen Peng
2026-12-02 5:40 ` Mingyou Chen [this message]
2026-12-02 4:04 ` [PATCH v4 4/4] platform/x86: bitland-mifs-wmi: Support WUJIE15 PRO HPT Bozhen Peng
2026-12-02 5:33 ` Mingyou Chen
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=aw-usStS7hBv8Hub@qby-laptop \
--to=qby140326@gmail.com \
--cc=W_Armin@gmx.de \
--cc=bozhenpeng93@gmail.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=ilya.gladyshev@linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/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
all inboxes | Powered by JetHome®