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 C146621ABB9; Mon, 19 May 2025 21:23:26 +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=1747689806; cv=none; b=UaaQu67leRgvMfxw/a7ovMbyVIZnF8MqaX8fWt+lt/IGaK3dJGkygvrDrolKVy1mWTj/a2b/M29hB08sQY8S1r1awokZpbhoncyqMWbiQiuS/CtTHjerUi+iO7PL4k9U74P8tClBlor/8X5g1l1p/r/GLqauUIDxK30wk3vGh4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747689806; c=relaxed/simple; bh=ozc5ky8hUVO3qvyxXGw3LnhGcMKviP3qe1sOqhBn68g=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=YBDTVwBL59KPKBLe/XXPGi0TQXL2x8BRc4gJ92hxF+MVnU+nkumDehUai1P7rCIu+XkP4UJ9uqxYxDm4D6Q5B29JuOdrpdBU6M8lhbVNNzR/rAal0ACJqRHRkAQxMA0rNXJ42B3DSi5LNI3fOS/EpZj050i3DPdzCk2l43piJBs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Aa7nIS4y; 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="Aa7nIS4y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B218C4CEEB; Mon, 19 May 2025 21:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747689806; bh=ozc5ky8hUVO3qvyxXGw3LnhGcMKviP3qe1sOqhBn68g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Aa7nIS4yJFMGaChnpXZSn4ZL4X21DMAD9q4LsGw+8KjDimQb1TUzocfafwA9X0FJL yyHaO8wyKFL8j3EwCuyT1lhaQrhWizzP7gDzOQtcSSF+I9mhHsuyqXSv4PTCdcWgg6 0EOYR9fIFJWhIrvzwMcVdkn5KP0koGt0JxaBQKn6YPEJsv8SwyHcMikZ/0T6Y1sMBX OHtAp20j1z+zZ02tdHlCXHvN3tApA6oYxEhzAG78dLXEdpDuAubmRI+CAdiusrmBJy Sn3Kb+4MyGIZI36ZET/T1i1jO0wJM0w4K4/i5cHQT1u5bVQQVVM/RN2SDGIzMOkcbj sqfyTbi1+sBtA== 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 5.10 3/6] platform/x86: thinkpad_acpi: Support also NEC Lavie X1475JAS Date: Mon, 19 May 2025 17:23:17 -0400 Message-Id: <20250519212320.1986749-3-sashal@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250519212320.1986749-1-sashal@kernel.org> References: <20250519212320.1986749-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 5.10.237 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 c07b3bcbf795d..e9e63d8cbfbfd 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -10233,6 +10233,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