Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1802740lqo; Sun, 12 May 2024 20:39:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXl/sG27nL4V80hlBdcp+ZQ99T6kuUlH6LtQveMDGy9vywDp5ND0zv/YQ6DVGSYc+H8wgH/RMF6/wnVt63rdL5JTjbW3yx4q7GwxreZUQ== X-Google-Smtp-Source: AGHT+IGltwHWL55Lo2W6DUzMe/FQnUcHwn1+hVHJG/LLm/yW7SzQWsK7D1Oa2ZTrxoLfXOnpMGpH X-Received: by 2002:a17:906:2b94:b0:a5a:412b:93ef with SMTP id a640c23a62f3a-a5a412b945bmr338410766b.7.1715571543650; Sun, 12 May 2024 20:39:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715571543; cv=pass; d=google.com; s=arc-20160816; b=Hm8SKa+K1Yzgg+9nuo/OUpxo4NxqrNfOOuSyUXzPr6OabYn4FyBEuZBMdWZEWVJVAz kwAEkhQdD858W+QgOD+Vtwh8yQGgalcbHSsD4qD3Sg1RMA1xIv+SmDDris/y8XLzymfw cjVkRdCOBq0v5lYwaZ1yWA9UH9N09icTHvvWYRKCfTBrlrh8jam2r4cstf0q83tIQPMJ ET7gS82vHAoW/WuHRmp9Ukwg+Sg1LMNgZzDvpqlqDWpAZivnRANtYCFFbMUAsFELQrq0 dqZLsEBOeBUakgcYpCnCxOb6N/XivefgtpTu54U0e0nuT6xJ4+8mycjMWbizNOIZHhkR xvHQ== 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=s1DGBLo5671+sLZEnd5G7+K7XVZgBoU9dujgdG3jmvyWa4ejaow+uVsRQueQVydokd YdK0JB4J+bcQ9Ls2zD+jYrC+7/a9jut7YIB//7Jo2w5iuFgDDNqLGS8PCXSMgJ15L6xD hfL8Ew60GA/xEgKTB5BzHQwzTp2uDXnrEObnHWPOod+XJXOgiKcgGph8ZgCDw8fZOPRA IkucuuguXl/cKIuzj5RSj5Y7e8lt+UK3UACcHB3VlNkMQ6vspZhRGweVEh6Vf7DudbHZ 0/foEnadpF7ncbDeCw9Zij4vxm7xq2JydPOkL4nvpJND7i/NfsHEh+NGcRXR9LyT3d6s gc2Q==; 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-177132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177132-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a182e1298si469609366b.708.2024.05.12.20.39.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 20:39:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-177132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177132-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 62A511F211E0 for ; Mon, 13 May 2024 03:39:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7FB9145FE3; Mon, 13 May 2024 03:38:54 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id A3E4542A86; Mon, 13 May 2024 03:38:50 +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=1715571534; cv=none; b=NX82lTzI7MBajK6ie09aw300JVr3AC3UaWDffDyRbh0GC8POdG6yf/pNMTgjXb3Oct9vddKZHNJQGwQPEtm1Cbx8mVFNRR8z4f8yIz+CwwGFvMkOpX6f4EBljhBmwCeE4OF4HXDRPZrxACOZZ+XYAuT/7mOokpe6lgYzt7T5yKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715571534; c=relaxed/simple; bh=tkh8eCP0pbd39xurVRNii2rqP0hk0zpbzdUfZw4bnTo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=m6Ghsm/7jOlqabeglz8VxyWDg4KcNw6btIFXNCZw28I12l/9d/Q60nhZpiHMjhsrxaoVQOHsHQRqvylUt2wK79oTYK821rObEVRa5ZYypYqvMxTltvu48BlEygMkNVyOYyrZow2bMiFhO8q/KIQFvB7QeGuUIAGxvsR1McPVcOc= 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 13F916046A8C1; Mon, 13 May 2024 11:38:47 +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: Use vendor backlight on Lenovo X1 Carbon. Date: Mon, 13 May 2024 11:38:34 +0800 Message-Id: <20240513033834.9174-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