Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5611281img; Wed, 27 Mar 2019 11:40:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTsu5H7AXU6sQ1MbYf3BoTUTAT4PFMhg1sV1WqdIbroL2Gkv+2DF4KVWJh8AjxECbT+w01 X-Received: by 2002:a65:6107:: with SMTP id z7mr22094246pgu.313.1553712031271; Wed, 27 Mar 2019 11:40:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553712031; cv=none; d=google.com; s=arc-20160816; b=xWIH6EAtZ9hpSUvAAEm/pZLHgkENaWMQd3mgO87p4qzPcNPni5mkjBgZwkrzx9khts EKd7mCSA58kg2+fy2tvw4co9UXetMqA1F1g0gAt1ZOyX+RyhHPgqdbl230Uy1Y/CmqpQ 3SmHa7KVf6kOExcwUI+xnennu+ATJtCSRtbdT0+ssRD9p9KdEuVduPAjedsFwi2IHHm7 vpBFvH74yH6bwmjJOwXkQ+NpTLGjEmE+knokjw+0gKD45xASRc+h42l0whiujOLmaOQH ZTDIw+prJr9nmFXE5og/VVFKwUAvz2ADYnZj/74sbqLE4ShEJ4kdiyfOnNewhPfr3JRl qohQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5MPV3YUkqsGTdUIxAmdoSAy/ZBsEka4ViwXmDyXCe/o=; b=zBzgI13jcOxIAiRsMg3orpkrIrCaBpeWlGGiWChhY02z5VmhwVFNGUODQIy152v+oe KkKPxa39+z8OzfQc6PAzQSzdze77WzQgiSh9TbTbilL95sjhAfPREo51fF5RKTfzjT/r F7u1ohK3i63ecGmmp9QLEFGmXt9N7XURWjcKUYSuaI6oPYlg0WCc2KcEVg0FlMBtQn26 wz4P0TGMFTr1ZH+XHne8a4tKx1GgUT4VH9hDdvhBBB++1m3PxZweTdTgImEx2VHury3N 3EDshiDn8O++1YYaPbHb7ZmOmlrACRLoE9RwRqBkhLHcZQOiBJrJRdHe5jSD7j2hysfd EaEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zXpwnCOu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si14064206pgh.171.2019.03.27.11.40.16; Wed, 27 Mar 2019 11:40:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zXpwnCOu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392056AbfC0SjE (ORCPT + 99 others); Wed, 27 Mar 2019 14:39:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:41882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391473AbfC0SXX (ORCPT ); Wed, 27 Mar 2019 14:23:23 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 24BA52177E; Wed, 27 Mar 2019 18:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553711002; bh=jdaNtams8p4eOFowl2JR4jKmuj/7QHq7wCJ9m5zHyJY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zXpwnCOuR36maRh+/vpI5UJrBAkzVrlFna0E+SkETdxTVw7LHBzroe3AlQyJnAvU5 oe8+499SDeLDaFxd4suOusAYOuh5p5JFJULaxDzQrcsDFjZg8x+NTmnNur+FU7lih7 +3hM5j+rvyhp/GGOr7TzyFai+5rMGAQBugT1tOGg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , "Rafael J . Wysocki" , Sasha Levin , linux-acpi@vger.kernel.org Subject: [PATCH AUTOSEL 4.9 87/87] ACPI / video: Extend chassis-type detection with a "Lunch Box" check Date: Wed, 27 Mar 2019 14:20:40 -0400 Message-Id: <20190327182040.17444-87-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327182040.17444-1-sashal@kernel.org> References: <20190327182040.17444-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit d693c008e3ca04db5916ff72e68ce661888a913b ] Commit 53fa1f6e8a59 ("ACPI / video: Only default only_lcd to true on Win8-ready _desktops_") introduced chassis type detection, limiting the lcd_only check for the backlight to devices where the chassis-type indicates their is no builtin LCD panel. The purpose of the lcd_only check is to avoid advertising a backlight interface on desktops, since skylake and newer machines seem to always have a backlight interface even if there is no LCD panel. The limiting of this check to desktops only was done to avoid breaking backlight support on some laptops which do not have the lcd flag set. The Fujitsu ESPRIMO Q910 which is a compact (NUC like) desktop machine has a chassis type of 0x10 aka "Lunch Box". Without the lcd_only check we end up falsely advertising backlight/brightness control on this device. This commit extend the dmi_is_desktop check to return true for type 0x10 to fix this. Fixes: 53fa1f6e8a59 ("ACPI / video: Only default only_lcd to true ...") Signed-off-by: Hans de Goede Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/acpi_video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c index d79e38abd6d9..ea0573176894 100644 --- a/drivers/acpi/acpi_video.c +++ b/drivers/acpi/acpi_video.c @@ -2088,6 +2088,7 @@ static bool dmi_is_desktop(void) case 0x05: /* Pizza Box */ case 0x06: /* Mini Tower */ case 0x07: /* Tower */ + case 0x10: /* Lunch Box */ case 0x11: /* Main Server Chassis */ return true; } -- 2.19.1