Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2563933rwd; Fri, 19 May 2023 07:22:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4NnTBMwY6EBcXINr+X6EBBTNhV7Wwv3gXKIimSiXP4NlCeUM0paBi2F3lmDpyg8NNwOpuo X-Received: by 2002:a05:6a00:812:b0:64d:1185:2414 with SMTP id m18-20020a056a00081200b0064d11852414mr3702105pfk.4.1684506168933; Fri, 19 May 2023 07:22:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684506168; cv=none; d=google.com; s=arc-20160816; b=RFxyRmq4XJs2PPEmU6dXfZ5a3E68jWFFv4jo8CVy7D8xI3x0fzqPx1zzSXhlBHngWK vpSpQNC7merg4o3XKpDqqx9VRKFPLZvQuPT7rSCEoURjUP1gfQYyIxf2YmY9eR89KIu6 OEe5oYZdCDzqk8uqHMT+98N2ydqlcnn5Gmk53w9fznmCuREoPUFhwxlaSgpOmI8cVuz2 4kau3FRTwUf1Iy3EKI1ocGgOFxqM/Oupye12DS1GrJD1Nn4hqN5GYoYOE665ouqbaUpo G1mM1gIU7gUXdDB3xyrZw41DPQ4rgKY7j3yPb5sEvpkDuGk+hwVVUwlXBKGHGzVrIPkb zYmg== 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=nO2IMSaci1mLkURs2Rerjvjr6e18HL0QFWSpDQYnXvg=; b=EpnrZgmnGwoHzKrgqvtw8w9kLc8aS3xuzTxPSRhpD7DElB004CL1Ntn94+lCvQHrnB F4gCR711vQB0uJAz6+LYuCDcMl2OJtfmsDUpzuyDewRdKTqiBJ1cTCjjL2rrFcMB3lsl JeE+tkvFTqbSRhsEuOAXjc5dzggnjG7qymuLJrgIZaISfojvc95Aenw3iQZuar5cwdvC Nq8giOS1FLJbA8JCIqNBQL2fUz7mN8RoF0B/1/AlGAXDan/K64aHV/KsTBwcVChJw+MQ uUdwKjY7b9L617IhMArdsAmtOcanapbva4Wby6f3RGVgynNujZVkIrPTqlqkic8QYe2Q HiGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=U2U4r2If; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a63b34c000000b005346be4ead7si3501707pgt.766.2023.05.19.07.22.32; Fri, 19 May 2023 07:22:48 -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=@chromium.org header.s=google header.b=U2U4r2If; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231296AbjESOJF (ORCPT + 99 others); Fri, 19 May 2023 10:09:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230116AbjESOJD (ORCPT ); Fri, 19 May 2023 10:09:03 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5B5B114 for ; Fri, 19 May 2023 07:09:00 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-64d2981e3abso1131509b3a.1 for ; Fri, 19 May 2023 07:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1684505339; x=1687097339; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nO2IMSaci1mLkURs2Rerjvjr6e18HL0QFWSpDQYnXvg=; b=U2U4r2IfK1jqKF/mNm2KBqvjWNjdQTp0YZz6jcDMwgeHMql/r0VVaJW2RthUbcW0ax BMCxfExFR9p+czfqKl5v/pNtRk1gq+UPKYyDNdm9IaFkXAmx4bAWzZS3KqgM/whKTF3F YzxcIGVt7VJPpvqqLQrpK3Cni8Y+R8aeYnlh0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684505339; x=1687097339; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nO2IMSaci1mLkURs2Rerjvjr6e18HL0QFWSpDQYnXvg=; b=c0Uz1v2c9TDLvLANU41IIQjtdKliaafdfumB+1Xv11qYcrr6Gyrdt3Ue3aJDz4ccC3 iTK2CnkudugrAMHpX4xhdeZ74KpLo/VIDYw4dGuFdQPivp3B4mhQ+wDkhGpA0YooLxQO PHI2d7r7fiEtGYHOor4nLzp8ah4FxOKO9z+e107PaSBzZPbCHW2dlJQaCvckFIIgLRbk 7xLMQDpOImT7kqnwTPYEt/kEqCfMpNaA5vmnJeDn4jM7SxBf7jQS3SiW1xF3a1KzWvev mNIRF87VTeJIMjIyZeKBMXYNy7J5iP64vAR4am+J4rofPADMtnBSXnDEbE2YPbLMEsUH JmLQ== X-Gm-Message-State: AC+VfDzgOuXCkFnplKhwvs9WWvfxwW1OqmnYXHJp2iRRjU1xxEdwjKj0 qwHwCWduNyMsCiAoRsEf7B8aV++ntYhpokqJzUU= X-Received: by 2002:a05:6a00:181f:b0:643:2559:80f3 with SMTP id y31-20020a056a00181f00b00643255980f3mr4360076pfa.2.1684505339336; Fri, 19 May 2023 07:08:59 -0700 (PDT) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com. [209.85.214.178]) by smtp.gmail.com with ESMTPSA id h11-20020a62b40b000000b0063d29df1589sm3031959pfn.136.2023.05.19.07.08.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 May 2023 07:08:58 -0700 (PDT) Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1ac65ab7432so153165ad.0 for ; Fri, 19 May 2023 07:08:58 -0700 (PDT) X-Received: by 2002:a17:902:dad2:b0:198:af50:e4de with SMTP id q18-20020a170902dad200b00198af50e4demr206507plx.4.1684505337704; Fri, 19 May 2023 07:08:57 -0700 (PDT) MIME-Version: 1.0 References: <20230427035656.1962698-1-fshao@chromium.org> In-Reply-To: <20230427035656.1962698-1-fshao@chromium.org> From: Doug Anderson Date: Fri, 19 May 2023 07:08:46 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 0/2] Fix Goodix touchscreen power leakage for MT8186 boards To: Fei Shao Cc: Jeff LaBundy , Benjamin Tissoires , Rob Herring , linux-mediatek , Dmitry Torokhov , Jiri Kosina , Krzysztof Kozlowski , Matthias Kaehlcke , Stephen Kitt , devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 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_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi, On Wed, Apr 26, 2023 at 8:57=E2=80=AFPM Fei Shao wrote= : > > These changes are based on the series in [1], which modified the > i2c-hid-of-goodix driver and removed the workaround for a power leakage > issue, so the issue revisits on Mediatek MT8186 boards (Steelix). > > The root cause is that the touchscreen can be powered in different ways > depending on the hardware designs, and it's not as easy to come up with > a solution that is both simple and elegant for all the known designs. > > To address the issue, I ended up adding a new boolean property for the > driver so that we can control the power up/down sequence depending on > that. > > Adding a new property might not be the cleanest approach for this, but > at least the intention would be easy enough to understand, and it > introduces relatively small change to the code and fully preserves the > original control flow. > I hope this is something acceptable, and I'm open to any better > approaches. > > [1] https://lore.kernel.org/all/20230207024816.525938-1-dianders@chromium= .org/ > > Changes in v4: > - Minor coding style improvement > > Changes in v3: > - In power-down, only skip the GPIO but not the regulator calls if the > flag is set > > Changes in v2: > - Use a more accurate property name and with "goodix," prefix. > - Do not change the regulator_enable logic during power-up. > > Fei Shao (2): > dt-bindings: input: goodix: Add "goodix,no-reset-during-suspend" > property > HID: i2c-hid: goodix: Add support for "goodix,no-reset-during-suspend" > property > > .../bindings/input/goodix,gt7375p.yaml | 9 +++++++++ > drivers/hid/i2c-hid/i2c-hid-of-goodix.c | 16 +++++++++++++++- > 2 files changed, 24 insertions(+), 1 deletion(-) Just double-checking if there is any work needed on this series. I think it's ready to land but I wanted to double-check. Thanks! -Doug