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 CCA9224677C; Mon, 19 May 2025 21:23:36 +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=1747689816; cv=none; b=NZveKBZpMIx/o6Aa/UHHWDQoKrblZQxp6awDyG8+z/DP2r0ErhjeIiTq4EPpGllFdSu2bhB4tiY02iW4hj6zmTsvDh8j8znd0WSeAEmquO8vbbfobWzKOZf9PcwqSKIDP+jK+nDLf+a+xo5oLkNzcXAgzy1b0LU4xRt5jbKPWh8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747689816; c=relaxed/simple; bh=2RMri0FdnfsCKeLtSP/6sX1Db4Warqq7c6YVHqrHFc0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=ee50ZyA0I94gHOY79idUfn9dMzypZJuTrjL71QUYVUNo1iWTX9n8u4pvCef6Mo2xAGZUkpFrGylAiyUq3XzppwipyUmXh+1uMBYkN/eP/GI9pzljfos5i8EyWsWUKVLdrDjNycysHNg3StyV5gmZY8M9A7tOz/cOGpknkjnqXk8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=j7vM2DP8; 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="j7vM2DP8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86AC5C4CEE4; Mon, 19 May 2025 21:23:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747689816; bh=2RMri0FdnfsCKeLtSP/6sX1Db4Warqq7c6YVHqrHFc0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j7vM2DP8r8l2f843mM7MNstqaRcYninJYH8Adi56frmA2BOqY70hle9e2bHfsp5Vf ALD7AwJC9dgCDgGM/ARB9w00rC0ghhizehWnkp6vGlrSkRwPl6uR/1v45S3asicefr gVDS0rjJphfWtZYAy5IXIAl4OqfGfY8iJi4jB/X1Q0lGc4a2WhjCruEaKXIKnncU1l WTV8jw1/67ty8kVEo0BfBtbKiJZdyV7j32Aj/g1ZOeMtp9xJFSM/NzyPbklN/jg/j0 DIzDAYjM8G1Qqk3NKydeuTv0BGB7tgJs5olmX7yUbuNUuyJ98p+3HMB1PXgyO5PSnC JyTXFPls5kBnQ== 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.4 3/5] platform/x86: thinkpad_acpi: Support also NEC Lavie X1475JAS Date: Mon, 19 May 2025 17:23:29 -0400 Message-Id: <20250519212331.1986865-3-sashal@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250519212331.1986865-1-sashal@kernel.org> References: <20250519212331.1986865-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org 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.4.293 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 fbb9a5c7f8b82..441b7fb6b37af 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -10112,6 +10112,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