Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp653925ybg; Mon, 1 Jun 2020 10:51:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHQIjkiKILdtlr2Xs/y0SzblLJL5YnFrjZH5PpQrH27DZM8zx93+1ai3sLdgprH2UMTRPX X-Received: by 2002:a17:906:b7cd:: with SMTP id fy13mr21148951ejb.133.1591033864887; Mon, 01 Jun 2020 10:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591033864; cv=none; d=google.com; s=arc-20160816; b=xizah0zOdGukV8iWgrACVLG4lzPyCKY9WiBv6s02P+HpKFUfKpmABRzeXYARaEuzpQ TR5Sfrhs50F8DY0aVjCoHhV97KsAXHKvANARgeB1pXF/Mlx+fu/xpVoT2Wb3DF+X/5QG bcAcE/vlcWNBSCTCwCOX46ABdsVLDMsV0eCBsximpuEmL4HxnC5Jn8kunz9LMLE8TwEJ emdv9iBxpxx0xb37/luLZMilv0EPOXSwxIsP6v7tKssii/GYHQYHP1mhG2MDeL4X6T7t 6fp6UrxlmCHN7HFiFraiccrbhc7MYHaUnFBuWqbtq+WetioI8lrko27IRpd1qilZU9Na NW5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=EF2MUXWe+0T7eyxkA8rRyjXJ0lsym9S82yVeKfIolyg=; b=wI+lIcr3FPgItzDUspX9Q1TKsKy9A3kJXrd27Z0XqxGWubSDHSDDDXD+/NUfngLucw A98iQmkE+lHuJFAEgx17ACA2qH566SYHCanZElTLnYrotqHnztbMf9VDUOiJK+kFaI4f aSY/IXs6W9w2iSXY3FSddZlrxXvM3RItWdP8JBQGO6VFynCBN7d57qcG2dR9BCCnfTsy nObB/5UoFOW+X/5vAoiDGmRu+9lUHXl7KYpIcrKNR/mlqwerU5mi99AlJJI8VVHAzaq0 lOd1V3Jr32pb2Uq0EhFbXF23Ii3EjPcqb4gn+pACFbFR1G19JprP4YUCfxGZ/BXGnYu6 2YQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=wS+C3T2s; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x22si95276eje.542.2020.06.01.10.50.39; Mon, 01 Jun 2020 10:51:04 -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=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=wS+C3T2s; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726751AbgFARsI (ORCPT + 99 others); Mon, 1 Jun 2020 13:48:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbgFARsH (ORCPT ); Mon, 1 Jun 2020 13:48:07 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82E4FC05BD43 for ; Mon, 1 Jun 2020 10:48:07 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id v19so368324wmj.0 for ; Mon, 01 Jun 2020 10:48:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=EF2MUXWe+0T7eyxkA8rRyjXJ0lsym9S82yVeKfIolyg=; b=wS+C3T2s8Q7602JUv3jWGhy8HPjzuOYzUPOpfSA5smX0EG3VwfTnAlZsoGasBnlyfg 4ERS3mJMRO2/G3pVMuJSD09lBkKa/NcDOuUqMb4g2CwqWQzMCBZvoQ41i3H50aDvU0Rx ERuHo8/KK/pjd5PZRwwIPJ7mKT7wV7tPAFfpZjYgZDp6jCA3KWWzxyjNE3+7HmbsVdEP /SpwYW0aUknx/oMKZE168CjaLYOdZj4+BaQ4/j7WddQdFJc3qUZtVYgRGgOE2Dgyfl6G HhzZGjddlkJ2txyX10rH5WJWrhyn7jSt+lSXuW5wTNQNHTeNVN9+BYBjjr/SvmVXYhlX Hg4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=EF2MUXWe+0T7eyxkA8rRyjXJ0lsym9S82yVeKfIolyg=; b=ggRlfiLoxsLy0aQ+bdZ+ugk6DEmqgQGxi3scb8RhH7/EQ1mPxxQHL9jvVMg010NqXX oiE6UwYm/8DW5kLSGy1d0Ap3SpfCGG7K1UnX5l4+Ds0BMXT+W6jYr0JkDdoCePdl4EFz OoNv7mHstXkh3jKMUTfoGpozXseYIeiIm99q6nl6y4vONRJeYnAiChOp5eyZk/ntbkCq Zqnvgv/xyy4zu2zETawDNc+bRlWOh4GfLCRg4LchzHDuHruMwdGWypA4TBACiuLvePtp 0AedMqrAXaPMdL4YcrtdBkCzKfHgRUReJffBgurtpaTvxBaUgWY/g0tYXx3UUuqSosJl Ia/A== X-Gm-Message-State: AOAM533WT67QwCUYxXkcpaUVUmA1AUDEYPh3i5QcnkCrXKS2HAEE8U0O KLmOEYN2PcqCTxicuwY1n7K5Ew== X-Received: by 2002:a05:600c:2110:: with SMTP id u16mr426062wml.26.1591033686091; Mon, 01 Jun 2020 10:48:06 -0700 (PDT) Received: from x1 ([2001:16b8:5cbd:c001:98fe:8f8:cce1:59e]) by smtp.gmail.com with ESMTPSA id l1sm297821wrb.31.2020.06.01.10.48.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 10:48:05 -0700 (PDT) Date: Mon, 1 Jun 2020 19:48:03 +0200 From: Drew Fustini To: Tony Lindgren Cc: Haojian Zhuang , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Kridner , Robert Nelson Subject: Re: [PATCH] pinctrl-single: fix pcs_parse_pinconf() return val Message-ID: <20200601174803.GD1371046@x1> References: <20200531204147.GA664833@x1> <20200601161851.GC37466@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200601161851.GC37466@atomide.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 01, 2020 at 09:18:51AM -0700, Tony Lindgren wrote: > * Drew Fustini [200531 20:42]: > > This patch causes pcs_parse_pinconf() to return an error when no > > pinctrl_map is added. The current behavior is to return 0 when > > !PCS_HAS_PINCONF or !nconfs. Thus pcs_parse_one_pinctrl_entry() > > incorrectly assumes that a map was added and sets num_maps = 2. > > Looks OK to me, would be good to wait for Haojian to test this one. > > Regards, > > Tony Yes, I would like to get input as I don't have the other platforms using "pinconf,single": $ git grep 'compatible = "pinconf-single"' arch/ arch/arm/boot/dts/am33xx-l4.dtsi: compatible = "pinconf-single"; arch/arm/boot/dts/hi3620.dtsi: compatible = "pinconf-single"; arch/arm/boot/dts/pxa3xx.dtsi: compatible = "pinconf-single"; arch/arm64/boot/dts/broadcom/stingray/stingray-pinctrl.dtsi: compatible = "pinconf-single"; arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi: compatible = "pinconf-single"; arch/arm64/boot/dts/hisilicon/hi6220.dtsi: compatible = "pinconf-single"; arch/arm64/boot/dts/hisilicon/hi6220.dtsi: compatible = "pinconf-single"; arch/arm64/boot/dts/hisilicon/hikey960-pinctrl.dtsi: compatible = "pinconf-single"; arch/arm64/boot/dts/hisilicon/hikey960-pinctrl.dtsi: compatible = "pinconf-single"; arch/arm64/boot/dts/hisilicon/hikey960-pinctrl.dtsi: compatible = "pinconf-single"; arch/arm64/boot/dts/hisilicon/hikey960-pinctrl.dtsi: compatible = "pinconf-single"; arch/arm64/boot/dts/hisilicon/hikey960-pinctrl.dtsi: compatible = "pinconf-single"; arch/arm64/boot/dts/hisilicon/hikey970-pinctrl.dtsi: compatible = "pinconf-single"; arch/arm64/boot/dts/hisilicon/hikey970-pinctrl.dtsi: compatible = "pinconf-single"; arch/arm64/boot/dts/hisilicon/hikey970-pinctrl.dtsi: compatible = "pinconf-single"; arch/arm64/boot/dts/hisilicon/hikey970-pinctrl.dtsi: compatible = "pinconf-single"; NOTE: the arch/arm/boot/dts/am33xx-l4.dtsi was patched by me from "pinctrl-single" to "pinconf-single. But, I think for upstream submission I would need to move that to one of the beaglebone specific dts files like am335x-bone-common.dtsi. I believe this pinctrl-single.c patch fixes a flaw in return logic and is useful regardless of whether beaglebone adopts "pinconf,single". However, I would very much like to get input from others in case my analysis is too narrow. Thanks, Drew