Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3859283pxv; Mon, 19 Jul 2021 10:26:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3+xuEhr62hk9dxET4Ek2VAS8EhHTyIiS8nC/3bvNM6hIQnV+eHqu/9knLMqGxkLfMZaKl X-Received: by 2002:a17:907:3da5:: with SMTP id he37mr28274775ejc.189.1626715608559; Mon, 19 Jul 2021 10:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626715608; cv=none; d=google.com; s=arc-20160816; b=ErIDC3tSYUYoQaoPh8HgXjgcoG0tf+ENtt30BjPXiI1+515GltHKEl3a/CWbLDJLnD smfHbwX2q1Wa8L2fZtHpS7FbTuEgaH7KdCD0Vsb84jdXfIyy+OFqS/cBv1U0SLXK/Ozn /S24zVJidQcgN21K1Z+XVMbJ71SP4i+4+Ry5sDJj92wn4Pudct6QS9ee1hbyxslfpLGj LFxmVCsvUs5J/NPAF6yEfyzqRvZP7cbYRSDTvcNrIl1oycaK/O0tcKyiZj9T/HNwfvFH RKZhzJ+VXohFtInIV9EmZkgymwGp7bghmh3yfy8trU8NZGYt3q1VMEwbAtePqNgA2RfX e82g== 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=QMFLmxBaE1vX7WZya3XRknGwyHxvCbfDDHMUpxl7Pk8=; b=pseFXGrhJbOc2oMiyrlvXdzX9yxkdtSuObYrhBFpctuoEHkj8aiHJLdJXsXXIeKTNx CAEYqExjscZinX7IH8B1mBR/r26c6v99gBFsglrPYmJZopu/7OhBpwesSvUvG/mwDJvK 3AUubZ1W3cZhytas4IacZW03GTEM2eYfd2YBD4rK7osPZ6aUZh6tvTFdWP8Am4FycXIJ /KK7xGbyHHP/WtA8CBRITrmHIyE3FJ0TrIjXa/q7zdfoFWjD+wBnqGlKqffEbvLJc/a4 wDLiioTBEZ49mKBan48UM7vb0n1VUZIWHtdukPvhGxTtLr2/gFRnXSLM4Ihc4SdelJnx t6Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OzJ0v8JK; 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 g16si3521700ejm.150.2021.07.19.10.26.24; Mon, 19 Jul 2021 10:26:48 -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=OzJ0v8JK; 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 S1356062AbhGSQke (ORCPT + 99 others); Mon, 19 Jul 2021 12:40:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:57794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347481AbhGSPRp (ORCPT ); Mon, 19 Jul 2021 11:17:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3B66C6120A; Mon, 19 Jul 2021 15:57:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626710259; bh=OBUDEwLW8QxBiAPrBetZCJEGlhRS5cHmP3/lfv6A0Yg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OzJ0v8JK4RI21TVI5/TnZyO/eVKZFLi4pHwAsL+jeNk378dwawWMpD6qcr0eCvuQm FGlPRXndIP9jsBll90QdQWXBQLfUkRTVdgH8G8yXOAOffezbM/sVVG0MffSFPOB7IE 9BvDGVemKzm5wfWd3GOyG6JKkWpA5R5QKsUFmZGs= 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 5.10 141/243] ACPI: video: Add quirk for the Dell Vostro 3350 Date: Mon, 19 Jul 2021 16:52:50 +0200 Message-Id: <20210719144945.468472625@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.904087935@linuxfoundation.org> References: <20210719144940.904087935@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 a322a7bd286b..eb04b2f828ee 100644 --- a/drivers/acpi/acpi_video.c +++ b/drivers/acpi/acpi_video.c @@ -543,6 +543,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