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 B2AEE230981; Mon, 19 May 2025 21:22:44 +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=1747689764; cv=none; b=dyp1El2r51rPu0warutgm+vhZjw8mUkvLuVaFLu+50gvmLzO+SGKHADDc9mXUU0+qNl7DppakkOKG+b0NkSmauGeUiprsf3G7U6coA3gyQ12Seg/kTL9lYQcZDzat/pWdcDt2hHZYdK67sHusiQl3w35G2yOfW5cUSRT3Y2i2WI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747689764; c=relaxed/simple; bh=OI5P4Jm394yZ5E6GBd4Jat7JRI0seZhD1C9gtHKvD8E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=OMAkIEYAc0a9hLIg+naOmWoGDS1qWwKd7HdBtCScKTJcoJUf1ciqGol+2X59Uu7Y48GdGuhs6lpSjJkQbn+7xHPwa1Q8ohnx/nhJAMg03oA0369fusz/04vFA2jMRpHt5F9wKPfvrL28CPgBZsYz/kdpCiyNcaoNVwDbdHZi9Ms= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sJJxgIEb; 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="sJJxgIEb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F814C4CEE4; Mon, 19 May 2025 21:22:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747689764; bh=OI5P4Jm394yZ5E6GBd4Jat7JRI0seZhD1C9gtHKvD8E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sJJxgIEbVFJxvtQOPUokbOsWfCArt+fMseiigGs0mp9oJ3NnSZ3VpEbcJD3f+8Yk1 8icntg+FoXJ47Dae7lYUmby5QsaJExkA64HlpOLzXhSOc5o001BJZTE7dufVkR8Q/b I2AH4ROwGZrex/3YZMQDkGrIELHCa4yDTbFza6ar3YZ8DgUmTq7GzAPHyqpfR+7J/g EzScHPHk0eF9crSyR2OcR+idHEZ0b3HwXH8RvGzDIO2oCDlRp60ksPmxrYwy2AhYhj KPBQz+byzDRXTNU13WSt8GVgCNotQC3HrHK3A3lSUf91BXHreaD0/1CLRySmPfDlP0 BiMrEZGkfUGpQ== 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.6 04/11] platform/x86: thinkpad_acpi: Support also NEC Lavie X1475JAS Date: Mon, 19 May 2025 17:22:30 -0400 Message-Id: <20250519212237.1986368-4-sashal@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250519212237.1986368-1-sashal@kernel.org> References: <20250519212237.1986368-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 6.6.91 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 cde5f845cf255..bcb0689101e2b 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -11315,6 +11315,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