Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1651289pxy; Mon, 2 Aug 2021 07:06:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+CQ2j2haUWTf7ZDv5wJcXfCqTOdnFiHSrjPP5sPwfZV1CP/8QbPZQuPoJS5B7+Iv4QhuC X-Received: by 2002:a05:6602:25da:: with SMTP id d26mr461493iop.106.1627913181754; Mon, 02 Aug 2021 07:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627913181; cv=none; d=google.com; s=arc-20160816; b=ymSwKbgnrGmyt7pkM2qMvZn7SyDIFApXwB7kV9HYwZaP/vBP7o+em3wqW/LRQOBqIP 7YmtY+lLzRHQHr78lefNk2JC8SeIgKbGebw+xTIENm1et8zP9IMAdGsW+/qgKpOY7Axf mlX5JVo+5M2Ko0Nsj/eECrPe1JFahPrJlXKyX6Fm5C0kbTlF7FXp0+6NLAJ9ITV+j648 fP/uKS6ce5+JFFHSbalGEbOxQX2ROYW0+/j/tFlm379jWKBTEUAlUimTIPZP222o2ntj 4r8AUXee/px8wL6fQVX4XFPZkK+X0k3U17Wskt+JAFeE2q8bpjXLMwZOR7OiPynE8JCN 9sGA== 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=dVIjRSPOxmf52SZArYYrV4yGVSSoMt3dVBxPbnwTbDc=; b=M4iJPBeFgmbQ1J48VJGTBd5bQS58Dsf+JJCU2GuG5syyJhJn8fzuFbmyNCpJQddzyt wJEvsFCEovVn2w89rJ7zpmqfJFDucOlUrfEM7lfmCPoCSiI03jlzE5c++M3SO6gY50Fw BeDD70YG9GOKXx9mbu3w1/LHFHh9ZooKxvcuSiDlNns/qKc4/HYe1ng+P8XGgnViwV2m DXmCUHTW0TaKwtYNTV1CNSSaogb3EvHVmH0d+E3HGLPa1YfWSN+07X5VTS2dWL9o11Cj hZmRec6qKM2q6E+egtf8wLveAZr6rCYtY7sSg0bWOwesksm/7EuFqED0YuXoyloTX50C xm7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kOoJRRo7; 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 u11si11853540jak.14.2021.08.02.07.06.07; Mon, 02 Aug 2021 07:06:21 -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=kOoJRRo7; 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 S235386AbhHBODg (ORCPT + 99 others); Mon, 2 Aug 2021 10:03:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:40754 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235435AbhHBNzk (ORCPT ); Mon, 2 Aug 2021 09:55:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B7F8D60551; Mon, 2 Aug 2021 13:54:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912448; bh=ycYnckxHiwK6o3thCMS/KVwMBi2G5QpfGPS+8aUeJZY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kOoJRRo7EYuVbOOdK9kcldRhGAeSvp0L2xFtcJLoiuUZ78pdMz9NAM4oKZVGcqIGe KacMPMkUBkkjwK3xKJm+zFDQteEIOoeHtbuHc1VYOyHpp2Uu/2DSsGe5fuxpQeZ4eR ViDvktXyv8MSRcRq7DCS96j+NLR5OUyXzJWlFeXc= 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.10 20/67] HID: wacom: Re-enable touch by default for Cintiq 24HDT / 27QHDT Date: Mon, 2 Aug 2021 15:44:43 +0200 Message-Id: <20210802134339.701461753@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134339.023067817@linuxfoundation.org> References: <20210802134339.023067817@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; } fallthrough;