Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1521683rdh; Mon, 25 Sep 2023 15:53:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFGoreIjG5+0TpVhVADsLKVBPcND2i6Z/3+d0KZV5eYSg8Ue7Wvn+8pyB2HUjrTTCs7l4hH X-Received: by 2002:a05:6a00:4c10:b0:68c:59cb:2dd9 with SMTP id ea16-20020a056a004c1000b0068c59cb2dd9mr1382081pfb.1.1695682421163; Mon, 25 Sep 2023 15:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695682421; cv=none; d=google.com; s=arc-20160816; b=YNaScXhc4IQy0nAdUlxOV6n++cs5adCmVqKKJmd1Us6FzCGEWY3S5R5SEOXO/i0jYn IgQ7SPX5+Rw1BNtPXkyNmj86iwTB+gKGtjfbF4VzatehW/hhFd4zyRaICM8fL5fZ8NlB sBgc+zKgdfLRi/K4JYTOKp2Q44FNN2vWitpLj7OsGFZjdus+A2RCFA2A+FL+smE6v+T/ dfeb3BFueaPFvjUU2UYOD38I4w4Qq6asD4Ewp7seBLlfxej/D0CnojgsguOI89Al6tAw 34rzc4uMBwZrbDNpIO3Gz0gEJsJz/vn0jqEmMdwJyOFntOceMl0JT37eLzWph8UakUlx u+TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=RQ/JBsKhQfvBa0JgvkSbVZg5pomj/M1197UlLRWvkpc=; fh=uxLf2kD9HW1xmaiFBeZm6J9tCAKSHULda0SzBKhDiJg=; b=igJZKDc5NfFJtI94e0XeEeo55vSp0tvQyRt8aHNirqr43sTM+IxYC/UqVToe973FuE DAGTTiXmkR4Ssj7/hfrh0ff2+d1S3a4RY4m2tk+Aql/GgfjvsgXI79nOPB26Z0CtHe+6 QGI9S2lQwITy5f48Pq28LFrJg9Zz88BEFGdymvHDMSELnx04tBpQ7RGMWuFQ+PcqWJ9p 4a4P1G7y98KqhD9CUbvhiZRLersVUWJQdvQTXtoPED9zHD5fWIm0JE98DryTPaAvz8jS RL7rwa36TmavFnEwSYdyTjL3HwvYmhorSnZsIbWZJifEtJbfSSPpWLRKRMEe9FkOIUAL rYig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Cnp9yQ8k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id m9-20020a654389000000b00565e39e7b80si10871906pgp.678.2023.09.25.15.53.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 15:53:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Cnp9yQ8k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id EB4698081BE3; Mon, 25 Sep 2023 09:31:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231502AbjIYQbC (ORCPT + 99 others); Mon, 25 Sep 2023 12:31:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229905AbjIYQbB (ORCPT ); Mon, 25 Sep 2023 12:31:01 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EBF3BE; Mon, 25 Sep 2023 09:30:53 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 9D4A7C0007; Mon, 25 Sep 2023 16:30:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1695659452; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RQ/JBsKhQfvBa0JgvkSbVZg5pomj/M1197UlLRWvkpc=; b=Cnp9yQ8kw8KZx+WPmqR9wTQzYRJBkOQd6iu+uB/RJtKhpcGYZZPJhJ9cywYNQYtoiX9Ztn UlKCdOMHC4jwgQNTKsqeWHDa+z53q9w//AvFJqvUZl9EWhruViK9FmDQ/hBDTlQ/0XEiaS s/vGHvCab+q0zIyW1ss0HhfaMunwrUnN5AXXyPFUmZ5rggImetWY1/W0rfkTb/6v2q0o4l f2rfCARRSMthwfAXNN4F8xJ8SFMmFICbhOE26lkgmmQw9mbZtX6tQ2wP4TOmoW++3TZZCZ 7vbz1ecCTvAdF3jMJAiW8rMVElS+GGIz1sLNQOnMzu/8AkJ2bDQeciRnel7rwg== Date: Mon, 25 Sep 2023 18:30:49 +0200 From: Luca Ceresoli To: Prathamesh Shete Cc: , , , , , Subject: Re: [PATCH v3] pinctrl: tegra: Add support to display pin function Message-ID: <20230925183049.10a40546@booty> In-Reply-To: <20230714113547.15384-1-pshete@nvidia.com> References: <0cf720bf-ae4b-5780-bda4-5c9bbb2d1d67@nvidia.com> <20230714113547.15384-1-pshete@nvidia.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-Sasl: luca.ceresoli@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 25 Sep 2023 09:31:03 -0700 (PDT) Hello Prathamesh Shete, On Fri, 14 Jul 2023 17:05:47 +0530 Prathamesh Shete wrote: > The current function for a given pin is not displayed via the debugfs. > Add support to display the current function that is set for each pin. > > Signed-off-by: Prathamesh Shete > Acked-by: Thierry Reding > Reviewed-by: Jon Hunter While testing a Tegra20-based custom board I found a regression which according to my bisecting appears starting with this patch (commit d1cd5b51bc91 upstream). The symptom is that i2c3 is not working anymore, the I2C lines being always high. No other known issues at the moment. The board is built around an Avionic Design Tamonten SOM: arch/arm/boot/dts/nvidia/tegra20-tamonten.dtsi, which has in the &state_default node: dtf { nvidia,pins = "dtf"; nvidia,function = "i2c3"; }; But on top of that the board dts has: &state_default { dtf { nvidia,pins = "dtf"; nvidia,function = "i2c3"; nvidia,pull = ; nvidia,tristate = ; }; }; > diff --git a/drivers/pinctrl/tegra/pinctrl-tegra.c b/drivers/pinctrl/tegra/pinctrl-tegra.c > index 4547cf66d03b..cb1d67239cd0 100644 > --- a/drivers/pinctrl/tegra/pinctrl-tegra.c > +++ b/drivers/pinctrl/tegra/pinctrl-tegra.c > @@ -96,6 +96,7 @@ static const struct cfg_param { > {"nvidia,slew-rate-falling", TEGRA_PINCONF_PARAM_SLEW_RATE_FALLING}, > {"nvidia,slew-rate-rising", TEGRA_PINCONF_PARAM_SLEW_RATE_RISING}, > {"nvidia,drive-type", TEGRA_PINCONF_PARAM_DRIVE_TYPE}, > + {"nvidia,function", TEGRA_PINCONF_PARAM_FUNCTION}, FYI, I reduced your patch to only this line plus the one in the pinctrl-tegra.h and the problem appears as well. This is all the info I have at the moment. Can you provide more info on what could be going on or how to investigate? I am available to share more info as needed. Best regards, Luca -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com