Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4159186pxv; Mon, 19 Jul 2021 18:49:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3/7YDOZpNcHsa4szTQEBnZBCa2X6kdl+Trwpfdyo3j9ta+P/hgPLY05/pdlIVSFIX0Fvw X-Received: by 2002:a05:6402:d5a:: with SMTP id ec26mr38472314edb.4.1626745760106; Mon, 19 Jul 2021 18:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626745760; cv=none; d=google.com; s=arc-20160816; b=lzqbMeog8a3sd+cjBVROAz07TeK4Wb/cIpZlzY3J+dkHJR+ifCL/M+ViUuXEEmKoDM HixQ4UHMFfNvnk01kiA7iGDtro9KUPg4xb3lvW2QuMMssuxIhzdCIdHTLyPDflApEXgW 2aYzHF1APPwCFS9443/sWgyWQkMFJjdLhbBiJ+GSEVG/28IjYjT6CxZ7m/2CKFsQBlGO W8qC6FeZeRjmotWOSy+B/DKbgB31cnyb04SID4D/SwXfs2yOJ1PeG1q6AXXkEPX7IZHL nE5tWHQMiiOlq6FxnHOU9OUPOF8lEo/+5z3ujQYNqjIutr1r6Lg3M2PFvwUUncVWjCWN anew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=H7DnMReidvLc5wX4yvM99c5EHhnbyyqrWzefGe2w3ao=; b=qRXXOIJwBXoAauSCsX3DBmr4itI2V4XhYwBGQp1fiTMJCMZ3bf20BAnmdv/aRNmaVi g6hBuo4OJ90jLb33P7GsxgdchX+xXulQUIkVm18mHiAjhOAiTKXAje6Ze+ufPpsGjMEK ho/z6xPTGbwxMjAQ4jgAxEjG8RlWjoRZW37YYWTQ7PV12cs8FPyqDys0ET/rovhDDMHd /cDXuaXnXuXKKilCPGpYBgF64hBzm1IjrMQlQ/+NFAANuBUahmWDQSLR7W1BmTy7a/gE MhfYz7kIPIkfRiQhXh3x8c3mBC+R+nVmFPjmNuRYsaPLRftynuyz7SdwQ2H2jxWD5qky iYbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nOOa4bbA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si27859761ejd.407.2021.07.19.18.48.57; Mon, 19 Jul 2021 18:49:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nOOa4bbA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345261AbhGSPIw (ORCPT + 99 others); Mon, 19 Jul 2021 11:08:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:40454 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344058AbhGSOsj (ORCPT ); Mon, 19 Jul 2021 10:48:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9E1DC613E8; Mon, 19 Jul 2021 15:26:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626708370; bh=mSF4KWxKqflnSF5N8gIsUPwDq4JB+/Htfxs/bFcwq4Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nOOa4bbAy6pisYKVnzNmt9qXRlgj8O4OxfFBw6VzzwnogSDyv+tK5OyP3Oy8/DEUq D5N/AHheXBJ9owYM6UdhB95bCOp29RQi3Avc5Q/HEWAd2+REWiJ/TmTxBTC5XD0wPt VMGrEUdLC5TbDwm6pO9nizGRs8EKUkEt80HEnyEY= 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.14 283/315] ACPI: video: Add quirk for the Dell Vostro 3350 Date: Mon, 19 Jul 2021 16:52:52 +0200 Message-Id: <20210719144952.739916565@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144942.861561397@linuxfoundation.org> References: <20210719144942.861561397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit 9249c32ec9197e8d34fe5179c9e31668a205db04 ] The Dell Vostro 3350 ACPI video-bus device reports spurious ACPI_VIDEO_NOTIFY_CYCLE events resulting in spurious KEY_SWITCHVIDEOMODE events being reported to userspace (and causing trouble there). Add a quirk setting the report_key_events mask to REPORT_BRIGHTNESS_KEY_EVENTS so that the ACPI_VIDEO_NOTIFY_CYCLE events will be ignored, while still reporting brightness up/down hotkey-presses to userspace normally. BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1911763 Signed-off-by: Hans de Goede Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/acpi_video.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c index 7df7abde1fcb..5a69260edf80 100644 --- a/drivers/acpi/acpi_video.c +++ b/drivers/acpi/acpi_video.c @@ -556,6 +556,15 @@ static const struct dmi_system_id video_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "Vostro V131"), }, }, + { + .callback = video_set_report_key_events, + .driver_data = (void *)((uintptr_t)REPORT_BRIGHTNESS_KEY_EVENTS), + .ident = "Dell Vostro 3350", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 3350"), + }, + }, /* * Some machines change the brightness themselves when a brightness * hotkey gets pressed, despite us telling them not to. In this case -- 2.30.2