From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 129751A3029; Tue, 21 Oct 2025 20:02:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761076961; cv=none; b=V0PaOMWGQA6d2boKUSA7Dapim+pMl0UuopMcklXGsCHHwzBDtkj/zIrUYuaHdNJp9YG868H91ju4zloObgpdD31nddqzAbpHoHkKFXn9jSxOk6n+Pj18cvhoVTt4QblSISBnPQ/wygCL8h5buaIAtIDBtCMK/oIP+GpHbp5vNAk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761076961; c=relaxed/simple; bh=6rOh9Wj0gS59CK9HysNlfABveAXJg8ePUGXQd286wio=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cvfYu+Mf04+280HzKQ2vHkGh1D7Cqcc8+MM9ttdyOHLePwFzUnpNJiGPBtd4X4Eyk3YtTlb8CDcX6e8u+kdSjOLlT8AANOfm0oEq5pi/n6aecucZTA9w6Q8UDeb8YJbqlauMtXGXWWk5xMPbZcBSskx7tv3QAl5tZX/GslKuIoU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KAWsG+h/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KAWsG+h/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 724A6C4CEF1; Tue, 21 Oct 2025 20:02:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761076960; bh=6rOh9Wj0gS59CK9HysNlfABveAXJg8ePUGXQd286wio=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KAWsG+h/HJZ/bBfmkbMFK2E0Kl05RLjlBfxagHf8jktJqnyPvNuQZNNYHnVbbwLwW toLQ6Pv4qH2M7Kszg2iqtSpU2JStKQ+JGlRCziZySMyJccWc4npqjwkC+EWtbSAxsh 7llo5J07Nv7u0dpCQhKu9R8VDkC8+d+beSzwBo6k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thadeu Lima de Souza Cascardo , Mika Westerberg , Jiri Kosina , Sasha Levin Subject: [PATCH 6.12 090/136] HID: multitouch: fix name of Stylus input devices Date: Tue, 21 Oct 2025 21:51:18 +0200 Message-ID: <20251021195038.126598140@linuxfoundation.org> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251021195035.953989698@linuxfoundation.org> References: <20251021195035.953989698@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thadeu Lima de Souza Cascardo [ Upstream commit aa4daea418ee4215dca5c8636090660c545cb233 ] HID_DG_PEN devices should have a suffix of "Stylus", as pointed out by commit c0ee1d571626 ("HID: hid-input: Add suffix also for HID_DG_PEN"). However, on multitouch devices, these suffixes may be overridden. Before that commit, HID_DG_PEN devices would get the "Stylus" suffix, but after that, multitouch would override them to have an "UNKNOWN" suffix. Just add HID_DG_PEN to the list of non-overriden suffixes in multitouch. Before this fix: [ 0.470981] input: ELAN9008:00 04F3:2E14 UNKNOWN as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-16/i2c-ELAN9008:00/0018:04F3:2E14.0001/input/input8 ELAN9008:00 04F3:2E14 UNKNOWN After this fix: [ 0.474332] input: ELAN9008:00 04F3:2E14 Stylus as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-16/i2c-ELAN9008:00/0018:04F3:2E14.0001/input/input8 ELAN9008:00 04F3:2E14 Stylus Fixes: c0ee1d571626 ("HID: hid-input: Add suffix also for HID_DG_PEN") Signed-off-by: Thadeu Lima de Souza Cascardo Reviewed-by: Mika Westerberg Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-multitouch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 0667a24576fc4..0e4cb0e668eb5 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -1663,6 +1663,7 @@ static int mt_input_configured(struct hid_device *hdev, struct hid_input *hi) case HID_CP_CONSUMER_CONTROL: case HID_GD_WIRELESS_RADIO_CTLS: case HID_GD_SYSTEM_MULTIAXIS: + case HID_DG_PEN: /* already handled by hid core */ break; case HID_DG_TOUCHSCREEN: -- 2.51.0