Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp333405rdb; Thu, 5 Oct 2023 07:20:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFgAPYB6Eu+ZBm0KgyDvSyB/p0Ez0pV7tzTOeGtnaSD1QpMDL0rG+IbRfnNQjs1tyVAEkWY X-Received: by 2002:a05:6a20:3943:b0:12e:caac:f263 with SMTP id r3-20020a056a20394300b0012ecaacf263mr4169740pzg.20.1696515611422; Thu, 05 Oct 2023 07:20:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696515611; cv=none; d=google.com; s=arc-20160816; b=Hi0xoEId3z6wl52yaOYWgLjqF71pJc/hPHA7D5tTBf6OoYm+k3dgw28NkVnVxaMri1 tiE1OYH9UBQjLtR0WvSaawwQG3Rholw7+UhpeIW7eesDXOX1hzmJgLyGD8wgEsqracfw I2XXtwvRQMO1PzxSf5d8c9RQ9qEhA5+d917WyW6BMkTnksxzlavkKJkhTbGiEc0dsHRT Ln4cz6hKI2BDiczbUbyLYIwpEjIFtjwKoL56qrlbSjU2n/4c9yfWeoValnMvpXJGTIWc H0dlI9ivuMoD80sbDvCh1rwtWxwgqrykYQjbrLprSe+NACMg3pAGvG6Tj2EMDUP7t8ei rjtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=tumpG4fZu91mYpt2qQbWwuFfddli9/TW76sKXIYzTOk=; fh=oGQUvxDAhcOOTn+6F/SJidWlW95S9z12xUCWIVxqtqI=; b=Fp7r9E+IxHoF67VEtIRLB3hkLgKvQx0ioEC3EZHwXDVpiQc9+3iyZp1bbLodzg/J0c gwntAPOW+dZ4kowTKhMdxhPKICPqTx0breLC7PLskbdcWj5izh8WGnNVw7REmTlQqlLj oQdG15y1z72HAU+guCry4vVjSPxO1YLUDN5ah/8DmxxUZHznPCIMxasD4dTdN5AVJx4j gBXcIAGyTkiCL9evEA/ggfiGQ7TmRJ61YjoO6AjGvJa5kq2yMzfWtZgbYMT5wWwAO/L/ ZVM1t/GNYO2V/wu+/HwRkD2yr3LLty9eUz45gXx2dFexQQq7OclRMvguCYO6TlDSDi3M A7aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=deQ7A4mY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id cd21-20020a056a00421500b0068e37843a1bsi1453363pfb.162.2023.10.05.07.20.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:20:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=deQ7A4mY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4CCFE82E7B1F; Thu, 5 Oct 2023 07:20:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233103AbjJEOTf (ORCPT + 99 others); Thu, 5 Oct 2023 10:19:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233574AbjJEORJ (ORCPT ); Thu, 5 Oct 2023 10:17:09 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C55D649C1 for ; Wed, 4 Oct 2023 22:05:46 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-534659061afso808028a12.3 for ; Wed, 04 Oct 2023 22:05:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1696482345; x=1697087145; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tumpG4fZu91mYpt2qQbWwuFfddli9/TW76sKXIYzTOk=; b=deQ7A4mY5ePOw4jHVnPJCqadPHGXWot17MfTlsuzPmL1tAKWWcgtfIzYCl6Y26RH/2 Tg5vtPBAu0gJKO7CFEu7p2di+9Zo7ZnGiByuPZRH4rVpEmvI6Ad5Z1u3CH752De5xk+b 6k6CTfr0mgVEyVtkEVStiiy6ER34FpSe0ONd2J1hDIrOt+KFaJzkK7e2ZCnkgu2oFmTx hJYJmKEe1oqQ26KbG9i+ATT9szB+0wzhWfDLnsox8IPOw7cn1kAP95Htmm4YSPIftgTn WIV57dECWvJJjG2shxvBLoZgUjtRC3J09TgpgpGGMiZclNTXmV2XoELeTgvgyRXZqaUB pGSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696482345; x=1697087145; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tumpG4fZu91mYpt2qQbWwuFfddli9/TW76sKXIYzTOk=; b=sGej8GIySyg7W1CUd7QtijkmZryvMvQ/IaU8JkeVTXGhP3rzdMjqJgamuuMul9bC/A oiZHO5+tZZqCWIlohjAofddyyJgj/M9oWPUKDOSBbGD1kL8tvcF1jZI04ritY+ulwSO+ Wdekalfz9fWthZJEZAKS3xZnQ5paVOOb3vuifbnfYn/N49N8EeKneKCjCKGgLkVteEzm uI5inlkQG6GXpRwwS9H9AnR1S8cqg851QZ1LqcRvsuOf199lWphajnL73rjSzRCEjopD uXCTCl4BU/RufGTMeGfhcLf7aFRmKnoaHiX3mUNIO7QoGTgSZu18HNLsedJ4iVWB3rXz ixdA== X-Gm-Message-State: AOJu0Yy4cWvXZidVs+04WDd34bRQdd5ugA7Iif9nYIYenjjHe7CbMAHp UDdDvyW7psuznJcgxb0y4b7O/A== X-Received: by 2002:aa7:da8c:0:b0:530:9b94:96e with SMTP id q12-20020aa7da8c000000b005309b94096emr3525467eds.41.1696482345190; Wed, 04 Oct 2023 22:05:45 -0700 (PDT) Received: from [192.168.32.2] ([147.161.130.252]) by smtp.gmail.com with ESMTPSA id u15-20020aa7d98f000000b00533bab9d9f1sm434409eds.1.2023.10.04.22.05.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Oct 2023 22:05:44 -0700 (PDT) Message-ID: <08ed16ff-14ca-a7e2-59c2-da949ceaa608@tuxon.dev> Date: Thu, 5 Oct 2023 08:05:42 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v2 18/28] pinctrl: renesas: rzg2l: add support for different ds values on different groups Content-Language: en-US To: Geert Uytterhoeven Cc: geert+renesas@glider.be, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linus.walleij@linaro.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, magnus.damm@gmail.com, catalin.marinas@arm.com, will@kernel.org, quic_bjorande@quicinc.com, konrad.dybcio@linaro.org, arnd@arndb.de, neil.armstrong@linaro.org, prabhakar.mahadev-lad.rj@bp.renesas.com, biju.das.jz@bp.renesas.com, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20230929053915.1530607-1-claudiu.beznea@bp.renesas.com> <20230929053915.1530607-19-claudiu.beznea@bp.renesas.com> From: claudiu beznea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:20:10 -0700 (PDT) On 04.10.2023 16:17, Geert Uytterhoeven wrote: > On Fri, Sep 29, 2023 at 7:39 AM Claudiu wrote: >> From: Claudiu Beznea >> >> RZ/G3S supports different drive strength values for different power sources >> and pin groups (A, B, C). On each group there could be up to 4 drive >> strength values per power source. Available power sources are 1v8, 2v5, >> 3v3. Drive strength values are fine tuned than what was previously >> available on the driver thus the necessity of having micro-amp support. >> As drive strength and power source values are linked together the >> hardware setup for these was moved at the end of >> rzg2l_pinctrl_pinconf_set() to ensure proper validation of the new >> values. >> >> The drive strength values are expected to be initialized though SoC >> specific hardware configuration data structure. >> >> Signed-off-by: Claudiu Beznea >> --- >> >> Changes in v2: >> - s/strenght/strength, s/togheter/together in commit description >> - got rid of RZG2L_INVALID_IOLH_VAL macro and consider zero as invalid >> value for entries in struct rzg2l_hwcfg::iolh_group[abc]_ua[] arrays >> - removed spinlock in rzg2l_[sg]et_power_source() >> - introduced caps_to_pwr_reg() and simplified the code in >> rzg2l_[sg]et_power_source() >> - changed return type of rzg2l_iolh_ua_to_val() to int and return >> -EINVAL on failure cases >> - s/rzg2l_ds_supported/rzg2l_ds_is_supported >> - inverted the logic in rzg2l_pinctrl_pinconf_set() when applying drive >> strength and power source to hardware registers and thus simplified the >> code >> - used devm_kcalloc() instead of devm_kzalloc() >> - adderessed the rest of the review comments > > Thanks, will queue in renesas-pinctrl-for-v6.7, with Paul's comment > addresses. Thank you Geert and Paul! > > Gr{oetje,eeting}s, > > Geert >