Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9100049pxu; Mon, 28 Dec 2020 06:38:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQ/edjA0raveuhFz4BeM1SQpKyJSnwPJBc5BPUXSdivgr1rPyCg8zPSInuNC4EmBuKGIJS X-Received: by 2002:a17:906:7f0b:: with SMTP id d11mr42177309ejr.7.1609166312731; Mon, 28 Dec 2020 06:38:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609166312; cv=none; d=google.com; s=arc-20160816; b=Iv8R8L4TceDAlxhqvBBY373yZo4+ToeCjeF0FXYCxssvtZ2dl+5sHuiZLGRS8a00X3 MmTwYcOdj8A4A76prBiH+pfau9yTAGe7hQRfL6ikKPdDnRO+hDeeBtPuQQa7n+WRqWz0 OV0RKqvh6e9KnW+bTGC8I3xR6JvIkzk7Skn+w/HzJWyxHDnIwkLG1zKSYS7LNan+NK41 3OqqiMnmU4DX7xY+PcCDllQl74n2Wywabdw8Q/iX6wtnF1u0kJ2L6kQPi4CtFvCNcI/3 sGR2eOxIJ/RHo5Bduz6OFeP2MHTv63I/+IWeYlf9W0zOOLNdIuU84epCpaqNeg9+BHxO M95Q== 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=2tdRACgMOQS04J9QbW4RhKzGoAR2fvXM9s/TX8iAk3c=; b=pR9AYDnAmftn+EtfZh2yNMFqRz5TQxivOodi5dDZViGY+aQKxWS8ykkIzYd0xC6+yT t9sp2O8ZgK+t3tGBgE+ZgoL6Q6d4ZvKY9cx+tl6nYQXRobbNwZRdbwN4ZycPxObvrhcY AY67t4ykszxO3FSEIvFH5G4/EI46zQQTFoxGPteATGAenuHfDVT524iyDHaLvfWcavmF 9lFs+kdUVpuJVbGKEnoUa8BmI4Dlez1KgLYwIBvpMzwxHLxQL1FCV92onmt4J+tzpIal BfaufClyTgNwyvkhEGgDgLVnTfbR2TqZWL5+UccxoHvxVh4sOj5gnYLpYrlv3+wcbNeY AuRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2Yq11nw0; 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 a21si18640152ejr.58.2020.12.28.06.38.10; Mon, 28 Dec 2020 06:38:32 -0800 (PST) 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=2Yq11nw0; 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 S2504856AbgL1Oc7 (ORCPT + 99 others); Mon, 28 Dec 2020 09:32:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:40036 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504706AbgL1Ocb (ORCPT ); Mon, 28 Dec 2020 09:32:31 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id ACEA322BEA; Mon, 28 Dec 2020 14:32:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165936; bh=v0iFqxSzFZ1hMPakMM1V68IL+iaKKBi0HfkVvQCwLcI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2Yq11nw0JUe0kqoW4f/67JMxG5ddFDX/bZKHHT3uEP6mgbVM3oVtVJp+LGGo7Fbdi uxxxUNkkiIwaMjq0eqDh03a1dnD9DguvuXORdSjTSTHFB+7FPg21Z3+dDRYx/wVNyH W5qH7GDvHj9H7yG5kVib1zGg/+LprlCjjrFauHpU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Carlos Garnacho , Hans de Goede Subject: [PATCH 5.10 706/717] platform/x86: intel-vbtn: Allow switch events on Acer Switch Alpha 12 Date: Mon, 28 Dec 2020 13:51:44 +0100 Message-Id: <20201228125054.813845394@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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: Carlos Garnacho commit fe6000990394639ed374cb76c313be3640714f47 upstream. This 2-in-1 model (Product name: Switch SA5-271) features a SW_TABLET_MODE that works as it would be expected, both when detaching the keyboard and when folding it behind the tablet body. It used to work until the introduction of the allow list at commit 8169bd3e6e193 ("platform/x86: intel-vbtn: Switch to an allow-list for SW_TABLET_MODE reporting"). Add this model to it, so that the Virtual Buttons device announces the EV_SW features again. Fixes: 8169bd3e6e193 ("platform/x86: intel-vbtn: Switch to an allow-list for SW_TABLET_MODE reporting") Cc: stable@vger.kernel.org Signed-off-by: Carlos Garnacho Link: https://lore.kernel.org/r/20201201135727.212917-1-carlosg@gnome.org Signed-off-by: Hans de Goede Signed-off-by: Greg Kroah-Hartman --- drivers/platform/x86/intel-vbtn.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/platform/x86/intel-vbtn.c +++ b/drivers/platform/x86/intel-vbtn.c @@ -216,6 +216,12 @@ static const struct dmi_system_id dmi_sw DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion 13 x360 PC"), }, }, + { + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Acer"), + DMI_MATCH(DMI_PRODUCT_NAME, "Switch SA5-271"), + }, + }, {} /* Array terminator */ };