Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4758640pxk; Wed, 30 Sep 2020 10:55:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOtKIAorj8BRyhWQ1N4TaqVC3nwgu7E2hjTiBQFg7swCMsAK+TAyqPsrOuxuFOK9oup/VI X-Received: by 2002:a17:906:980f:: with SMTP id lm15mr4161943ejb.184.1601488500816; Wed, 30 Sep 2020 10:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601488500; cv=none; d=google.com; s=arc-20160816; b=hREt4YP8upcdjFUSEA8QI7Zjpd62k9lw5whkNxTgaajNc1VF7o4XHJJ+f96I3i8JnK 0eW+TswR3/MoeKK38x+jzh2qcNLAKvuHgpsKHgt7jT4+EoxhKzNccDaxLYQt97lyK6LT MSjQOWTTxkxvVQM/hVP72fI18CLNfbWLwm8LWmYOy+r7JMCq/F7CX3CB5OtZqE7tzpmU uqsCf7ZMq3M93+FKgVc8Klgyyh+69/YCvtJUFFYiI81+IsV4jZTBi2sCUophHLnZ6Esc DzvvCHWQSw691jjuxS+PyDZYwbKeLa3R94NxN2b3gM9UtvSSyoFYKOlNd5slX22AUMIB W5Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nmx3GK+BJ0d4VG1MnUd724aknrThpuCxNaLSY0XJ58c=; b=ChaPoViBXtGwJmnkHzdkV/Y58M68KeHfBK3VT1IvpMC9hIs6v9arNaOETFHzl/AZW0 qCRV3ZXx7EqBEC6Fh41VaK8kXkf/ca5kEfgZU5LG0Bk2xsQkWFXssiW/wETfgNXfrQuH R9Rk6ewWAQ142DTlINNH2FVdTxeSMrjzfhmC2YAsMmp4zRer+yadoLlvUkTU+qxn+al5 0kgpS3x2pK2W2+IyS3cbxQ/+NaWjWQOOkpnmsh2QxNWqWKo9HA0XgLWKC4iTeJmTR9y+ Be2XD4Ql6cJuH73dr4gYQdaConoJLgZCMCIK9cc4yDRKUaoiTnvznGuo0enz0s5x4HWT lCYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=xS8WcxEV; 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 c15si1628506ejk.111.2020.09.30.10.54.38; Wed, 30 Sep 2020 10:55:00 -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=xS8WcxEV; 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 S1725872AbgI3Rxf (ORCPT + 99 others); Wed, 30 Sep 2020 13:53:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725799AbgI3Rxe (ORCPT ); Wed, 30 Sep 2020 13:53:34 -0400 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87817C0613D0 for ; Wed, 30 Sep 2020 10:53:34 -0700 (PDT) Received: by mail-ot1-x343.google.com with SMTP id h17so2697415otr.1 for ; Wed, 30 Sep 2020 10:53:34 -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=nmx3GK+BJ0d4VG1MnUd724aknrThpuCxNaLSY0XJ58c=; b=xS8WcxEVpDZKYDvgXPcKeyIkiQzftLTmFl1axoEXs0Fs32CiYI0KH+BPVPgCu6eiKV 42m2Uh5QfSYCU0vvxw0usyqGn8nqfxXeCy3g2usLicSNcT3LdNDZfvdwf2eAoq7kTuUn 9URHPG0/NHIcclklxub5afY/bGPhuRywQDtbKL7okklvJqXiNrbmgeAh+yJ+QxgUEhP6 hk7YmdzwYb0o2+fEnedyN4Tsc2cDh2t4jFOssNAd5XW6hSFR06iTvsNyKW9recaLnIvs frv4wfZLcvUgM3BDXaCuxAd4Wmdo5FgaXCj0KLCCh2DcHUXmGuk2btBzop8MkZn+T8E/ O/UQ== 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=nmx3GK+BJ0d4VG1MnUd724aknrThpuCxNaLSY0XJ58c=; b=mEdCopCZcmy3scHK5aFftdesKkWFLbk6i21FahjiRQevy0E3iDyPRxeop68Y4PrJjC RU7hlNgc/1/FT4rbukVCBAvAiU05mxIti4jwmdHZloCpnc9RNg8/VtoEYuBNzFrbq7bZ sUamm5qM0sIkPHagpQ1bDAeIvAKyn4N1BWCEDZVdqkLmxLNc5LVIg1PvQg4DRc0AIX7i vWTUSVfd5SGw4Oz9hCm529tOQn0lRiehy/CnvJ3eboEez10nr9ESeiecIDRDs3Vu9MnB 7qL2KECAdnT4/bkJCFBkXZTA/Xsrb/c/HZJOFG4LnfKjOLWNX1XO6fNZP3LV3FjQeJ1v 3O7w== X-Gm-Message-State: AOAM530g7FmMrA1773viHHsUDnZPJtCUwJnlYtOgxf8ecncoa79Qatdn 1WxVU23GI1PoIntChRYVMX0UbA== X-Received: by 2002:a9d:2925:: with SMTP id d34mr2284108otb.140.1601488413886; Wed, 30 Sep 2020 10:53:33 -0700 (PDT) Received: from x1 ([2600:1702:da0:ff40:985b:42bd:cfe:59b7]) by smtp.gmail.com with ESMTPSA id c19sm555297ooq.35.2020.09.30.10.53.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 10:53:33 -0700 (PDT) Date: Wed, 30 Sep 2020 12:53:30 -0500 From: Drew Fustini To: Tony Lindgren Cc: Linus Walleij , Linux ARM , Rob Herring , Linux-OMAP , "linux-kernel@vger.kernel.org" , "open list:GPIO SUBSYSTEM" , Haojian Zhuang , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , =?iso-8859-1?Q?Beno=EEt?= Cousson , Jason Kridner , Robert Nelson , Trent Piepho Subject: Re: [PATCH] pinctrl: single: check if #pinctrl-cells exceeds 3 Message-ID: <20200930175330.GA1295202@x1> References: <20200913210825.2022552-1-drew@beagleboard.org> <20200930051659.GO9471@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200930051659.GO9471@atomide.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 30, 2020 at 08:16:59AM +0300, Tony Lindgren wrote: > * Linus Walleij [200929 12:51]: > > On Sun, Sep 13, 2020 at 11:17 PM Drew Fustini wrote: > > > > > The property #pinctrl-cells can either be 2 or 3. There is currently > > > only a check to make sure that #pinctrl-cells is 2 or greater. This > > > patch adds a check to make sure it is not greater than 3. > > > > > > Fixes: a13395418888 ("pinctrl: single: parse #pinctrl-cells = 2") > > > Reported-by: Trent Piepho > > > Link: https://lore.kernel.org/linux-omap/3139716.CMS8C0sQ7x@zen.local/ > > > Signed-off-by: Drew Fustini > > > > Tony, does this and the other patch look good to you? > > Hmm well the description looks a bit confusing, #pinctrl-cells can > also be 1 that's the default. Might be worth clarifying that part. > > Regards, > > Tony Yes, that was my fault for confusing #pinctrl-cells with pinctrl_spec.args_count. - if #pinctrl-cells = <1>, then pinctrl_spec.args_count = 2 - if #pinctrl-cells = <2>, then pinctrl_spec.args_count = 3 - all other values are not valid I will post a v2. Thanks, Drew