From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.8 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796136655; b=tTCsxayqdcBXOIMPnt/GvNGkET4TL8qmwcCPs6nE7sjAR0YDja/7Y5khJ7qJAgfO/oTj 7B4YKQmzP9g5SeiWuxlpZO8UrV0Ky7VRv5X4OfwGSYkRN5laFp16NiszZTODQYEdT6LaX uMKfaN5yZswTIcst3cQAz5dXT66zjIGmIqVxOcN7W8UYoYwVZInjNs74ciUDOJz2oOnib PznZj4N9qStEf27G2K7VYIhflHitfJHT2p7xn0jNyOxzSfIWI66IAn7/vh4dpUE3qewlR sBU6Ai3o0FjXrrDEqVoLJQMz6Hlxz3lA4I59DRl5BdMgzoJ1Sol4hHWz+RCzNpAZe9g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796136655; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:From:To:Cc: In-Reply-To:References:Subject:Message-Id:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:X-Mailer; bh=CRg9jnXBzSyTVgpB7LgZ7saw209eCGvMN1UTdBoWCfg=; b=inf4H6r+We5q5tOsvuxqcbiuEQvYx5xs7Br/OkFlPff7maZskPC5Djc0/c8zxGU6+LDF pdQaGyK7iCZbsJJs+FpQX3twFiKdUNlq9aC+079oQNbIf3pvJ2cmXXFdkKVKiwyrXcxUY kA17BpX4S0vMJgloznA61yCHhR+1Nyny93pLReRZPPdaha2HsgEGmUng6N1bNaqvmxWfD xsKy0tk9KSUTM2Qcl3aRvaOGoU1wA03kPsSkCq4uwzWVrJEFxRo/LV3dvsNLDI0Tr60W3 2LugRM4TOYV2juOGlSbkrbtTEhRqReINFD3d2K/EdfPUJkgw3bZA7F4PQQ65wKwcAUQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b="JiRQLk/9"; arc=none smtp.remote-ip=192.198.163.8 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 624BE606A320; Tue, 1 Dec 2026 14:50:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 624BE606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=JiRQLk/9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796136655; x=1827672655; h=from:to:cc:in-reply-to:references:subject:message-id: date:mime-version:content-transfer-encoding; bh=CRg9jnXBzSyTVgpB7LgZ7saw209eCGvMN1UTdBoWCfg=; b=JiRQLk/9mqEmYnR/9SUc2gsQwPcjhmpWBxUYIS1eMwUbLP0i71y/kzDU 5uSsYz45o1bNMmkOPCYDV82KeN4a7mEzUEhy6EJCDfuGnONUix/Q+C59g wTfajFiC35xFCjkZ2g48X7p+OJNv/RtYy8Lz0rJ/nKsHPG7nJe9ytTQ9I UC2VYuyzZFzL/+DF+1/zlZilsnc5Hw3YE+MzomFfrnkRP6OUB6GV2tecY K/o4YumH26TUck/jND5QhtVhAPodmOUZx9BXBjyqfhIXybvwXT4DosaTT R839vDoTEIZ5r8cGM91BP4uLXZqyRo87OULPRLl/SPRLrVJ5u308C9GoT g==; X-CSE-ConnectionGUID: i9GaWWtFRsO/FFd5DC5N3w== X-CSE-MsgGUID: ZZMPLkLiTdKSSldX3e4wXA== X-IronPort-AV: E=McAfee;i="6800,10657,11983"; a="4898735" X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="4898735" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 06:50:54 -0800 X-CSE-ConnectionGUID: 91H4vcp+QauhJVh8OYTpwA== X-CSE-MsgGUID: L8lpZJ56S7CUO5OvTcbiug== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="13244967" Received: from pgcooper-mobl3.ger.corp.intel.com (HELO localhost) ([10.245.245.21]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 06:50:51 -0800 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: Henrique de Moraes Holschuh , Mark Pearson , "Derek J. Clark" , Rong Zhang , Hans de Goede , Dmitry Torokhov Cc: platform-driver-x86@vger.kernel.org, ibm-acpi-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org In-Reply-To: <20261125-thinkpad-acpi-hotkey-poll-v1-0-6dee57519c2e@gmail.com> References: <20261125-thinkpad-acpi-hotkey-poll-v1-0-6dee57519c2e@gmail.com> Subject: Re: [PATCH 0/8] platform/x86: thinkpad_acpi: clean up hotkey polling and locking Message-Id: <179613664612.15932.844336322948832500.b4-ty@b4> Date: Tue, 01 Dec 2026 16:50:46 +0200 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.15.2 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.