Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp904263lqo; Fri, 10 May 2024 21:57:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2cuwNDqFx2T+yUw3aIZLlPAqfFqt341C4RxtEnohD234MVktmKeP1B2BuYWEeHwsXXxv9fjyrRysgivRA0xBQgiyEZM9TWoIJA1XyCA== X-Google-Smtp-Source: AGHT+IG4Rq5pfL8GMIm+6JQPlL16B5wnDeMZgbZ2TJWBDBAAvrS6G+G08bR9uHVxow33CIguRmrQ X-Received: by 2002:a05:620a:bc4:b0:792:bd1b:e20e with SMTP id af79cd13be357-792c75ef992mr592661985a.50.1715403428282; Fri, 10 May 2024 21:57:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715403428; cv=pass; d=google.com; s=arc-20160816; b=0okg45S/UXPcDahuc9Oa5F/E1KPv+V6pND+wzPmoWOzRyfB4lWMe7lxEruOjfwhEjM Ee0SoXHesV2wFroUbTm0La7YBuzhvzQ9jfnmXcc0I04C+2GBEqLdHjNyYm3RJev4+dxt EUGzNlrmJ38B8DeoPt47E8tYdlEylqtC4rQ/r1yPYFAvctyS1zeotvOee4mzfmpnAAu2 +3lrOlfVSGGJI2wf055jIpEZY4hH0F1hAkBzvQhW75XOuhsmEkTgMdPizduIvEqitW3V XmbwikrXTdyGOu5XnRvQkwH6hbs5v+DBh8Un1Vl/bFZWOh7JZf+8VBbsPDnLzswoMDYd +EGw== 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=I+Ds6uwbTMZswlxu/PkkoOuzg2msTT6JfSc9CAOaxEQUMHMOQ5ibnStwoy+GElTyAM HUhwVXwlxK7CGrRlerAZOj/r7diiu1H1fHIDNJ0N6jo1SF9MmFNQhXaV3mSOFxOUNCA2 cjsp6syGVNS+W+BxSqmLTwSIUvlNRbLnNarD7w/twC6TtKmCoPG3ac6sj9uNE0XNZ/2p niifzR/2wdaNsZ5BfZnY6MZA7NTCCMOfoF+J6VQvwr49N0a7d2YeA66X9PQoyaQp8XqN hHZmAcWf36OY9Avh5w2oMQLSHsOGBl/faAblGoGebmsEgiimtiu25oiuy1SdkS3vvRV6 xijw==; 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-176419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176419-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf30ac78si486806685a.277.2024.05.10.21.57.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 21:57:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-176419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176419-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0A0EE1C21494 for ; Sat, 11 May 2024 04:57:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9569546556; Sat, 11 May 2024 04:57:02 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 05FBD335C0; Sat, 11 May 2024 04:56:57 +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=1715403422; cv=none; b=IAtk/pTGp3y855MAyF27CnFI7DeZxuvx1nV9xkOl7lGqW5b3xBnJAmjEeDs36GaOzFTfngUY3HszcLSWk14uB0SVlwou6Z2jHc/bHVaXNMgazmgDblQgHHpipxDvgfMQH8jbSZCfhd4vf874vGf4N/LWyqM2d8QxF+8YhxL58Uc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715403422; c=relaxed/simple; bh=35IFkb2sCI/q3Dkj/60wbU07Uyb9qQTaJ6ONuH/kRKw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=M6+k0kcafRWJwagtAM5AHXZZQcC8KtggZvsqtsDHDDM3iIqJPlEuBoHyX5NGCmMNpWhax443p7hNN2YZBDBgYN1Jo+vBiDGOd0eFz71SyDu/Y+0x5TyP8LNCFOrTm5nLqQ0Y71BgP8PUAnSf/I9wS4Y6A4pLVl2hOnr1vc4YfI0= 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 98FB6602F9065; Sat, 11 May 2024 12:56:55 +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:56:34 +0800 Message-Id: <20240511045634.12270-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