Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1433900pxj; Fri, 21 May 2021 14:18:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyVBRwgsMQNMTGStre/yu9eXjRmhtMWxzQNGrs9zBXDYuIIPzE/rFFdqfn+oL6z56t6j8p X-Received: by 2002:a05:6e02:f81:: with SMTP id v1mr1038220ilo.243.1621631904094; Fri, 21 May 2021 14:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621631904; cv=none; d=google.com; s=arc-20160816; b=xRMUjdTU3B13+Mki9e7mXcj6cQfluAH/KD2rEdaF+VL1e2DPFMX3OvNrgoemnuoTaj A9OFUDgR4AeAHABL5hAJbwJPhXtZTTbZ1oyQPl6sgE6aQ5e/e8JD/KApvRC8Pggqd4UU PgEdh7HcQArnOkN2Qt23MmzTCog1ipFr9fXI9V31NGR0nzubLfqd496b03YGLcC8Rw6u BwLZm9WKwYzi6YSgz3a0sf4XXO5ec7RLF+gGpHD3X9S2aMJ/iNhZfS4kHk4iR1QrdCa4 NWdN64Xom7Q3JwYxIMtd1h3+7jXyhxs0kiKyWjNccdZbF05uHZahIyTQn8tK6MsRQRAU gfrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KU2Ua3SJWwvztXy/qLseNaC6FX7ltF8ZRFgrKedX7pE=; b=iCdcH0fAkKEuYLTQq5n8PCLTQYU/B2uucNH1uaG7YRnXyXDb5DkLD/vjSVMblj3t6A Ge8mTYRZpH6//a+hkjyqEoPblEuNUKTe5spWbXXOhMg/akUOQaW1txtQbJygQHIFD1zB SfDG3HzPZypaPib52qP7kJh2nVYMnDDJ3S+qV7bOY0RWWIJ8eKww6owdL/clWMx4Z7jU deIqLhX+R9iA4rQLWGUZKgRSVFjgUduFeA5fYR56/CYGDSXIV898YukEPdSNt1EDuSoN NDsbTtD8nyEu+GILd5kLX4ngHymWmlYUZtldPqcURREjmnqnr7SGwuoxyNiN5pGlHnBD 4uzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZdLakRjz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si6362587ior.12.2021.05.21.14.18.11; Fri, 21 May 2021 14:18:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZdLakRjz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229757AbhEUVQ6 (ORCPT + 99 others); Fri, 21 May 2021 17:16:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbhEUVQ5 (ORCPT ); Fri, 21 May 2021 17:16:57 -0400 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20596C06138A for ; Fri, 21 May 2021 14:15:33 -0700 (PDT) Received: by mail-qv1-xf2f.google.com with SMTP id ee9so11148870qvb.8 for ; Fri, 21 May 2021 14:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KU2Ua3SJWwvztXy/qLseNaC6FX7ltF8ZRFgrKedX7pE=; b=ZdLakRjz6xM5+M2e25BYKIX+s0E7OpHE4z63Xytk0sRCZ77TzzEhnoNmkSLiWGv9tK 78O8Iky/dAmIrG24dLVrSSygb40xQveRW7qAHQaDaJU6Tv5RHAQ37qPI2IOJ4vkX7T0z k6FFZ/ZlC2HSwFhnHTfhzxGfqLOnq41C92UdI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KU2Ua3SJWwvztXy/qLseNaC6FX7ltF8ZRFgrKedX7pE=; b=e1w+zxCZPWxdaVm9RDaBakunb1YcAndsfVjtw7BnR5hwp5AGY2AQGTsCQ/A0jBpn8m Ah4MpSSZcxgGsbBlUNOppMmtmC6g9mUOBbXAw+BWPK86xQjVy8Tmws6Ht256CknNb/jP EZsf4aYLeloq4cSNwp1xgHI+zX7ZkbShEORTfuLvNyLoBPgDIHAFTtYcTMEh+EwogQn5 wWmv9Uxv4ZqCXWjDQXpmqjH4/m3K+vvylCGvjhR9MkD67tAJai1/p9Prmpmyc6o6fe7v G0L7Z0alNomCQ78+6z8HzQq1X7d9T2AXC2yYL6LO5Bksg0RTmWY1fpZVSsyU3cjLS0jt wl1g== X-Gm-Message-State: AOAM530almlu4I28vhyZM70GDBKvIm59Cyyx27+sIA6Dw5KI0fbBIPAL bhinylwrjeYqzAb6UpOBQrQ4g0uBWT575Q== X-Received: by 2002:a0c:aa1d:: with SMTP id d29mr15499471qvb.47.1621631731992; Fri, 21 May 2021 14:15:31 -0700 (PDT) Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com. [209.85.219.175]) by smtp.gmail.com with ESMTPSA id t17sm5014443qto.92.2021.05.21.14.15.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 May 2021 14:15:31 -0700 (PDT) Received: by mail-yb1-f175.google.com with SMTP id y36so12681570ybi.11 for ; Fri, 21 May 2021 14:15:31 -0700 (PDT) X-Received: by 2002:a25:e007:: with SMTP id x7mr17331874ybg.343.1621631730850; Fri, 21 May 2021 14:15:30 -0700 (PDT) MIME-Version: 1.0 References: <20210521200529.1991729-1-sujitka@chromium.org> <20210521130511.v1.2.I52f30ddfe62041b7e6c3c362f0ad8f695ac28224@changeid> In-Reply-To: <20210521130511.v1.2.I52f30ddfe62041b7e6c3c362f0ad8f695ac28224@changeid> From: Doug Anderson Date: Fri, 21 May 2021 14:15:19 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 2/2] arm64: dts: qcom: sc7180: trogdor: SD-card GPIO pin set bias-pull up To: Sujit Kautkar Cc: Andy Gross , Bjorn Andersson , Rob Herring , Sibi Sankar , Rajendra Nayak , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, May 21, 2021 at 1:06 PM Sujit Kautkar wrote: > > Trogdor board does not have external pull-up for cd-gpio. Set this pin > to internal pull-up for sleep config to avoid frequent regulator toggle > events. > > This change is aligned with Qualcomm's DT change posted at: > https://patchwork.kernel.org/patch/11675347/ > > Signed-off-by: Sujit Kautkar > --- > > arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > index d128a0ed6ad3a..330deb4967ca2 100644 > --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > @@ -1638,7 +1638,7 @@ pinconf-data { > > pinconf-sd-cd { > pins = "gpio69"; > - bias-disable; > + bias-pull-up; This looks fine to me. Honestly, I would have done it for IDP too. It really doesn't make any sense that the pull-up would be enabled for the "on" state but disabled for the "off" state. Either you have an external pull (in which case you never need the internal one) or you don't have an external pull (in which case you always need the internal one). In any case, this change is correct and improves things. I'll add: Reviewed-by: Douglas Anderson If you do respin the patch to fix IDP too then you can feel free to keep my Reviewed-by tag. -Doug