Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp534535pxh; Wed, 10 Nov 2021 05:42:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqBmSPqhUb7Ga6TIZ82PLgOC7vfsoxjTpd3Z3TKBZVgJU6OZ6pwTZEc19FS1OEMSFO6gRo X-Received: by 2002:a05:6402:95b:: with SMTP id h27mr21960092edz.116.1636551768279; Wed, 10 Nov 2021 05:42:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636551768; cv=none; d=google.com; s=arc-20160816; b=V8LtJ2RwNXkPcL+HcekYANtX1O56mgU3w8kE3pXvEkYzAW+dJ37rkEfsnz5OXtFysn 2bUiKpRgZP+OgPl7JewhMY/oo+BXl2tmeNsnEzT94hYMTDAIcGjKRNIgclyZll7aTyMR KcpJHaA6rQcwL9tMbz4S6HfEnB1bGLhOn8R2nuMwUouY9yhBfxgjY6uA24uLJjuGJHXR +24sHvetTjf+Ds3TJd2/8ui95+b1BEEDhKbeQ5lvIl/NHDMpNh07uSEsrA7HbYj3Gzuv i7HjvquekcLXEyiOWpYoAvNKMezx0zJCtLuurj3g/h30DHoTQvXD1kqhysvtx1TDxvZ6 LpHg== 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=t8z0LYFGE6DI0GYMpGpDh9ycQEL09twpw3cECR1Vgxg=; b=DdX/10JpcaXfpDNfykt6uA/VhYPCzcZqYqxoNKq0M7eaDrVItxYsx9dm+kj5RkcBB7 OEh+wgl/YetY1VbJoO8R7kOIxzHosDABNf+mi2ydPNH6E6elwS65E5H9boIFY2CPC/i1 WiRsuC1XM1Do9wzdWAYQZoH9RxecDoUBmigw5IN+RVINjOUPUGd7es0z30KQhATdiBDW 1ImNbfq5QMxwJ6P4Kc2m3tAj4WQIm6to9/t5OgxAKeqSEhIRCmCk+DfzpKbNYVyvVg79 NhqTJTEOJeGIz4LeQrP0FDjZZYazUwJaPjDQFSmpz+QKPkVh7oqA1AZgDvPR8Pu2x28w StPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Lphqzelm; 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 h12si53229541ede.403.2021.11.10.05.42.23; Wed, 10 Nov 2021 05:42:48 -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=20210112 header.b=Lphqzelm; 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 S231663AbhKJNnN (ORCPT + 99 others); Wed, 10 Nov 2021 08:43:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231210AbhKJNnL (ORCPT ); Wed, 10 Nov 2021 08:43:11 -0500 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67799C061764; Wed, 10 Nov 2021 05:40:24 -0800 (PST) Received: by mail-yb1-xb31.google.com with SMTP id q74so6410624ybq.11; Wed, 10 Nov 2021 05:40:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=t8z0LYFGE6DI0GYMpGpDh9ycQEL09twpw3cECR1Vgxg=; b=Lphqzelmw/aq8+au0LafvSHcHqc6/axxJg4Qb53yDwy3F60/Ozf1/tAE5lx4cjlfah rAOl8YcqG5TlLCvDijtepDIMJmp0LLBD+lj4UGWp018obtbWpc9mAtPf0+eH8PMvq6yj xQn7vZ1vf0qO59acJ5rraIVChrgGVqRYLq9FfuOwQLBGKyLKxYAku2JJvF6aZJf2d5hm WobeE8Epje/Y9JGosNz+J1kxcunf+5Py9A9JGvFuMY3wkN5tlTwHfXqxv1PjLYIT2bep lvMQEs787bePQ7CUG+2HHKGcJd98MY8/V52VWk46JfOn2soeBxvJijnb4Qm3g4TnqllJ mT8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=t8z0LYFGE6DI0GYMpGpDh9ycQEL09twpw3cECR1Vgxg=; b=2agz+KrXV5EjRElaiXZByIbVqAmZbRgEpvzebwnPkzBjHdUBQC8IfUr+PW3+A8STx8 UhxVq5HpNt10YoZZmb7Y6fwMWrq5cQ24l6IuhGdWEMshtSz/vgYeiItpNomsgBS1SeMg DFExg7qWA9QlMgZyHY5bHbsy5zaSobhk4O22O1jIyG5KHe0OWRLHsUPWCEDXyTJxHzTe WiBg4D5lXezhL+U3dXuC6qD8hW8/6p01G5FpLx8gQEN72t7E8V8fH2A0OF8UCQ0wOqKD x59IqqKBClQt1qebvt67YZnRvcxrlaBIJ1NU+84LOdZbsL+UwEwEribWhExGj2i4gLw4 1fdg== X-Gm-Message-State: AOAM530TbH4Ldf7iGP4ZWQdQOlDdI7H6XtQoEvW7WDTPGVvkT6N7cXm7 GFUpOsqCcT6D/m+yGLYq6wlhN5/cYVhD4j+f8mEzX4avYhk= X-Received: by 2002:a25:1c02:: with SMTP id c2mr18224314ybc.218.1636551623650; Wed, 10 Nov 2021 05:40:23 -0800 (PST) MIME-Version: 1.0 References: <20211029124437.20721-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20211029124437.20721-6-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Wed, 10 Nov 2021 13:39:57 +0000 Message-ID: Subject: Re: [PATCH v2 5/5] pinctrl: renesas: pinctrl-rzg2l: Add support to get/set drive-strength and output-impedance-ohms To: Geert Uytterhoeven Cc: Lad Prabhakar , Linus Walleij , Rob Herring , "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Linux-Renesas , Biju Das Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, Thank you for the review. On Mon, Nov 8, 2021 at 3:40 PM Geert Uytterhoeven wrote: > > Hi Prabhakar, > > On Fri, Oct 29, 2021 at 2:45 PM Lad Prabhakar > wrote: > > RZ/G2L supports two groups of pins Group-A and Group-B. For Group-A > > pins drive-strength can be configured and for Group-B output-impedance > > can be configured. > > > > This patch splits PIN_CFG_IOLH macro to PIN_CFG_IOLH_A/B and adds > > support to get/set drive-strength and output-impedance-ohms for the > > supported pins. > > > > Signed-off-by: Lad Prabhakar > > Reviewed-by: Biju Das > > Thanks for your patch! > > > --- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c > > +++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c > > > @@ -501,7 +507,7 @@ static int rzg2l_pinctrl_pinconf_get(struct pinctrl_dev *pctldev, > > unsigned int arg = 0; > > unsigned long flags; > > void __iomem *addr; > > - u32 port = 0; > > + u32 port = 0, reg; > > "unsigned int index", for symmetry with rzg2l_pinctrl_pinconf_set()? > Agreed. > > u32 cfg = 0; > > u8 bit = 0; > > > > @@ -549,6 +555,24 @@ static int rzg2l_pinctrl_pinconf_get(struct pinctrl_dev *pctldev, > > break; > > } > > > > + case PIN_CONFIG_DRIVE_STRENGTH: { > > + if (!(cfg & PIN_CFG_IOLH_A)) > > + return -EINVAL; > > + > > + reg = rzg2l_read_pin_config(pctrl, port_pin, IOLH(port), bit, IOLH_MASK); > > port_pin still under discussion, cfr. my comments for the other > patches in this series. > As discussed in patch 3/5 will drop this. Cheers, Prabhakar > The rest looks good to me, so > Reviewed-by: Geert Uytterhoeven > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds