Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1008634rwb; Thu, 10 Nov 2022 10:01:27 -0800 (PST) X-Google-Smtp-Source: AMsMyM5uxM24BehYXCKQmwF8JZESX6VtMBUmG5L/GxuKTBpV6qvwVxxbxobANHreCQweKmGa4FMd X-Received: by 2002:a17:90a:c691:b0:212:fd5f:1ab8 with SMTP id n17-20020a17090ac69100b00212fd5f1ab8mr82417991pjt.11.1668103287323; Thu, 10 Nov 2022 10:01:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668103287; cv=none; d=google.com; s=arc-20160816; b=PAy2KllqJBlbRo+JdvRPLVgn4zQvQZrsSRex/RvHmzUd9leRCoy+2xQbro33mKDvbf rYTTnMYRWqrqfFplz8O/DwGDhq++pAAsvn/xGKYZGnfi0Umbnk60jiAuPzpFASKXCpzm 3zAJU12IwljE6+Qa9EyRh5D/7jq8+xoR8AhsRfrTPJT8aKndGcPRh891J9MfVwGIa+QX XgkLP70WKe6Dy7jeeeqo6liGhIbgrNN39wb7nNhhg1eYticLnJoT9CfxUxT2qcaOZ0lS awH2IeL97XGaWswOUNQKNbjqjqWDNPOjZD6nowODH5mYThlJKZxeo8K43qwms9DqFlg+ 5u5Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Q30MdsvArEgZPhyUIGZqou5nUz1ampzE4lOdExQos5I=; b=iFD9Xgndtl1xWIje/uhSe/Kx9qXFCSTbGBf2mX7ovzK/QMGB4UEr/NNLBqzZoWOOuP kHzLJu18lf5NuRL4zdL+XphqKHefNTrEOhMyMoC48bF2ZsTNfGAeB/cVVBfuNxYolmKf pVDpQg5NKhgAwEqaRYOb57DoHeXWgo1N3qOZJphebEetLfwiygqsTo6Db4SNql7Yz1Gg PPm7GTljQLqb7G+JRmqd8MXfgs+0pY9MuGwiBNpmO9rcex7Sc8XbzJW9RJkKC9e+wkHw fWOh0WfUyJEQyyl361xlx/3TK9DEjB4gdOm1uM7xgCgVNVJxIcQVllNqKQIxVZD6p51j D0cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=o2Vpt+YP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a639c09000000b0047014fb1e75si21315876pge.523.2022.11.10.10.01.11; Thu, 10 Nov 2022 10:01:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=o2Vpt+YP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229586AbiKJRlL (ORCPT + 92 others); Thu, 10 Nov 2022 12:41:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229757AbiKJRlF (ORCPT ); Thu, 10 Nov 2022 12:41:05 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C573624973; Thu, 10 Nov 2022 09:41:04 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id bs21so3338800wrb.4; Thu, 10 Nov 2022 09:41:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Q30MdsvArEgZPhyUIGZqou5nUz1ampzE4lOdExQos5I=; b=o2Vpt+YPvLhZHweh7xAdlR3+YrVGNhjp7NJmTPeDosfsOLlkBDscJ4Kd7LTBciMF2K hd3vLMn3MTRljbMGeRPuZqSj7O7WdY8kPGUHjFO0awo7787oqIv1h14zgr62jBSbvKqK os4lbL/cMqHdO6LMvThAmTy8oJukp8f7k6no9Fb/47tW+9edra2HMhElNFY1Y3Wr9SbF JsCSCYqpkKm/e7EsXwWRTsAaz5N6UhisR+UG7FyGsj4OlYKOZSZ7/VpxqeJQnOvCIr7+ 0kWltduRXMdIp6MBAVa2nY0kS2yz/aMyoilvkzHkqLF1kFk2VxVl4d+8Nrf66fwP5UXL q70g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q30MdsvArEgZPhyUIGZqou5nUz1ampzE4lOdExQos5I=; b=hfaiyUjHC9YsSkn4APzTYXhKTiHETH/icJXafNMWewyiqqiF6RENRbrDX4X79lBnPx fa7SR3Tb5Em34l4WjAJPPh9qzST46C8TOPsu0jD7l21ROOZFkRAIDPQYLLpKunBTWNDh 7eV9d6rvgLqOPTpCY/2HvxsP2Cue2Lyc4YvbU8+gtA/8ULRrVTbfBBz1RLIjjTv4CFCL go/ctf89iig8iw+LMcx/yl9tupq+997sFbcJ8tCDFkv42jXvc69NEZCzPXOVpNgDNKcK pZNBsYzF80rHiPLE+FvKCecLGayGZWOlq2g6FCQ6dM7RhiCmsQIBjtFx17TkdxE+ZtvV wS4Q== X-Gm-Message-State: ACrzQf25sH/4+QvTkjvhecXrPygOQ3YPO2Nx36Btk7i9NBLD2KUvu0lq hb6g57c898WPYA/+T9Msh/iiLsbyMKIcnw== X-Received: by 2002:adf:e510:0:b0:235:de50:72ff with SMTP id j16-20020adfe510000000b00235de5072ffmr40259764wrm.100.1668102063125; Thu, 10 Nov 2022 09:41:03 -0800 (PST) Received: from localhost.localdomain ([94.73.35.109]) by smtp.gmail.com with ESMTPSA id n10-20020a5d420a000000b0023682011c1dsm16268026wrq.104.2022.11.10.09.41.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 09:41:02 -0800 (PST) From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= To: jikos@kernel.org Cc: benjamin.tissoires@redhat.com, openglfreak@googlemail.com, alex@alexyzhang.dev, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Subject: [PATCH 1/1] HID: uclogic: Add HID_QUIRK_HIDINPUT_FORCE quirk Date: Thu, 10 Nov 2022 18:40:56 +0100 Message-Id: <20221110174056.393697-2-jose.exposito89@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221110174056.393697-1-jose.exposito89@gmail.com> References: <20221110174056.393697-1-jose.exposito89@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit f7d8e387d9ae ("HID: uclogic: Switch to Digitizer usage for styluses") changed the usage used in UCLogic from "Pen" to "Digitizer". However, the IS_INPUT_APPLICATION() macro evaluates to false for HID_DG_DIGITIZER causing issues with the XP-Pen Star G640 tablet. Add the HID_QUIRK_HIDINPUT_FORCE quirk to bypass the IS_INPUT_APPLICATION() check. Reported-by: Torge Matthies Reported-by: Alexander Zhang Signed-off-by: José Expósito --- drivers/hid/hid-uclogic-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/hid-uclogic-core.c b/drivers/hid/hid-uclogic-core.c index 0fbc408c2607..7fa6fe04f1b2 100644 --- a/drivers/hid/hid-uclogic-core.c +++ b/drivers/hid/hid-uclogic-core.c @@ -192,6 +192,7 @@ static int uclogic_probe(struct hid_device *hdev, * than the pen, so use QUIRK_MULTI_INPUT for all tablets. */ hdev->quirks |= HID_QUIRK_MULTI_INPUT; + hdev->quirks |= HID_QUIRK_HIDINPUT_FORCE; /* Allocate and assign driver data */ drvdata = devm_kzalloc(&hdev->dev, sizeof(*drvdata), GFP_KERNEL); -- 2.25.1