Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4515581rwd; Tue, 23 May 2023 08:40:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6bDndQC0uNEGhCtAcum5fzmeEYtnAbpj+bqknGx34mlExGFhMZJVmLcA15/IVQSP1n+wgG X-Received: by 2002:a05:6a00:1a46:b0:62a:d752:acc5 with SMTP id h6-20020a056a001a4600b0062ad752acc5mr21936807pfv.32.1684856437038; Tue, 23 May 2023 08:40:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684856437; cv=none; d=google.com; s=arc-20160816; b=XNANoWFTLCUCb7okhD0u4xuAhS7ojjJATpudM3scWHVZHqYPgNLFPuVbhge5obAXlA j8w375MFHhx10ONIsfSt7pHGHeC6oXp2z9r7igl+RMEVfFSTKWutbIKH9Uv9jNrxoIPG fLLppVdsKejn7fCbTQwN3PAsMLaunO8SZvTFtK0Y/ZOtRFmOEukhV0hlfMmdLjmrS/3i vtpRUJFz/+5Z2ohjOBFUJZ9oEOZKqQTZ1pFvcUciKU/wvGDRtpLoo20eBFdZSvm35Mj6 +zipG9khDH+IqNx9iPs5o+foC4QkfwLKBZUNW7ZckyONPpilYk6ieMqvj8vePcVAL+oA gHAg== 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=OUYNFtz0mGQomMgw5XCo7PvlT82ouwpXZ1L41VjIQog=; b=rr9BR/aJ+OnRte1s4q1g9cXAjyDGTk/P8HBIkFCe4Gdz8gT8LJ853wrYF2S/ImPcW2 A1ctNDmvaTVI/xJvpGVGdLiQBzNrf0/Yvf3DeAZPTT9Pbqw3B67KCw5pBnVgvJTA2SyV 5MQs1IRz7yZK+o9MXDnq591zay5zS0EePpDOW0sgV/+NEOAlb1fsYO6J0zw16hOECo7w HqhEe0X19ZP5di85FDyrgkULS+8XyeaZi9Ck5AW2KZP898dYBle7g4PlI60dVFiVk5v8 j35HsjQajgBDh++FAnscCWJlBfnvBfd3BZGnJRYA/INRAHbsUOQn4XdP4uvP6A81l7/Y mbgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hzZICuOM; 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 l184-20020a6388c1000000b005343c3db9ebsi6716990pgd.616.2023.05.23.08.40.21; Tue, 23 May 2023 08:40:37 -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=hzZICuOM; 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 S236429AbjEWPa3 (ORCPT + 99 others); Tue, 23 May 2023 11:30:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229764AbjEWPa2 (ORCPT ); Tue, 23 May 2023 11:30:28 -0400 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9C92126 for ; Tue, 23 May 2023 08:30:24 -0700 (PDT) Received: by mail-il1-x130.google.com with SMTP id e9e14a558f8ab-338816ea761so2541825ab.2 for ; Tue, 23 May 2023 08:30:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1684855824; x=1687447824; 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=OUYNFtz0mGQomMgw5XCo7PvlT82ouwpXZ1L41VjIQog=; b=hzZICuOMd6gKa8qyZmx1llAE4T/UKuGamJbHDrzmavsa0Y1Xr8FPOnNmb1a+Po/OzY T6M0nX6BB+mJnYCdOkBEUsisnbC8hjhBy6MB3IKeK5NRn/mbaQNPIY7RpZUHLTPmKeO+ sEF3u1QFbq4GsQ4lPMFcX39UQ7vDIsL2gJpVw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684855824; x=1687447824; 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=OUYNFtz0mGQomMgw5XCo7PvlT82ouwpXZ1L41VjIQog=; b=agSHTrFCOnCkfueebkz3eU7kJ24otu8RQ0VbBjVMqGTH/F7Rv6U86PlTVZC1vZzdEj XlVnVnZv6LrEMS4QMS1yKYaldyjjZehCZ2U0OU34ibJKg9XJ2uU8uPv+WtDVBhZSUyeq zCl9GM6wfXob2IFwlMSdrRM+R3W8zA+OTKBDaK2NS+Lb9Rr2EXwY8Ujr+ixLh6cQ5Yaa yAKef6OGs/Pp2GYRkCm5fMkUe8B24YgQq0Hqv8zlzSEQ8PT5RrCDqAj8KKilUoW1aBJK ynwl7shvKjXByjoO9JYx7wshg3da6N6zXYULMTEFeghNE6PoNx2rfLGgHGz2m/0xERq6 /EhQ== X-Gm-Message-State: AC+VfDwi1uKEoPbe6eEsQsS7a/IofmvVTy4QTYmoY6sfHMxouXfCQmwo NIdyCoO/y2Q+Jw2WzL7JHelJm81u2X+TiKstb6c= X-Received: by 2002:a92:d685:0:b0:33a:5bb5:f8f6 with SMTP id p5-20020a92d685000000b0033a5bb5f8f6mr1489729iln.18.1684855824050; Tue, 23 May 2023 08:30:24 -0700 (PDT) Received: from mail-io1-f41.google.com (mail-io1-f41.google.com. [209.85.166.41]) by smtp.gmail.com with ESMTPSA id z23-20020a5ec917000000b0076c78d938c9sm2680314iol.50.2023.05.23.08.30.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 May 2023 08:30:23 -0700 (PDT) Received: by mail-io1-f41.google.com with SMTP id ca18e2360f4ac-76c64ddee11so97275639f.2 for ; Tue, 23 May 2023 08:30:22 -0700 (PDT) X-Received: by 2002:a5e:dd4c:0:b0:76c:79f9:9b29 with SMTP id u12-20020a5edd4c000000b0076c79f99b29mr8611250iop.3.1684855821998; Tue, 23 May 2023 08:30:21 -0700 (PDT) MIME-Version: 1.0 References: <20230427035656.1962698-1-fshao@chromium.org> In-Reply-To: From: Fei Shao Date: Tue, 23 May 2023 23:29:45 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 0/2] Fix Goodix touchscreen power leakage for MT8186 boards To: Doug Anderson Cc: Jiri Kosina , Jeff LaBundy , Benjamin Tissoires , Rob Herring , linux-mediatek , Dmitry Torokhov , 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=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 Tue, May 23, 2023 at 9:32=E2=80=AFPM Doug Anderson wrote: > > Hi, > > On Tue, May 23, 2023 at 6:11=E2=80=AFAM Jiri Kosina wr= ote: > > > > On Fri, 19 May 2023, Doug Anderson 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 lea= kage > > > > 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 design= s. > > > > > > > > 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@ch= romium.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-sus= pend" > > > > 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. > > > > I don't think I've been CCed on the dt-binding part (patch 1/2 I guess)= . > > Has it been Acked? If so, I will happily take it through hid.git, but > > please send it my way. > > Yeah, Rob Acked it: > > https://lore.kernel.org/r/168261692866.3205353.5077242811275926416.robh@k= ernel.org/ > > Fei: can you repost the series with collected tags and make sure to CC Ji= ri? Sure, I'll do that tomorrow :) Regards, Fei > > Thanks! > > -Doug