From patchwork Sat May 11 04:55:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: dengxiang X-Patchwork-Id: 796563 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-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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