Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp904107lqo; Fri, 10 May 2024 21:56:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJy9wN6nZ7vuYWJ0rGp6YxqzPnYVuTjdMnx6Qgv98L+LDopDPtF5Tu5w7e/bXOjrF+gnPiiWPYpY/oAHn5+nDHqKBxP/pDMNAb3Zo9Ew== X-Google-Smtp-Source: AGHT+IG9n7D6Ulf7k5l7ZIIRfT7cSLUV3Hb7JG7VyAJulutyUfTpPf5NATmOZtUaMlh9Gu55uFVf X-Received: by 2002:a17:90b:1051:b0:2b4:35a9:65fc with SMTP id 98e67ed59e1d1-2b6c75dce41mr6866700a91.17.1715403387296; Fri, 10 May 2024 21:56:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715403387; cv=pass; d=google.com; s=arc-20160816; b=wTq68iJhXkXrE0WQS/haltiBHb2cbsmNFL1UGAFR/YXrcsNxZgf8Mob9+RLtf2J/cz eCts7PUuEvs8YVi+mm3OgfH9DZnPjtztSJ1sfOpiHsEuVaXsSepWo1AkstAC9BAnu6U2 DFv9w3l7jsjUp6/HaiI+vd3rWfKDqw0IGW1Q0iD5AVsTNPiG9gO5Eo3437QJ1EX05ld7 nVDKUoyUxLrt1oVCdZOe96kCkl6M7VYVzpDWZ1FQwxpBmATTipXx06z73bjkT55w3Ebe D26/HOA83FBGb6iDeiUr/rLjDtCNGQEpC1hn4JSSGdBhFRSsTbTUMcH2ajVGul2y+Nw2 hprg== 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=t8h5t5L8IqApNlqZTjoJZh+WzmbVNUI/KTCssXB3u6M=; fh=mBq6NQav6kUEk2cy6P4qmvxaZiau8dVWdORwtBCZZbU=; b=hK/KkNoSlTYf1h73+HP2XMuCUhHaorp0ArCRCb5lxMKWYt0fHNl93dCeKCrTTcxIHh 0NdSU+t/TvuNC61pd9beMbbinZXpLs4gfiCNz/0Lskw/rXFaKq81zW03Q3OgKevIx6ca gq26T25ozivz0PSlAg9HOyN+ySyU0o6tQVX1GrLVVv35G242Wrj1NzvUE4X/gw90pLvE YcSmII0xUQ2iP29kqh+yR43d/evjUOaBYH5D4RZTXOw7XaXPkojEvBJqNwgcs6h/zWwg 6h1RwsW1s1E6eJOm+fLZuYsqx7XvMtogm+v/P2o7bYNKkqt4YGqbFTcM3lMHRdGt/Kxe fC/w==; 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-176418-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176418-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b670f59301si5114661a91.72.2024.05.10.21.56.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 21:56:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176418-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-176418-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176418-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E80B42827D6 for ; Sat, 11 May 2024 04:56:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A912145BF1; Sat, 11 May 2024 04:56:21 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 8328C28E8; Sat, 11 May 2024 04:56:13 +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=1715403381; cv=none; b=M7eLYLDypaAEk3Riqf6txL5OD0URws3fDtX5KnLpxJHK9EGF4WOLXpApmrfeepyAJP8iUDQ6UTiO0kZK+w5rX3y5NgM9TKa9ESENNigOFChvlSDETvY+xVEQrNudzqGs/5D4PEkKdvhgtREe9hpGLz7h8Ov7chgJ2zE9aUkv0eM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715403381; c=relaxed/simple; bh=35IFkb2sCI/q3Dkj/60wbU07Uyb9qQTaJ6ONuH/kRKw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=NZE+D9v9w9pLejkrL8IM/yElXQlSO/3Tu87re2RLHI5gEHUANkTcQVKvGiDd5rKeu34SptRI6b6PFgBaQ7CBLy3zJwv4aMS4xeSFiCAO+Z+sPg6dEVK1gciFxtgTWXiVqeLRDvg02UOsHTCfEZ9eaQB7vNPyRgzVs8kb1ulJsI4= 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 312B1602F905A; Sat, 11 May 2024 12:55:52 +0800 (CST) X-MD-Sfrom: dengxiang@nfschina.com X-MD-SrcIP: 180.167.10.98 From: dengxiang To: lenb@kernel.org Cc: rafael@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, dengxiang Subject: [PATCH] ACPI: video: Add force_vendor quirk for Lenovo X1 Carbon. Date: Sat, 11 May 2024 12:55:40 +0800 Message-Id: <20240511045540.12186-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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lenovo X1 Carbon advertises both native 0 and native 1 backlight control interfaces.It will result that native zx_backlight interface does 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..ed02b2d8b619 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -271,6 +271,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "PORTEGE R600"), }, }, + { + .callback = video_detect_force_vendor, + .ident = "KaiTian X1 G1d", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "KaiTian"), + DMI_MATCH(DMI_PRODUCT_NAME, "KaiTian X1 G1d"), + }, + }, /* * Toshiba Portégé R100 has working both acpi_video and toshiba_acpi -- 2.30.2