Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5958362rwr; Mon, 24 Apr 2023 11:21:21 -0700 (PDT) X-Google-Smtp-Source: AKy350ZiXtl+/LRs6RJm22HVIDbmiQaNrfHOTEv55dMvw3s59uL+GBvSA3Fub588Id7nTKHyM1sS X-Received: by 2002:a17:90b:4ac9:b0:234:ba34:71bf with SMTP id mh9-20020a17090b4ac900b00234ba3471bfmr14593104pjb.1.1682360481304; Mon, 24 Apr 2023 11:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682360481; cv=none; d=google.com; s=arc-20160816; b=JAvPSp0VpefeMZDItiPfTHAs43tOY/UkctQsF+yGysowWd3ER/HigTzeDov5MP8oFN 5xrbTC61NTnf0nhhZ1ONH6h0P/ozLATJw6CWCN/mogAA2zu1xeDxQdjoIe/VeLhA355b mIs1qiZV9SsWRPN/blIQFJ/8+wZokcigbj07k5kBrV2Z7pf7pdga+yC8CXuYjPP4lCRT zDArC0I3IydMtv44IyCOtgSRxWkPABmbetlXo1n+yhJ0YOA628cvcO/xvRN07aPUCo8o IP5W1Usi+f+QimJcESmtKSqFTJSgKmFXexDmingNolqhlXFCVnr+2QV0kABVfgWAWyhP R/8A== 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=blVk5F8wi1jpNsCC6o8Ei6j9sVKcdv4aLvP/rqf73i4=; b=ccARWwXTXYYlWz6+JCaaM5TCiGHpwQZdw6Tq8EZSoBuHs3PqPjjlrtpIyBrO7t1HPj Zm6ohZS3ReBB0A0jrUdNkbnN9PIFBLcGfGKC5SkDi0OkmCMedJLDzq1SpP6F/p5GHDXu bKXWJYpicJeYjWDdQiU5qZCT2FP8XepqS+RZ53sbDpTUpUkgNNpukRsBcxab0q3biion lk1l9kut34n7eo4y6qowKbXYYbA4g5rQeyIcwfRWkYvj1zHXF37mHw/lLt0Ft3dVhbW2 7pTJnV9v6I54ShzaZcZFjY83wYjm5o1AeT5J7l14eoSju/UpCHRnYUx6xUxe8v8fgHI3 ISJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QGzGB4SE; 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 l10-20020a17090a408a00b00246f485f95csi14000703pjg.132.2023.04.24.11.21.10; Mon, 24 Apr 2023 11:21:21 -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=QGzGB4SE; 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 S232336AbjDXSP5 (ORCPT + 99 others); Mon, 24 Apr 2023 14:15:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231481AbjDXSPu (ORCPT ); Mon, 24 Apr 2023 14:15:50 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59F434C03 for ; Mon, 24 Apr 2023 11:15:13 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-7606d6b3294so430052539f.2 for ; Mon, 24 Apr 2023 11:15:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1682360111; x=1684952111; 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=blVk5F8wi1jpNsCC6o8Ei6j9sVKcdv4aLvP/rqf73i4=; b=QGzGB4SEB4xyXP9zwceprlrutqlIzS8rSa26O+PUpH2hl1JW/8yvTLxPXpxyfbj4WV sV5Nh0njh4phv6DELNgTC+/y/EcPLR3obOIpatNbO43lXiusVQmqYaixXThfzQl6e6sQ d/ZqBw/CHcxftWLFdgiYv4zG296BUfTBFvCZI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682360111; x=1684952111; 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=blVk5F8wi1jpNsCC6o8Ei6j9sVKcdv4aLvP/rqf73i4=; b=ByWKw2kUXFI8UAjPfzBCmPBw8zaQWr8CNVCqqkULw3frKjZ4ArxYkcOXTQF++FIPd8 BnSqUj77LqbDh26UG2UPUieCc/K0NUmt1XNdNwokUcNybXYwe97P/75U0lAQBTV7LlAM 7EWmxPqczEv2BdQAwTilmx/XUpLr9vFFRWe6Z1/Kg06+PoQVHnkucauu7tL7vpF2Tw8b vmDbz+7409XiUkPY7x52eUvhsjGOvTIPM18uxv+S3Ds8g/+Os/P32D0XWESz57DhVLbk 7XXMLmTUzLIBTBJFVtbTLYZKuPudQIi8AH2RLGPV12jkmlERVBkW2RAVYnjqOb3AAVcn JwRA== X-Gm-Message-State: AAQBX9fJMdX5uV3ARbQggFVCvVsoFOAMydgX1xquAIXMR+N7xa/B/G6G UFRJNsB0CS9C/cyU9uDbErcKpdCi17ZoADk6GBU= X-Received: by 2002:a6b:490b:0:b0:760:3b22:9d0 with SMTP id u11-20020a6b490b000000b007603b2209d0mr5667572iob.19.1682360111201; Mon, 24 Apr 2023 11:15:11 -0700 (PDT) Received: from mail-il1-f178.google.com (mail-il1-f178.google.com. [209.85.166.178]) by smtp.gmail.com with ESMTPSA id w4-20020a02cf84000000b0040f8ed3ab81sm3481933jar.129.2023.04.24.11.15.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Apr 2023 11:15:09 -0700 (PDT) Received: by mail-il1-f178.google.com with SMTP id e9e14a558f8ab-329577952c5so1093275ab.1 for ; Mon, 24 Apr 2023 11:15:08 -0700 (PDT) X-Received: by 2002:a05:6e02:1d09:b0:32e:561d:b42d with SMTP id i9-20020a056e021d0900b0032e561db42dmr34592ila.16.1682360107716; Mon, 24 Apr 2023 11:15:07 -0700 (PDT) MIME-Version: 1.0 References: <20230418124953.3170028-1-fshao@chromium.org> <20230418124953.3170028-2-fshao@chromium.org> In-Reply-To: From: Doug Anderson Date: Mon, 24 Apr 2023 11:14:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: input: goodix: Add powered-in-suspend property To: Jeff LaBundy Cc: Fei Shao , Benjamin Tissoires , Rob Herring , linux-mediatek , Dmitry Torokhov , Krzysztof Kozlowski , 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.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 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 Sun, Apr 23, 2023 at 8:31=E2=80=AFPM Jeff LaBundy wro= te: > > Back-powering can come in two forms: > > 1. The one you've described, which is by far the most common. As you ment= ion, > it is not the case here since the issue happens only when we drive the GP= IO > low and not high. > > 2. Through a forbidden power supply sequence, an input pin of an IC with > multiple power supplies becomes a weak power supply itself. Grounding the > GPIO then sinks current into the SoC. > > This problem smelled like (2), especially since asserting the GPIO or pow= ering > down the supply alleviates the symptom. Most Goodix controllers I've work= ed > with have two or more supplies, and the datasheet requires them to be ena= bled > or disabled in a specific order. > > Based on Fei's feedback, however, this IC does not seem to be one of thos= e > since there is reportedly only a single rail. I guess either vdd or vddio= is > tied to a dummy regulator? If so, then perhaps we can scratch this theory= . There is one rail provided from the main board, but there can be two voltage levels involved depending on stuffings on the touchscreen itself. I talked a bit about this in commit 1d18c1f3b7d9 ("dt-bindings: HID: i2c-hid: goodix: Add mainboard-vddio-supply"). > Fair enough, I was simply sketpical that this was the _right_ workaround. > Were this an issue of only supply A left on yet the IC datasheet requires > supply B to remain on if supply A is on, I would rather see this solved b= y > updating a regulator dts node, trusted FW sequence, etc. Right. That type of stuff was looked at in detail by two separate teams, so I don't think this is the issue. > Thanks for your due diligence; if this really is a silicon issue, then > the driver should indeed accommodate it. > > That being said, the name 'powered-in-suspend' seems a bit conflated. We > should not be duplicating regulator policy in this driver; the existing > naming also may cause confusion for other HW configurations that do leave > vdd and vddio on during suspend, but don't have this problem. > > Here, we actually mean to control the behavior of the reset GPIO through > suspend and therefore something like 'goodix,no-reset-during-suspend' is > closer to what I understand us to intend to do. I will add more details > in patch [2/2]. I'd be fine with that name. ...ah, and adding the "goodix," prefix is a good call. -Doug