mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>,
	 Mark Pearson <mpearson-lenovo@squebb.ca>,
	 "Derek J. Clark" <derekjohn.clark@gmail.com>,
	Rong Zhang <i@rong.moe>,  Hans de Goede <hansg@kernel.org>,
	 Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: platform-driver-x86@vger.kernel.org,
	 ibm-acpi-devel@lists.sourceforge.net,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/8] platform/x86: thinkpad_acpi: clean up hotkey polling and locking
Date: Tue, 01 Dec 2026 16:50:46 +0200	[thread overview]
Message-ID: <179613664612.15932.844336322948832500.b4-ty@b4> (raw)
In-Reply-To: <20261125-thinkpad-acpi-hotkey-poll-v1-0-6dee57519c2e@gmail.com>

On Wed, 25 Nov 2026 15:11:13 -0800, Dmitry Torokhov wrote:

> This series fixes a kthread lifecycle bug and cleans up hotkey NVRAM
> polling setup and locking in thinkpad_acpi:
> 
> - Remove the unsafe early return on TPACPI_LIFE_EXITING in
>   hotkey_kthread() so kthread_stop() never races with kthread exit.
> - Drop the dead -ENXIO check on hotkey_mask_set() in hotkey_init().
> - Drop obsolete tpacpi_lifecycle checks from hotkey_inputdev_open() and
>   hotkey_inputdev_close(), fold hotkey_poll_setup() calls into existing
>   hotkey_mutex critical sections, and remove hotkey_poll_setup_safe().
> - Call hotkey_poll_setup() in hotkey_user_mask_set() so that runtime
>   hotkey mask updates via /proc/acpi/ibm/hotkey also start or stop the
>   NVRAM polling thread.
> - Replace the HOTKEY_CONFIG_CRITICAL_START/END macros and manual
>   hotkey_thread_data_mutex lock/unlock calls with scoped_guard().
> - Convert hotkey_thread_data_mutex to a spinlock.
> - Remove the unused hotkey_poll_active bitfield from tp_features.
> - Drop the redundant tpacpi_inputdev->dev.parent assignment in
>   tpacpi_pdriver_probe().
> 
> [...]

Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent cycle or is clearly a regression
fix.

The list of commits applied:
[1/8] platform/x86: thinkpad_acpi: remove early exit in hotkey_kthread()
      commit: 57a8c08d1a1754c650bd3231e1b0ae3dba8b2fd8
[2/8] platform/x86: thinkpad_acpi: drop dead -ENXIO check in hotkey_init()
      commit: 8f008e16a04d9f39631fa9ebffda97272f43c287
[3/8] platform/x86: thinkpad_acpi: simplify hotkey open/close and poll setup
      commit: b991111f67e6869e5bd6ca8397868dc055cda410
[4/8] platform/x86: thinkpad_acpi: update polling state in hotkey_user_mask_set()
      commit: 55032974c266ca111544359578db147b26e98785
[5/8] platform/x86: thinkpad_acpi: use scoped_guard() for hotkey config locking
      commit: be8e8e55ae6dfff9329596ed664d8dd5529e8270
[6/8] platform/x86: thinkpad_acpi: convert hotkey_thread_data_mutex to a spinlock
      commit: b22af396571827456636206a0e094812b3f947ee
[7/8] platform/x86: thinkpad_acpi: remove unused hotkey_poll_active flag
      commit: 3b1f032360c763ab7dac913cb6a5764a84ddb785
[8/8] platform/x86: thinkpad_acpi: drop redundant input device parent assignment
      commit: 72e2c4ee317c507fd4cc81da0fa36e543b3d0244

--
 i.


      parent reply	other threads:[~2026-12-01 14:50 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 23:11 Dmitry Torokhov
2026-11-25 23:11 ` [PATCH 1/8] platform/x86: thinkpad_acpi: remove early exit in hotkey_kthread() Dmitry Torokhov
2026-11-27  2:43   ` Mark Pearson
2026-11-25 23:11 ` [PATCH 2/8] platform/x86: thinkpad_acpi: drop dead -ENXIO check in hotkey_init() Dmitry Torokhov
2026-11-27  2:46   ` Mark Pearson
2026-11-25 23:11 ` [PATCH 3/8] platform/x86: thinkpad_acpi: simplify hotkey open/close and poll setup Dmitry Torokhov
2026-11-27  3:28   ` Mark Pearson
2026-11-29  6:00     ` Dmitry Torokhov
2026-11-25 23:11 ` [PATCH 4/8] platform/x86: thinkpad_acpi: update polling state in hotkey_user_mask_set() Dmitry Torokhov
2026-11-27  2:57   ` Mark Pearson
2026-11-25 23:11 ` [PATCH 5/8] platform/x86: thinkpad_acpi: use scoped_guard() for hotkey config locking Dmitry Torokhov
2026-11-27  3:01   ` Mark Pearson
2026-11-25 23:11 ` [PATCH 6/8] platform/x86: thinkpad_acpi: convert hotkey_thread_data_mutex to a spinlock Dmitry Torokhov
2026-11-27  3:35   ` Mark Pearson
2026-11-25 23:11 ` [PATCH 7/8] platform/x86: thinkpad_acpi: remove unused hotkey_poll_active flag Dmitry Torokhov
2026-11-27  3:02   ` Mark Pearson
2026-11-25 23:11 ` [PATCH 8/8] platform/x86: thinkpad_acpi: drop redundant input device parent assignment Dmitry Torokhov
2026-11-27  3:05   ` Mark Pearson
2026-11-27 13:25 ` [PATCH 0/8] platform/x86: thinkpad_acpi: clean up hotkey polling and locking Rong Zhang
2026-12-01 14:50 ` Ilpo Järvinen [this message]

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=179613664612.15932.844336322948832500.b4-ty@b4 \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=derekjohn.clark@gmail.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=hansg@kernel.org \
    --cc=hmh@hmh.eng.br \
    --cc=i@rong.moe \
    --cc=ibm-acpi-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpearson-lenovo@squebb.ca \
    --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®