Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp700928rwb; Thu, 11 Aug 2022 08:30:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR4DkUwxyM8VgEVBTSOGXRxiVYvYlIbei30eAmgbWZ77ZlTLul3vrNqaLAsMgUPxrKZnf84H X-Received: by 2002:a17:907:6eac:b0:730:a07f:38bb with SMTP id sh44-20020a1709076eac00b00730a07f38bbmr25340215ejc.750.1660231847460; Thu, 11 Aug 2022 08:30:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660231847; cv=none; d=google.com; s=arc-20160816; b=Xn+ERGwZqIvjXd72vdnuXlNjKjIDRFss6+1N/AnawjR6IBGrwtQq8Rxgfgcqy93tpi 8a7Cpg5toGvC7gm89+RJz5ZGN1Ppsm5RxFv0bet6aJStnifbvcNTmLl7ho3p+8cxB6Vx /c+6tqOBbR+rMrVGoap5BlLFwAPeWNt6iNRfPxyjgaXKLIjrw1ziQ6NeGd7D1wIZ3kF6 /3k0XSp0VsxReS3nCoRCQqE3//oI3mNyVrzgtElmfGDrHDiyvRzFxaawtuwnXtTqcWTm 1VRqDHiET4RazSlo6swEuXV9rR06k9mU30r/KXlhqt8RQqbSie5TB+CwAUctODnbY2Uh kLCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=1h3Y3RmJF3aa7mPyEan1bKo/SeXETlN162Suiv+//04=; b=AI+VRhK2ivyPUolVp0J3e0Hqu1S6K3Uhu7a18ehBQjt1ys+K/7N/cV5v+T2FLac+91 7BAlB7mFwzya7oUk2hMnPgnZOe8uNdWASYm6T0bvxjEo2w58ZMGLFnqoKFhYEeGuJO5p mLdbUs0pwI8ZhKAbPdMYoTXAmG5ZpSwRQfrqzXB52aSw4ZezRmC9QO/70mRe9Z5UN5mO 7hylsQiMTDX8g0bp/QMC+86CJLJvP7W+VCUl3I2EzPPWUkk9LCFP4vx7izkg2VKkboYS sRcPW4Q7JB54uEi5iZEPkf2AbXJOVh/opw0Fv7dJqhAgmZzhK+1CGgCGljN8ItUoJP6S jxBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HayQsLq7; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a056402068200b0043e2ff29c67si2572068edy.623.2022.08.11.08.30.21; Thu, 11 Aug 2022 08:30:47 -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=@redhat.com header.s=mimecast20190719 header.b=HayQsLq7; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235143AbiHKPYJ (ORCPT + 99 others); Thu, 11 Aug 2022 11:24:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234382AbiHKPYI (ORCPT ); Thu, 11 Aug 2022 11:24:08 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2600B915F7 for ; Thu, 11 Aug 2022 08:24:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660231445; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1h3Y3RmJF3aa7mPyEan1bKo/SeXETlN162Suiv+//04=; b=HayQsLq7aEyaGIQRVz/55g02LocgnpwRIAKgEf+HSX7MO3tWF7yBuW/rhPrLr9+8CxPn9Y vauZkWJAGIFHUBgs8k5S8IclSW7NUq8ouehQfQaeycCfGoelXadJrQKx2sFp0TNmy9PBil 841P+bnAtsX0c6xLXcXc7yV0rhSh/O8= Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-386-c7PPIALtMvefdd7Tpa4bzQ-1; Thu, 11 Aug 2022 11:24:04 -0400 X-MC-Unique: c7PPIALtMvefdd7Tpa4bzQ-1 Received: by mail-pl1-f198.google.com with SMTP id u10-20020a170903124a00b0016ec85be3b7so11520015plh.4 for ; Thu, 11 Aug 2022 08:24:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=1h3Y3RmJF3aa7mPyEan1bKo/SeXETlN162Suiv+//04=; b=Rl9GuXFFHhfMdh8U/WOZG7k0TxMk3kCzjrxCxav6nsVgRphL5DDeHCr3254uEvOGYV LDI5/ZKuv6ILXFIgbWUU3uReDWV+OsICPbwMhfEeq5HlbPUmg4UctFmgoHzkMTcDGMXL 3MdsG30MyXjQYUWbq3e3Uyp4siQc22q1FveE0PSjiOHni9FoYedEGNnvnpUyCB5/xVp+ FPSL95JyE0QWX5l1Fp30Wn+w8KA6riacp/KqVqjQj9KQAY6Xhf4tMxvkkwYPl8mIjk48 itU0G9nDpyyrKBeBAEL501L5xVoiM0s5jTXF6W38ggZVuB1Jssm4OAv5i3Ic2FPpnt/m ukWg== X-Gm-Message-State: ACgBeo1l7+BQoMaGYxkNjVwHks4Dsy5uwr506XKjcDA7zqOh34p3Y3r1 cyBfSdLs+XCPrAE0+n9EMN1rnoHr/lh8FvSGq3pGVFF+ILss+Mi8aeg2lddXfxHI2gkB5sO00X1 19SMLurV3Q7VQ+B+keH73q42ledclZx+rYmRei3sd X-Received: by 2002:a63:e70f:0:b0:41c:ac9e:27aa with SMTP id b15-20020a63e70f000000b0041cac9e27aamr26240931pgi.489.1660231443733; Thu, 11 Aug 2022 08:24:03 -0700 (PDT) X-Received: by 2002:a63:e70f:0:b0:41c:ac9e:27aa with SMTP id b15-20020a63e70f000000b0041cac9e27aamr26240916pgi.489.1660231443414; Thu, 11 Aug 2022 08:24:03 -0700 (PDT) MIME-Version: 1.0 References: <9e16d503-2203-57ed-d6af-61fea0c3e10b@gmail.com> <20220724114849.GA32182@elementary> <20220725224841.GA75640@elementary> <3f2e0a49-38a8-417e-1bb0-9a9f28371240@gmail.com> <20220804182445.GA16569@elementary> In-Reply-To: <20220804182445.GA16569@elementary> From: Benjamin Tissoires Date: Thu, 11 Aug 2022 17:23:52 +0200 Message-ID: Subject: Re: PROBLEM: Regression likely in hid_uclogic driver breaks Huion Inspiroy H640 drawing tablet To: =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= Cc: Stefan Hansson , Jiri Kosina , Ping Cheng , Peter Hutterer , "open list:HID CORE LAYER" , lkml Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Thu, Aug 4, 2022 at 8:24 PM Jos=C3=A9 Exp=C3=B3sito wrote: > > Hi again, > > On 2022-07-26 18:48, Jos=C3=A9 Exp=C3=B3sito wrote: > > The first bad commit is 87562fcd1342 ("HID: input: remove the need for > > HID_QUIRK_INVERT"): > > https://lore.kernel.org/all/20220203143226.4023622-11-benjamin.tissoire= s@redhat.com/ > > (CCing the folks whose email is in the patch tags) > > > > I reverted the patch on hid/for-next and, after fixing a tiny conflict, > > I can confirm that the tablet works again as expected. > > > > I'd need to investigate a bit more over the weekend, but I think that > > all HUION tablets with the latest firmware (internally, v2) are > > affected. > > Indeed, it looks like v2 devices are affected. Similar reports: > > - https://github.com/DIGImend/digimend-kernel-drivers/issues/626 > - https://bugzilla.kernel.org/show_bug.cgi?id=3D216106 > > Kindly sending this thread back to your inbox to see if we could fix > this regression. [sorry, I was out on vacation the past 2 weeks and this week was the usual "urgent" thing I have to day for yesterday] Ideally, I'd like to not revert that commit. It solves a bunch of issues on many devices, so that's maybe not the way forward. FWIW, it was quite painful to tweak and that was a solution that matches the hid-multitouch devices I could find. I tried to process your email when you described the succession of events without much success. Would you mind dumping a hid-record when exposing the bug? Cheers, Benjamin > > Best wishes, > Jose > > > Those tablets do not set the inrange bit (UCLOGIC_PARAMS_PEN_INRANGE_NO= NE). > > The driver sets it and uses a timer to remove it. > > See drivers/hid/hid-uclogic-core.c, function uclogic_raw_event_pen(). > > [...] >