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 DE7DB21D3E2; Mon, 19 May 2025 21:21:39 +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=1747689700; cv=none; b=V3TZQJHFpwga2p0P5x83dXMKsfk+dPNWwD0cBHOZuTdnAKOhIQwQSXfr9fPkC1weNSzorZBBXKsSRokiNIc7CbnSLMYawXng2JL5X9GMAqXzMTVsqUk/S+ROHI+uZ6F8ySry3RMwEMtgFLcEdjiRJi8Tg4wwLzaTE2t3P22kxg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747689700; c=relaxed/simple; bh=NxzYm3xGbnfG5Wu8vNM0wvIDnieCXReM6L6CtJSvII8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=khC7wScbWpodpEdwzZIboAQL+IFwzgZaK7kLLsJrAEuf9kruGnrHYGo7PYRcA8FT4tnIMuy50AMIPuoged1MtEcTKM3ih1CUG1cVlleEZJDklb+cC1vhlEDkpi8gPoBIpeEQaD1dJuLQqkm98lt5MioKnPT1551x4GJd90Q5U/U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WnexzgqD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WnexzgqD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9965EC4CEE9; Mon, 19 May 2025 21:21:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747689699; bh=NxzYm3xGbnfG5Wu8vNM0wvIDnieCXReM6L6CtJSvII8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WnexzgqDXH3nccAirRRX1aZTPIYHgSkKsMzw178ZEa3O40bdMdwLW5Wn+Kz+57Ez4 +69RDajjXaLO7tZobCJSaL+3YuArljHekNRz870FWjOE11SbysBnXBElaABUykDa6b 3ZkrwGE1hI6GEG+lZBhWE0E/te0ZUVTXDuZi6vkDuGUjZaCWVpCf0qiXS7Ilpp7V1/ G0lkK/Qo45r3OPDB7nG7nnAXW5w8h2EzaAyIqY12syaOC+lxgBwLiTFFQ47c5Y2Iol loievawHCQR6DNpM9qc6ZvifIGSZnip/He/azGcVLeV6WtisUkAfxUb+BRSXc14q9s roMHXLEt/QPyg== From: Sasha Levin To: patches@lists.linux.dev, stable@vger.kernel.org Cc: John Chau , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Sasha Levin , ibm-acpi@hmh.eng.br, dvhart@infradead.org, andy@infradead.org, ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH AUTOSEL 6.14 05/23] platform/x86: thinkpad_acpi: Support also NEC Lavie X1475JAS Date: Mon, 19 May 2025 17:21:12 -0400 Message-Id: <20250519212131.1985647-5-sashal@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250519212131.1985647-1-sashal@kernel.org> References: <20250519212131.1985647-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.14.7 Content-Transfer-Encoding: 8bit From: John Chau [ Upstream commit a032f29a15412fab9f4352e0032836d51420a338 ] Change get_thinkpad_model_data() to check for additional vendor name "NEC" in order to support NEC Lavie X1475JAS notebook (and perhaps more). The reason of this works with minimal changes is because NEC Lavie X1475JAS is a Thinkpad inside. ACPI dumps reveals its OEM ID to be "LENOVO", BIOS version "R2PET30W" matches typical Lenovo BIOS version, the existence of HKEY of LEN0268, with DMI fw string is "R2PHT24W". I compiled and tested with my own machine, attached the dmesg below as proof of work: [ 6.288932] thinkpad_acpi: ThinkPad ACPI Extras v0.26 [ 6.288937] thinkpad_acpi: http://ibm-acpi.sf.net/ [ 6.288938] thinkpad_acpi: ThinkPad BIOS R2PET30W (1.11 ), EC R2PHT24W [ 6.307000] thinkpad_acpi: radio switch found; radios are enabled [ 6.307030] thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver [ 6.307033] thinkpad_acpi: Disabling thinkpad-acpi brightness events by default... [ 6.320322] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked [ 6.371963] thinkpad_acpi: secondary fan control detected & enabled [ 6.391922] thinkpad_acpi: battery 1 registered (start 0, stop 85, behaviours: 0x7) [ 6.398375] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input13 Signed-off-by: John Chau Link: https://lore.kernel.org/r/20250504165513.295135-1-johnchau@0atlas.com Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen Signed-off-by: Sasha Levin --- drivers/platform/x86/thinkpad_acpi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 2ff38ca9ddb40..ace1cd14d4ba3 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -11481,6 +11481,8 @@ static int __must_check __init get_thinkpad_model_data( tp->vendor = PCI_VENDOR_ID_IBM; else if (dmi_name_in_vendors("LENOVO")) tp->vendor = PCI_VENDOR_ID_LENOVO; + else if (dmi_name_in_vendors("NEC")) + tp->vendor = PCI_VENDOR_ID_LENOVO; else return 0; -- 2.39.5