Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1800141lqo; Sun, 12 May 2024 20:29:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwE4zUH9c2HpcxrCCsP0KV9S/eOHNoz/BroCsu0SPlP7ifx+W4jrWE+/61ouABd293LxoehhSAk0GTeF1QH7xAHuavXve3I4SlQMvM2g== X-Google-Smtp-Source: AGHT+IGjUaOpFcyjyYT6PzScvllakV2LFgn6nttZc5JNEnjgRr5LyV70lzrk+bFY1g7LOZC6leoN X-Received: by 2002:a25:ae45:0:b0:de6:1057:c85f with SMTP id 3f1490d57ef6-dee4f2cf86emr8093055276.22.1715570978923; Sun, 12 May 2024 20:29:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715570978; cv=pass; d=google.com; s=arc-20160816; b=b5B78vD9OgYbaCLQA8ZZ4NR8RL1fkGajfKI9V0k5JP4XfIzY5GDKFGBiEZswFi7af1 FCn9KWYAXU58ZUMqzyYnk5nBOEALzXnavFZuTUyYwUBNGA7LGotOBh3gClzGmW+GiivS JaH7aFcxBCV9DhR1VaIGoVbTU2yYwyuihJN/YXGhxlwKb/VF3P52v3OqqIUrthCBq+lk u5PEyDCM10knyuXSTFX3zDoyV6do2OGlxykKKbhwAbiO6gFf5p9vIiJaTXC3+uF2CAQF f5omjzHY04zsacWyHhgsP4i84qsudG52vk21emL8la6CjrjEhDH1UVJgFlX2RwW+Lga+ oe0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=k666th2HXANlerfKVUzBdqUuexV/w4Gz/WnDogcliRs=; fh=h+5wclz8lFHRGHlvZQ98LCTn0qD2Fr6J+xby2ZUtrL0=; b=E8tdgvt8FcpKT/ydAYYZXHb+tZ1YCdT7GuMPCC0I3doH0zzRypeERgoqWaD6o9Cgbn 5txykFNU/zOWNIu/+W48HLbQgPUACzICTewwl4sZJFd5pt7cck5ey8bPqRxfnDoZaFaB EF0zHE9BjHBpxpXGy+XllGyKP89n5KvHR337EAhuRES1RYnkaUuNX7/V3fCxxI3QBtEr /KP81pgceWuB0bkPyUtlDD5DP5+TtMjY4keNlIZqFnN6Q9CFgcZ0H2qrR4TG+VsJviz0 wDgbC4TUNLHZOmevSoiAV98Fyrwp3sUcbQqD+Kf4HFnp8NKpQtg9Pp1PIqHbENqTTHxk 8XXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-177130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177130-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63412958e3dsi8386618a12.658.2024.05.12.20.29.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 20:29:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-177130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177130-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4A46EB20DB7 for ; Mon, 13 May 2024 03:29:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA67E145B3E; Mon, 13 May 2024 03:29:29 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id EFAE1145A11; Mon, 13 May 2024 03:29:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=42.101.60.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715570969; cv=none; b=ZOtWabiQfC/rEkaNicVApHFk7GtCRFCenc1NjabquBxhP6diz06IFPSj9A2HKNkCeH4m+isHqcthabVLIVcqdEfIhmL3Gq43hW8Y8Il0uSNpvNikU8uzLfV7gH7BVXzNAtmny0K/EWgjZitcPvGlSpAvCRwBrigBgdmndBv7fZQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715570969; c=relaxed/simple; bh=tkh8eCP0pbd39xurVRNii2rqP0hk0zpbzdUfZw4bnTo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=t2VsBvyMV4thKEEBu08H0R+bNq+xNqnX5AD8I2kADPw7PHD4GR8jM/bhOrX6A7cZJ3op9DAEbVMQG6ew7xXA1kZg0/PQMIEpQGFEvnWKMIpcJ3OhY7SOv4FQ6DGwiLL1UyGb2lfF9P/rgDZXrb490LAatYeGS3Vz8y5g1aIGBo4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com; spf=pass smtp.mailfrom=nfschina.com; arc=none smtp.client-ip=42.101.60.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPSA id 8E9B56046A8C1; Mon, 13 May 2024 11:28:45 +0800 (CST) X-MD-Sfrom: dengxiang@nfschina.com X-MD-SrcIP: 180.167.10.98 From: dengxiang To: lenb@kernel.org, rafael@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, platform-driver-x86@vger.kernel.org, wanghuiqiang@huawei.com, prime.zeng@hisilicon.com, tony.luck@intel.com Cc: dengxiang Subject: [PATCH] ACPI: video: Add force_vendor quirk for Lenovo X1 Carbon. Date: Mon, 13 May 2024 11:28:31 +0800 Message-Id: <20240513032831.7983-1-dengxiang@nfschina.com> X-Mailer: git-send-email 2.30.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Lenovo X1 Carbon advertises both native and vendor backlight control interfaces.But Linux defaults to picking the native ACPI video backlight interface, which will make that the vendor zx_backlight interface to not work. Add a DMI quirk to force use of the vendor interface. Signed-off-by: dengxiang --- drivers/acpi/video_detect.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c index 2cc3821b2b16..e647186b4e83 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -875,6 +875,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "Mipad2"), }, }, + { + .callback = video_detect_force_vendor, + /* Lenovo X1 Carbon */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "KaiTian"), + DMI_MATCH(DMI_PRODUCT_NAME, "KaiTian X1 G1d"), + }, + }, { }, }; -- 2.30.2