Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6150528iog; Thu, 23 Jun 2022 12:23:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ttJ3R1M1qyNp2Qwj1L/nOdYVP3FmQjgW4DF0Vg0c5cmyjr6LP/euftwLC/kj4k3z3rVxKg X-Received: by 2002:a17:907:6d19:b0:70c:e94c:6ddc with SMTP id sa25-20020a1709076d1900b0070ce94c6ddcmr9724590ejc.730.1656012202390; Thu, 23 Jun 2022 12:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656012202; cv=none; d=google.com; s=arc-20160816; b=07ibsx2A2fNgspG1q6q1shJGxApqgG4CbpAFoLxVQ70qtkSTOz+L3mL6REEgchmdeB RFU9Q+vb0eAzPxKw7O4SZ79rzWRb2PNganHRlJLh9CL5Mz73Lt6JC7U5CHJi75FVcfO+ uCGh1QdMVhXC0q8f0kN/pDIzygT/mVSaiJhy/6KnTniq9uVs3KEOE0UX8W5ZUoKmG/YY 41M1N/HDXIIEn1GQLUCCyeuOGbv49F3mFJfAK9NS3ieSdAqqwIBpNugiccgDOyWdeB6l jskwog+gg1eLxEZxJujO5z6i6ZGfQcuXc86A9o5u2+j8eKDCAgQF8ALiv8I3Fztk3yzE +CGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=QYPcW1hEJAKXQTfy6ssNBNN9iygcjxjI39Ht44KpS84=; b=D05KyNYAjVRSz91uILNAXHYjgth8J1/GehYprw/usfrgbm+VpfuS0g0NURC23LHxHI d49xV0t3TSF5VI65RsesOR6GVvVAe8XwzU5ZME9v7Tgjz5lXfvGrbl9HjLcUUgOY4uyc XjtE2fXM8L32Py/n0rHbEiS2z5SDbDvGN7+0PfIqk9tsIQz9mhPVQKZidCwQQ/xGJHcz 4jSiUgUBXLa/0ybpHUwONZC+hlRQKwMJO4oWNl3pQmezH2gtyAxuEN0vUecbjoWABSk7 x6Bj/SgIZNtScdrTM/tCh/ig6SPZLJDnyKQ28R8X+WLYIOzOY497baYm2FsrybcyIUAy u38g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SMx7rDnK; 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 i19-20020a17090639d300b006f379d6f423si19723464eje.582.2022.06.23.12.22.57; Thu, 23 Jun 2022 12:23:22 -0700 (PDT) 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=SMx7rDnK; 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 S231185AbiFWTIi (ORCPT + 99 others); Thu, 23 Jun 2022 15:08:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbiFWS5G (ORCPT ); Thu, 23 Jun 2022 14:57:06 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 593F5B4316; Thu, 23 Jun 2022 11:01:45 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id p6-20020a05600c1d8600b003a035657950so165832wms.4; Thu, 23 Jun 2022 11:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=QYPcW1hEJAKXQTfy6ssNBNN9iygcjxjI39Ht44KpS84=; b=SMx7rDnKYxQ/yE41yzcDYth0Dxqlu1QtP2qcFwcdkcex3AS/qnkkhlm8aGLy8Xe7PE Hefyqx5E7QCIFxfCgMUatHuSeZ7c5mqUv++NWDsEBdcgHL5IVYTdmxTEQXJLgLeBWXDs 180AzNiH7f1Fbs7tT5aJuWW8cwiV1t91jGBn9W7nD1e17F+V4lV2qAUUERVau8cWjGvQ qWsj/VKZapAO5Up3BTd7zd7/q/6KWcjUbdVT7XO4E+t7XElGn7U0WOhYHsV25NH2n+AE ax672YvSn+6bFakOjmcUZU+j4MOePY8qLV+g2vccyayJeSx1DKI0nwa0iSBRrCb/BHWo CSLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=QYPcW1hEJAKXQTfy6ssNBNN9iygcjxjI39Ht44KpS84=; b=pcaYdqJNIrG9VPSMvI3wsFP9lwVfSACqRB7hT+L4GsuLK60d4+AnbbYEjrpKzE+Cmo OpQYKRG9eJz1cCVMn3y7ebYYKfshDcNR8KeawrlT4GBLZOJjcRBM8XYm0ZjqdJd31yWG 5A72q8EQrSnTo+Z5kjt8CMBd/tb2aWv2yI+X4TveAHQc+y2R6YxjD+BES0x7pZZ5mndj Bvzzpmqand6wuj+FgFB8VQA+bFwzE7yuilXV1Ko3CmKjcRadPYOgK2RAU6BxG5m3feWV JptlKRrSivzjg8YwBVKqraoDmkE1BzrOlVJfn9vslNQidcncygHnEhsMS8B49JxVUhmV ASDA== X-Gm-Message-State: AJIora+NtKaCg6gv1utq31uwg5uPw5m7BndSfJ7sd2z3cYIkCo8mhvqw xnbnyrVUq2wrb/fOc026qzY= X-Received: by 2002:a7b:c4ce:0:b0:3a0:2ac4:3233 with SMTP id g14-20020a7bc4ce000000b003a02ac43233mr5568067wmk.92.1656007304136; Thu, 23 Jun 2022 11:01:44 -0700 (PDT) Received: from [192.168.0.118] (88-113-28-27.elisa-laajakaista.fi. [88.113.28.27]) by smtp.gmail.com with ESMTPSA id p17-20020a7bcc91000000b0039c4ec6fdacsm6275wma.40.2022.06.23.11.01.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Jun 2022 11:01:43 -0700 (PDT) Message-ID: <62d69463-35c0-683d-f03e-c668ea82136d@gmail.com> Date: Thu, 23 Jun 2022 21:01:41 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] hid: Add support for the xp-pen deco mini7 tablet Content-Language: en-US To: =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= , Stefan Berzl Cc: Jiri Kosina , benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <85312611-797f-2dd2-f864-f7c13cb889f9@gmail.com> <20220623175116.GA4757@elementary> From: Nikolai Kondrashov In-Reply-To: <20220623175116.GA4757@elementary> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 6/23/22 20:51, José Expósito wrote: >> I would of course fix this, but I don't really know what's the preferred >> way. One can obviously simply set up an urb to catch this, but it would >> have to be a special corner case for the mini 7, as José assures me that >> none of his tablets display similar behavior. Is this acceptable? > > My tablets also send an ACK packet, but in my case it does not have any > visible effects. Maybe it is related to the DE environment used. I > tested it on elementary OS (Ubuntu) and Fedora 36, in both cases the > ACK is ignored... But catching it is fine, we can include the code you > suggest. > >> José already had a look at some firmware device descriptor string that >> reports the number of buttons and what not, but as far as I know, it >> doesn't say anything about ack packets (right José? Does it say >> anything about touch strips or similar?). > > In the devices I tested, the ACK packet is always present, so it should > be fine to catch it. I'll test your patch in all the devices I own to > be safe. I think it's OK to just ignore the first packet for these devices, even if the ACK packet is not sent for some of them. Even with the report rate of 20 years ago nobody would've noticed if you dropped one packet. Nick