Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1384742pxb; Thu, 4 Mar 2021 09:57:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJdJGEO2B1mgLoKp8NmgrB9Ns96EHqziv9l/7NkcX+u+98oZRe5ugxrBUwE/ma431LemO/ X-Received: by 2002:a05:6402:3510:: with SMTP id b16mr5596864edd.242.1614880650764; Thu, 04 Mar 2021 09:57:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614880650; cv=none; d=google.com; s=arc-20160816; b=xYJNtc3hihcebYY8j/LmNa8+tyfbpTSqQWdgmcA1wmEvWHkO8wY/MG+Mv2e4S0KCT7 mTq0AUfObGRBHXEw00eETmPgDr5bD41hrpLBnWFWmpvkQna7TcC0U7HzOB0Kunm2sNBO ioYu7ZWvTJ64gfQGVwoP8sRzuOJd9T295WoN9C7iFEUwJRtjcDC6JPG4r53lVc2W1jBU uVawow8aJip1fnQ+A11etPp+rc8eHiDj+4eqSrh0XlnVt23B/jA9OmDrtlENy+N/LVNL fVvYueLEisdo9a6mS/g30IqlscRX98mpViMG888gc1SR2FJA/SJ+gbVZWzq6EYSLpske s/rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=MZVJZJRjT4SLn3lrfW9LYd3YV//TU8ycIQavOqKS6/E=; b=Nnez5r1Wbnb8ReG9v17fPdcIQnHEJ8XCF4ILnCnoI5HuR3oLgwUOC7J4YXYoM7Vk7g /1Z9okFZgu2PunPlaAbmugBUEWqRrrx2u1+u/An/GTVtH/u/TI8u2QBluMu+q/8sU80S oKS4pd5RZK0aOwUyLKU3s5Ng/iJ+kxyTmY4CNejqXliU5TjivFR2xNKJfDLEKu4PIJ4u seAkCEY6sImH2+3FwrfpgLHFCOeEWXF7BF03tQ0Ie/fnpfJ6CAyueUiJZGkRJk0XS+jm PHJW0OM8tle0UErNlXv+4wWPWNlUEfaoSDs+iH6XyP0NdJtK3ci9b9YaoSAD0ptGlKuY Vkhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Znx9YMh2; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u8si11783280ejt.132.2021.03.04.09.57.08; Thu, 04 Mar 2021 09:57:30 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=Znx9YMh2; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235186AbhCDPeo (ORCPT + 99 others); Thu, 4 Mar 2021 10:34:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235148AbhCDPeX (ORCPT ); Thu, 4 Mar 2021 10:34:23 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11F10C0613D7; Thu, 4 Mar 2021 07:33:05 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id u125so10083895wmg.4; Thu, 04 Mar 2021 07:33:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=MZVJZJRjT4SLn3lrfW9LYd3YV//TU8ycIQavOqKS6/E=; b=Znx9YMh2w974Yjw/gEPyFyYJMB3HFYrZ9yj/MDcqvNdHpITKxJXXrw7weR8Bbr5cFd mESpQ4VplwNKtzlj3YpdvtMvhPyj+gncJwyzDClorz8zueBf5911nqiFtrreIH6ZZCup 6Ra+CFetyTCqd9DGO+mQNoeIuGRwlYBH3mQPp1UMQgRgl0DAeYh20/3kzufyq35jHVP7 unmpNJUdhMlcYvbXrfKlm/uGlE+DQhdiPqhzwP2sZiLzFDsKRLqorBDEdqbMQb3UXedc JB0tDw45XX1HyJ7e3oGF4QjLs/G0T7+KIBHUgLbENjpF4r2wp/D/MvxpChBcdyDcdEMy pIgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=MZVJZJRjT4SLn3lrfW9LYd3YV//TU8ycIQavOqKS6/E=; b=YW7r7K65kuo7vWr4KC8oaCQgIOEmgI5KQFqqpqF/TDZs++pTWJps3f9GATOxBW1y6e RVIxZREWlDYw72/3SXk1Ic9wKUwdR6tHzaUFCbFHuakP4glYuBUv1wG8bR0ezgVPaysd 3DUYzkoV1EZSDM/aS5jaXV+pq/LTP29kLaEpRo559TMiVmOj0K55H13OcUD6NjJzkDVi RHgZhUUcKYuyU6x7hu2VfwrXPkw3Q6xKjcE2+lyxFcN+BFWzUvA4FtU/KKui4gsofzyw nKUo2+vtCIW+Ar3bROvBf5cpRcf44T3TlfVBu6xIV4JHnY1KAIfMfTI3xZmV8XPTJ0Px EViA== X-Gm-Message-State: AOAM532OmckzBhf1XT6gYGKOsUvbORNoMNHoDRpXV6tkGiJQqwsXKkGR oj9JZHal/zm736ocHFszfl4= X-Received: by 2002:a05:600c:1553:: with SMTP id f19mr4557007wmg.33.1614871983762; Thu, 04 Mar 2021 07:33:03 -0800 (PST) Received: from macbook-pro-alvaro.lan (170.red-88-1-105.dynamicip.rima-tde.net. [88.1.105.170]) by smtp.gmail.com with ESMTPSA id l8sm22452221wrx.83.2021.03.04.07.33.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Mar 2021 07:33:03 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: [PATCH v4 05/15] pinctrl: add a pincontrol driver for BCM6328 From: =?utf-8?Q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= In-Reply-To: Date: Thu, 4 Mar 2021 16:33:03 +0100 Cc: Linus Walleij , Rob Herring , Michael Walle , Bartosz Golaszewski , Florian Fainelli , bcm-kernel-feedback-list , Jonas Gorski , Necip Fazil Yildiran , "open list:GPIO SUBSYSTEM" , devicetree , Linux Kernel Mailing List , linux-arm Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: <0A8F3739-E4A2-499F-8B25-C35CF6F811ED@gmail.com> References: <20210304085710.7128-1-noltari@gmail.com> <20210304085710.7128-6-noltari@gmail.com> To: Andy Shevchenko X-Mailer: Apple Mail (2.3654.60.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, > El 4 mar 2021, a las 16:25, Andy Shevchenko = escribi=C3=B3: >=20 > On Thu, Mar 4, 2021 at 2:25 PM =C3=81lvaro Fern=C3=A1ndez Rojas = wrote: >>> El 4 mar 2021, a las 13:12, Andy Shevchenko = escribi=C3=B3: >>> On Thu, Mar 4, 2021 at 1:13 PM =C3=81lvaro Fern=C3=A1ndez Rojas = wrote: >>>>> El 4 mar 2021, a las 11:49, Andy Shevchenko = escribi=C3=B3: >>>>> On Thu, Mar 4, 2021 at 10:57 AM =C3=81lvaro Fern=C3=A1ndez Rojas >>>>> wrote: >=20 > ... >=20 >>>>>> + BCM6328_MUX_LO_REG, >>>>>> + BCM6328_MUX_HI_REG, >>>>>=20 >>>>>> + BCM6328_MUX_OTHER_REG >>>>>=20 >>>>> When it's not terminator add a comma, otherwise remove a comma. >>>=20 >>>> =E2=80=A6 so you want me to add a comma or not? >>>=20 >>> Hmm... you tell me! If this is a list which covers all possible = cases >>> _and_ the last one is the kinda maximum value (aka terminator), then >>> comma is not needed, otherwise add it (to me feels like the latter >>> should be done here). >>=20 >> Well=E2=80=A6 Then it shouldn=E2=80=99t be needed, since this is a = list which covers all possible cases and the last one is a terminator. >=20 > Honestly the name suggests otherwise. And looking into the code there > is no guarantee you won't split that _OTHER_ area to something with > new compatible hardware. Every BCM63XX device has its own specific pin controllers. It seems that on every new SoC created by Broadcom they decided that the = previous pin controller approach was a bad decision or something xD. Therefore I don=E2=80=99t think there will be such =E2=80=9Cnew = compatible hardware=E2=80=9D... > Renaming to BCM6328_MUX_MAX_REG will clear that this is terminator, > but it means its value shouldn't be used except as to understand the > amount of supported registers of this enumerator. No, I don=E2=80=99t think this is a good idea. Please, take a look at: = https://github.com/jameshilliard/gfiber-gflt100/blob/b292e8c271addbda62104= bece90e3c8018714194/shared/opensource/include/bcm963xx/6328_map_part.h#L41= 0-L441 As you can see, BCM6328_MUX_LO_REG and BCM6328_MUX_HI_REG are used for = specific GPIOs, but BCM6328_MUX_OTHER_REG is used for pins which lack a = direct GPIO assignment. >=20 >=20 > --=20 > With Best Regards, > Andy Shevchenko Best regards, =C3=81lvaro.=