Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3709976ybv; Mon, 10 Feb 2020 05:07:18 -0800 (PST) X-Google-Smtp-Source: APXvYqw2ZROYjhK4y9/GVMhtuZP+Kka6iFWYOvISNwtMqmNXJwZEFY8VInwKPcEECcI85meiIfxR X-Received: by 2002:aca:c70b:: with SMTP id x11mr770675oif.29.1581340038636; Mon, 10 Feb 2020 05:07:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581340038; cv=none; d=google.com; s=arc-20160816; b=P7bOE2yByYhVuqMCKBuXkRaBjh3QKVUGlYABtphysa+7GgewhmS5el9yCX4tpATNbV d6aHY+vKOSRffOeuUi35CNbhZC5eq6eeNHLXsW/EB8TMf5xYe2+AWyDsaP+ebob6hDJi cwwfQ64lqxUO1q52hQEpjsL8/qG4/eR2vSPBikIWIoBpmHohEZNbctU1BJEbqpguggzU RXiUOsu8yO+gFUzQMds2MgJ83c/prVucXPB2uVmSd5CoIT/WkG6DzWg5o0ra2FcydmNy Bev3DishN6wL/Dlx2JCFovsRIU/1fXgwJ9iA1S5mmG48LC381PaJFnjnKw/mZqgVeOi+ GNKQ== 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=w9E/Ra/gJ/CABGBAKtoWoan3r164f2UMndOGoJ8g3mQ=; b=e+L9QGEvshyG8KrWiCQ4DkTe6Tl0vgv/JPcYPkOPHscP9SuG/GipRh84Czr28Fa8vM n89eu1tbdzCHHTl4ETivbcV7QpqLUCpqikMwp8QGeyVqe3To+jhrkk7xOVyj3KFuDDG+ Cdvn7GYwAx2bQWD9/sybxiJnKKQy6hMpbSy7eSyZ2h/LlvOmOYvlCBiYxwhWDQce/H/T fivgXL63F3p/G95+g11ojhXQnqznRVH+1vwr07L6j2PdoNfe0JngX/0LxnoQYX25OGQS jI4jOxzmqQ8Gu7bjnKiIBpWAJSkby47o/Y004KTsqyH02U3ihSUlMW5moLsWhlW6vkwJ pu8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2KN0n6Hu; 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 e26si170222otp.140.2020.02.10.05.07.06; Mon, 10 Feb 2020 05:07:18 -0800 (PST) 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=2KN0n6Hu; 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 S1730597AbgBJNF5 (ORCPT + 99 others); Mon, 10 Feb 2020 08:05:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:38512 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728730AbgBJMj6 (ORCPT ); Mon, 10 Feb 2020 07:39:58 -0500 Received: from localhost (unknown [209.37.97.194]) (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 5A07924683; Mon, 10 Feb 2020 12:39:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581338398; bh=/UYY92hIuxlKCb4IasHxTkK8sZop0UB/Sp72zc2SlF0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2KN0n6HuDl5glrchobofBvZwXp/85nT0ijU7LoArk+c56l/YdbqyVEQGUJjuD51UT 0TYsbKW+9zFcAY+7QCu/o/AdkICTQoDaUBSXP6eibvksUGGyGfuBBaIRq0pMgRLhks 85IPD1ntWn7TIr+zuVVu9QLiZEIRan4yXCtR+JWo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , "Rafael J. Wysocki" Subject: [PATCH 5.5 095/367] ACPI: video: Do not export a non working backlight interface on MSI MS-7721 boards Date: Mon, 10 Feb 2020 04:30:08 -0800 Message-Id: <20200210122433.134091289@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210122423.695146547@linuxfoundation.org> References: <20200210122423.695146547@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Hans de Goede commit d21a91629f4b8e794fc4c0e0c17c85cedf1d806c upstream. Despite our heuristics to not wrongly export a non working ACPI backlight interface on desktop machines, we still end up exporting one on desktops using a motherboard from the MSI MS-7721 series. I've looked at improving the heuristics, but in this case a quirk seems to be the only way to solve this. While at it also add a comment to separate the video_detect_force_none entries in the video_detect_dmi_table from other type of entries, as we already do for the other entry types. Cc: All applicable BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1783786 Signed-off-by: Hans de Goede Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/video_detect.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -336,6 +336,11 @@ static const struct dmi_system_id video_ DMI_MATCH(DMI_PRODUCT_NAME, "Precision 7510"), }, }, + + /* + * Desktops which falsely report a backlight and which our heuristics + * for this do not catch. + */ { .callback = video_detect_force_none, .ident = "Dell OptiPlex 9020M", @@ -344,6 +349,14 @@ static const struct dmi_system_id video_ DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex 9020M"), }, }, + { + .callback = video_detect_force_none, + .ident = "MSI MS-7721", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "MSI"), + DMI_MATCH(DMI_PRODUCT_NAME, "MS-7721"), + }, + }, { }, };