Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1643459pxy; Mon, 2 Aug 2021 06:57:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpc9i/rMAobOl3PvQSjltT3i6/CStN/ebDZm01F0t2sRtNM6aVEKXvpLrpVAClFeGy/Oen X-Received: by 2002:a5e:c006:: with SMTP id u6mr2196884iol.66.1627912678757; Mon, 02 Aug 2021 06:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627912678; cv=none; d=google.com; s=arc-20160816; b=00/F4mk6rE1sgsV13DBf1QcVKtcdLyLv+9iP8ls5LRB3xOa3i9Ky1QHON5LwbhLzHS cSSFab6K1+jO3hBlUzpjupPZ5LJDkQRRsdOWi03ZbmheXv+3A9hwPtWqTeE5/UcS4OWs sCU6vXX9oNwc0aRXyFpRomrCPPrLJEbJRwFx6izpeuC2nrPvZdxlwjvPhMJg0g7x6/nz fc5sFIU+jfRL6dZG/6DkwS4jp430jrnxPhSmogoLgSUtnVGIkaWFlpgd4ZX5AqQgpMs+ Pe6bvD1ZW/PaA9LP2mT51zN6wgOO8h+HYfghdNXXzziemWxBSIQ44NanMEiQFYaTXR7t iiGA== 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=kXVdpedgtHVRqbeGWbO0NuUN7qnLnKMiWiI+YfSopX0=; b=k8VCi6MUcCNIy8yltENhMiDJF0OU1/vxepRvsDP8EykQCg+E+bX+cfeFMQVTtGiMK+ 4IOI7rUdFWpqmu34Dm7Agtl1gno6OwfT9pkfy7GP3EVzs+MuznYjxMM8afkZJ2ngjvUY BX3afH5USdz98F1lFWef5oKzSmFoaA7erHOy/4GakzUFakSpxTvwIGh62uC5VYDtkWoW kfNI8B/Lml6ifJsUyELP1DZXCkQBpGyNjCQaG7dW+vETXPNr82p2ILmcKVW82dZJVfjq XZMZFMhYVyf8A5KyiZnbktmpbcFbQHl5b6BqkuiOSgD6jcWbNXob3BjJoSBRHFbm3Pnr NLww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZGj7eHcH; 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 l14si13399036ilf.126.2021.08.02.06.57.47; Mon, 02 Aug 2021 06:57:58 -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=ZGj7eHcH; 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 S236161AbhHBN5M (ORCPT + 99 others); Mon, 2 Aug 2021 09:57:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:34094 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235064AbhHBNvU (ORCPT ); Mon, 2 Aug 2021 09:51:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A244361029; Mon, 2 Aug 2021 13:50:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912252; bh=9iOhJBdlcqIJ5sG0i0P6ZQUDdcU1hO4zvkJ2c+vCd+I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZGj7eHcHFST8Il4ihjT7tuzjrm+iGi0M+8P7BpkWc9Akgc+Fkn8RmE4KPklzNKOHI mSSF1Js+u6sx0m5k0GFF8m57ylL2o3jMXBQ9FR7CS2nGlCFiwFaZlQBW+/7eg92SQ9 vANjOoCpolVG5H6+j/HcqgAbQWaMF4b9CjAz765s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jason Gerecke , Ping Cheng , Jiri Kosina Subject: [PATCH 5.4 16/40] HID: wacom: Re-enable touch by default for Cintiq 24HDT / 27QHDT Date: Mon, 2 Aug 2021 15:44:56 +0200 Message-Id: <20210802134335.911477380@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134335.408294521@linuxfoundation.org> References: <20210802134335.408294521@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: Jason Gerecke commit 6ca2350e11f09d5d3e53777d1eff8ff6d300ed93 upstream. Commit 670e90924bfe ("HID: wacom: support named keys on older devices") added support for sending named events from the soft buttons on the 24HDT and 27QHDT. In the process, however, it inadvertantly disabled the touchscreen of the 24HDT and 27QHDT by default. The `wacom_set_shared_values` function would normally enable touch by default but because it checks the state of the non-shared `has_mute_touch_switch` flag and `wacom_setup_touch_input_capabilities` sets the state of the /shared/ version, touch ends up being disabled by default. This patch sets the non-shared flag, letting `wacom_set_shared_values` take care of copying the value over to the shared version and setting the default touch state to "on". Fixes: 670e90924bfe ("HID: wacom: support named keys on older devices") CC: stable@vger.kernel.org # 5.4+ Signed-off-by: Jason Gerecke Reviewed-by: Ping Cheng Signed-off-by: Jiri Kosina Signed-off-by: Greg Kroah-Hartman --- drivers/hid/wacom_wac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/hid/wacom_wac.c +++ b/drivers/hid/wacom_wac.c @@ -3829,7 +3829,7 @@ int wacom_setup_touch_input_capabilities wacom_wac->shared->touch->product == 0xF6) { input_dev->evbit[0] |= BIT_MASK(EV_SW); __set_bit(SW_MUTE_DEVICE, input_dev->swbit); - wacom_wac->shared->has_mute_touch_switch = true; + wacom_wac->has_mute_touch_switch = true; } /* fall through */