Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1074744rwr; Wed, 26 Apr 2023 09:46:30 -0700 (PDT) X-Google-Smtp-Source: AKy350ZSMLKyTiAjJ11ViRtUD/n9pDR4VF6M/TSKGm4pRMOOU2UQ9fT98MRPfmbrQu0K9Xvy/PIq X-Received: by 2002:a05:6a21:170d:b0:ef:1d4e:cf3e with SMTP id nv13-20020a056a21170d00b000ef1d4ecf3emr23821118pzb.50.1682527589822; Wed, 26 Apr 2023 09:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682527589; cv=none; d=google.com; s=arc-20160816; b=RTDAzz0T6BTiqxe4JAfv9j+x3q2fQosDruTMNjGadWyKzMUC8LaofQWlhJTjIhL/Nd MFehMiXqjZ0bwh6Oruoc8/7QBXfROeIrsryPW1T8H2lpstAEZWpkay7SQvyKwUtH7M0H BNdCLU0FfmBcWqAY5Yk+Ymeysh0TstSaeYJktYicNuNsmj7iWq0wo2aWMA7mGp+5JaGc 7dk36JC9ID+vJSMNMozX1Wt5NDV/5jXkBWVB1IJOGa8qCSpXQ9hZNNTUsN2l8pW2wD+w ag8xrEixcSjIk40zk+Kn+MFsbRzLQEdQ0Kfs8SC6fh0KVOG+y3rZrClnwUbz7sllTh4f Vwzg== 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=l4gwcCmmM+Y1PLgZw9XcWeLGKRKHQq/1YEoQ0r3Lmgc=; b=o2g3euNKmHO9GWLdDC2+mLB59bVTpgll5w00oMuykFQdTTUYO5wvQvNeNJRAwi7d0F c285ZXQfMKzjlIMCnG+emvAME2dAXHIA0sMfcSD3UEIpsvNjldl+cwo/JMzOG1ealAIa QuYPMcGNsEsjk/5X2WTJCibz9HkAeHSfcKAkAkzbTRRVkw8MS27vhMSr0AjkoKgl5OVc zrtlGccWCKm9Wt73Uk0x0iVEaedMqn3M4yBdEjEZ4a4AFqzhVZIKddxhlJmXrCa71zXX JWAXH2tnhMH0Hwmy1yCdEDnartkSPEueqXf/GQQcTctJT8Gs90LBVoiE6wev2xyXjaL/ TnvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=crLkQwUQ; 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 192-20020a6302c9000000b005208c4fa34csi17025221pgc.773.2023.04.26.09.46.18; Wed, 26 Apr 2023 09:46:29 -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=crLkQwUQ; 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 S231741AbjDZQkM (ORCPT + 99 others); Wed, 26 Apr 2023 12:40:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229915AbjDZQkK (ORCPT ); Wed, 26 Apr 2023 12:40:10 -0400 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEC893AB3 for ; Wed, 26 Apr 2023 09:40:09 -0700 (PDT) Received: by mail-il1-x12d.google.com with SMTP id e9e14a558f8ab-32abc2e7da8so19601175ab.3 for ; Wed, 26 Apr 2023 09:40:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1682527208; x=1685119208; 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=l4gwcCmmM+Y1PLgZw9XcWeLGKRKHQq/1YEoQ0r3Lmgc=; b=crLkQwUQQ3nXeRFdyqa+13zRbDZxwaKCyPY+cbnyuNPizvmIZ7qSkx1kV1TfGrHIEE RcGysh7goZgwwJV9T+GV1Ml11aWOZ6M0d/GLSC2nvBCmTkJOR7yLCaFupfOJXJABXFhh trW0m/75bBn8vzaK0ztI0UlvWiM/aKGxPqVIo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682527208; x=1685119208; 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=l4gwcCmmM+Y1PLgZw9XcWeLGKRKHQq/1YEoQ0r3Lmgc=; b=NpEuaLsayeUNXleXxUnIBzJegz57rLTItsFrqTrYdDSufwqAXjpKJmSrtIuF6Yu/LF EYVlVFnjuoh14qO8LmWrSZL5PbtM9rnB0ENYHnLNGl9+qO9ipsNsUQakNg/MByMnwmlM UBV3n9HRVXCt0IXlcObBa3+AL1A8drntiFOcIIoi5uS6TTLUEFH7K7FWAewcN+YKmOED D6mIOPx7xvuM+p06gq52jUslrvavRfyQFx3DrNAbmSzJlzIAPXxJam4Ld/xgGq49BaKV UbZ/o5DgYOQl55UcrxNPQm6zggKiRWue4u5PhBsiLX31nXFva61GLMN+HeolleXei4f0 I5cg== X-Gm-Message-State: AAQBX9cJObzaAUAzKnYO1ZS6854C5Tx1MmiYVBLQiH8K+JEU17Njh2ng /Dcnt75Mfq/7NkWy1J4b6EFNCkbEUGk6Olj8E+A= X-Received: by 2002:a05:6e02:80c:b0:32e:63f:35ce with SMTP id u12-20020a056e02080c00b0032e063f35cemr9781223ilm.24.1682527208210; Wed, 26 Apr 2023 09:40:08 -0700 (PDT) Received: from mail-il1-f174.google.com (mail-il1-f174.google.com. [209.85.166.174]) by smtp.gmail.com with ESMTPSA id l17-20020a056e020dd100b0032a99a9eb8esm4341729ilj.40.2023.04.26.09.40.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Apr 2023 09:40:06 -0700 (PDT) Received: by mail-il1-f174.google.com with SMTP id e9e14a558f8ab-329577952c5so286985ab.1 for ; Wed, 26 Apr 2023 09:40:06 -0700 (PDT) X-Received: by 2002:a05:6e02:1be7:b0:32a:f049:edc0 with SMTP id y7-20020a056e021be700b0032af049edc0mr280720ilv.17.1682527206123; Wed, 26 Apr 2023 09:40:06 -0700 (PDT) MIME-Version: 1.0 References: <20230426144423.2820826-1-fshao@chromium.org> <20230426144423.2820826-3-fshao@chromium.org> In-Reply-To: <20230426144423.2820826-3-fshao@chromium.org> From: Doug Anderson Date: Wed, 26 Apr 2023 09:39:51 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/2] HID: i2c-hid: goodix: Add support for "goodix,no-reset-during-suspend" property To: Fei Shao Cc: Jeff LaBundy , Benjamin Tissoires , Rob Herring , linux-mediatek , Dmitry Torokhov , Jiri Kosina , Matthias Kaehlcke , Stephen Kitt , 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.3 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=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 Hi, On Wed, Apr 26, 2023 at 7:44=E2=80=AFAM Fei Shao wrote= : > > In the beginning, commit 18eeef46d359 ("HID: i2c-hid: goodix: Tie the > reset line to true state of the regulator") introduced a change to tie > the reset line of the Goodix touchscreen to the state of the regulator > to fix a power leakage issue in suspend. > > After some time, the change was deemed unnecessary and was reverted in > commit 557e05fa9fdd ("HID: i2c-hid: goodix: Stop tying the reset line to > the regulator") due to difficulties in managing regulator notifiers for > designs like Evoker, which provides a second power rail to touchscreen. > > However, the revert caused a power regression on another Chromebook > device Steelix in the field, which has a dedicated always-on regulator > for touchscreen and was covered by the workaround in the first commit. > > To address both cases, this patch adds the support for the new > "goodix,no-reset-during-suspend" property in the driver: > - When set to true, the driver does not assert the reset GPIO during > power-down. > Instead, the GPIO will be asserted during power-up to ensure the > touchscreen always has a clean start and consistent behavior after > resuming. > This is for designs with a dedicated always-on regulator. > - When set to false or unset, the driver uses the original control flow > and asserts GPIO and disables regulators normally. > This is for the two-regulator and shared-regulator designs. > > Signed-off-by: Fei Shao > Reviewed-by: Douglas Anderson > > --- > > Changes in v3: > - In power-down, only skip the GPIO but not the regulator calls if the > flag is set > > Changes in v2: > - Do not change the regulator_enable logic during power-up. > > drivers/hid/i2c-hid/i2c-hid-of-goodix.c | 16 +++++++++++++++- > 1 file changed, 15 insertions(+), 1 deletion(-) You already carried over my Reviewed-by tag, which is fine. ...but just sending a quick confirmation that v3 looks good to me. Thanks! -Doug