Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5638674img; Wed, 27 Mar 2019 12:13:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkk/Xj9b0t4yMOp5PCt1fZ0XUOqwbcWQCbABLBwyn2Jc45PSsrCUXSFysUQbGbyzlSOEn4 X-Received: by 2002:a63:8142:: with SMTP id t63mr31022678pgd.63.1553713990741; Wed, 27 Mar 2019 12:13:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553713990; cv=none; d=google.com; s=arc-20160816; b=bLLctcAT8+GC233Yq7OA04+rK/ecyIRhzEsZ4wwFFsIrEXIGUO0ubyVp4IviUWVS7T S12yAryDvtZhlMhRpPVB2EM5j3zD2bhYuFC6oge3+TIM4IQNL+QgYUpZLINePDRsUvct JFxUjt+TL1nmqEGSR7jf9o0KNGF/r/5MfBF56YiHIHGv9rOuveu5PPD1pwm8RFMOD10H 38W7symKRIk+dVC0ho+Oe1PDDR56h6YOmwXeSdHr3fpQn0Qzq2e+Rrs75cw7INIa8+xw Ko+GBPjdrUwvFsy8G0FQyI5HSFHr6nn6JDGrwY+F4SYWZUiCL4Z1IBserAoiRHVEefVX SY3Q== 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=2EsYNi5ppOqhY2FUiTUQw5qS4NZKHDgR1KFsz5u6gcs=; b=rg4/G5td7TD9cZNJOyWUtHwoKi0EFj9oLdw/0LQ+Q1VlTVG5aHwy2LUGE8Qm8LxeDa TDa77jNs8eY0TUIy4zEOFtZME3kO3NcmlvPhXC8WqOeEH8XUL4t58r+tvcC0qQS/FgEZ 6qa1nIIpQQDhhkrkFm2KbVv3DzSrEGd/XJ1P/M7qjuQogiyerJ9ON0SVJLWm8TEgZCKQ OgIefwU83j/vUmZ4/eMdz2Otw8zAdlUBuNfY143Box1zc6bnQJPOzRS2sMMSPG6237R7 VFIn7yetcEnSya57QX0dpRQHEIJUspH9tz7cR6iJ3GAMKjyuXVjL980AjlRU4OHjsZQV Tntg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wow2wc4p; 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 138si18115252pfa.199.2019.03.27.12.12.55; Wed, 27 Mar 2019 12:13:10 -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=wow2wc4p; 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 S2388813AbfC0SK1 (ORCPT + 99 others); Wed, 27 Mar 2019 14:10:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:52376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388795AbfC0SKX (ORCPT ); Wed, 27 Mar 2019 14:10: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 BC4F62177E; Wed, 27 Mar 2019 18:10:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553710222; bh=VNLS4HSPTQbL952KVVEZwFGocV4pd99IvjWdPWqZcE8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wow2wc4pG0vXaOXNVZ9a0VPgxi3lyx1sEiJ8kqMxxKE510lqVkrq8iHdbuNgTYAJt f0Z/hhjsoy+3UslOKZWTm41hQeFkRA9IHlf5RZHfjdsUA6/HlLIOMuNyyVCLtsY76X nPAyAkVGbfYdEr3xoIFgdNoAmYbaT2NPcmru8bQA= 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 5.0 261/262] ACPI / video: Extend chassis-type detection with a "Lunch Box" check Date: Wed, 27 Mar 2019 14:01:56 -0400 Message-Id: <20190327180158.10245-261-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327180158.10245-1-sashal@kernel.org> References: <20190327180158.10245-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 1ab1460c4a4e..d73afb562ad9 100644 --- a/drivers/acpi/acpi_video.c +++ b/drivers/acpi/acpi_video.c @@ -2143,6 +2143,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