Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1020723yba; Thu, 4 Apr 2019 02:35:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUedkf46ZvNf074YtEXJ+AYm4TxyXKtijl4OHFRwW23AatcPOa4erc/D2ZQs5KFIDJp4HP X-Received: by 2002:a17:902:f24:: with SMTP id 33mr5166569ply.47.1554370541703; Thu, 04 Apr 2019 02:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554370541; cv=none; d=google.com; s=arc-20160816; b=ner40ZpPhWw+jFdYrLSOe62N8gL8qHOgXKOhQxGwOQ6KCbcn5VHdpQveXaEDamy+KW Ozw8CVZ/qbUBy81mep1/JwQHzFEK8d1c4BeMhr+1roAN5kIaM7FM6w3CG+WI/PniaGSB ILYyfTwM73kGwUFPa4lceLq8oZK1CqZ26Cev+4B5eE3SZppu9d+YYq597pzk8S+W+Wls uIVotjrbsysx4/zXvhip/ZErfNhikr7TFVq6TpTtS0DLzFkfWpGkT49crkN/YILJ3AIj ur1RJudti1+WQcD50lQVJuJ6FdUy0yAz60tv182Y+srsnm4N++ugtLqVs7jP8nutfbnA aAJQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SnU4k8dmsESM48OcnhHzQ5IzBBITHxAsqvswBwz1pfY=; b=ESKDhgmgRxM2AZgLjX/B5yYpgF8z6j3hN5IRbL9NitmcGSeeat06l0Rhozng7Nu/lF xlXArVQkyeRPocSmiCzYTQL5UfHHJWse6MWP7nU0jzmgqXOMLdz3d8p0RvHYbbAzYeqK DIUXRoCBW951xp6Y3x51Yj++yX2/pH3CpfqLE43OGec6yqwRAT4JtO9BjAuPfGfAYywI CcZNnTvixgepMM4k5skg7qanKX0XLJ+l7a/nOMSNGVuzo5USLnJntRz4L991TdrooRk+ 5iWzlMUKFmiMyDltWE4zUYDYXGN0AmFBb5ZwhpW5lGct5QTloIaaLV6R7CcaZ9hgY05g 0YcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=e5mAHaou; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v16si15814390plo.33.2019.04.04.02.35.26; Thu, 04 Apr 2019 02:35:41 -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=e5mAHaou; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732522AbfDDJHe (ORCPT + 99 others); Thu, 4 Apr 2019 05:07:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:46326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732515AbfDDJHb (ORCPT ); Thu, 4 Apr 2019 05:07:31 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5E2ED21741; Thu, 4 Apr 2019 09:07:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368850; bh=11GGlka3p0CZl68vT7OmkfqyX4N8mg1WcmByD8ElWUc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e5mAHaourYYTxTRR2Dmi7eKk9770DgEq5SSjey4Tq21r6eWekyWuuLlwdTgLLlzSK LUT7/cKpieDmA7SKZqNsL+GHxbAp5aYqVWbdiIuGE58lV9DN7Tkjcrl7HLBtcLYA7c ysb/C314E+gOa5CiWzdiLQiLURsE9XSmVakHE+Yg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 4.19 185/187] ACPI / video: Extend chassis-type detection with a "Lunch Box" check Date: Thu, 4 Apr 2019 10:48:42 +0200 Message-Id: <20190404084611.828161905@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084603.119654039@linuxfoundation.org> References: <20190404084603.119654039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ 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