Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp678916lqh; Thu, 28 Mar 2024 12:53:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWIz+cokd96oQlcrGRAq+VXxl/2Dfnu3GZrgpckw7sKLHb9NA63uiUhzHKVM+XofeBcS/fjyFD/g+nC2lPgRemSrRZ+QbjMcBm+Mrs/sg== X-Google-Smtp-Source: AGHT+IEdO5mH3+XUXT1BGRLd3aFjjmC5pYGRRLOf9vT/Z4Z0ac/FU9OxJWhc8WzqwW0lpbsATH3i X-Received: by 2002:a17:90a:aa11:b0:29e:5e:33bd with SMTP id k17-20020a17090aaa1100b0029e005e33bdmr601176pjq.21.1711655604998; Thu, 28 Mar 2024 12:53:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711655604; cv=pass; d=google.com; s=arc-20160816; b=K8iwYXbt6u4zvcwFAjKNPYMluLekNvePcRJv201FYXRJG1DeuwMX9Ko5zT8mLgb2KH cPPQxC0tVrTJ/SX2nLvguGFOarhZGfIkUZWVsrAxSgzjiq88j6QxHOBy6D8O3SAL79et gAiPR6je/IdJb5MKP2qC9vWSIQiSuvOCQ49vMeazHo4ltcSJS9pTESJ8P1EaWZl2+X4N mNYxMPcH19XQYS8BXJg/ZCEJtSEQDO7tUkjnb2C1YL3QDc70DtRCpBtYiTGqXMNSedbg Xx0GBox7EsCLljKKdWOwcYEZ1HLb5aaVWxAwi07IEm4aduEQE5JJL6LAFqgN+osc/TZQ ctQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Y98AXy2EPHAOgeK4+7hLFbzZGIuwi3MKj49JJNRL6V4=; fh=sYmkTEHXgnBk9MXUITXFtFRH7W1aumhytWE39dMF6QI=; b=G+sOah+MwLEI20wHSSWGFqet3mDd4iLTInpQMvjRbJSutU+hVqJjVhdXYN1hu8/yU/ aI1RubfR79/NIWojkrkceteLIWF5ma/G47mv8Ou+uAc0vz20fbneho1A1hBirGtBQqlo ggJDmXx6m/kK52vTjrv4Eo5JqNTDc4r4h9iGkgM7KKgk86QqHudLcsQBsstMNll63fRo bbb9l8FjvMA+XF/m2b+0CAAP3tDj9NzxhDnQBusIi590XGWWWFtNk2PjYTBSEubjxdKB kUnkFGZAIVrPyrjpJfELpNfd7B1LLWW072EIsSmmUm+HnAOUrKBoqWTGaL38dZ+WJzn+ w5hQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KyQBiupU; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-123501-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123501-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i11-20020a17090a974b00b002a1f8ae409esi3153955pjw.152.2024.03.28.12.53.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 12:53:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123501-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KyQBiupU; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-123501-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123501-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E56EB299F3B for ; Thu, 28 Mar 2024 19:47:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E71A41386D0; Thu, 28 Mar 2024 19:47:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KyQBiupU" Received: from mail-vk1-f175.google.com (mail-vk1-f175.google.com [209.85.221.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8E0B3BBEB; Thu, 28 Mar 2024 19:47:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711655240; cv=none; b=S7CaoVEOVo8lZ20TkfzZnJqGOg91tVn/AHoDHTsiWhVvgZ1lOrGJMxT+kf88xKzjBcfBr4FhP588j7oDAqKv8Bp7OIyp7CEHHANFih3u4g1vid4fDNClTP5C8w065P370Dub8jpu9eQUw56f4FaZW0Qfuqs9HNWFQSRaZ00YNlY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711655240; c=relaxed/simple; bh=1Mt4TUpvlSuvJ96g0VUvqcJE8it+xvkFfhZZ5MLz++E=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=uLBwgjiNQK24n7hL1J7faBcTh0VTivWC03nJG2O4jb9zhpXZ2xI+HXL+yrBYcgjwpNiG+QFLuRuiPcaD7KvKfiktkCwUYbYpfTbyPmr/mKG7iDRRQjx3wDy6cCytVUspDxYEVZUiC+2egZXmfuT4Dw/E4HLr198Ocrs9MbRdPNo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KyQBiupU; arc=none smtp.client-ip=209.85.221.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vk1-f175.google.com with SMTP id 71dfb90a1353d-4d86ef290e0so689050e0c.1; Thu, 28 Mar 2024 12:47:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711655237; x=1712260037; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Y98AXy2EPHAOgeK4+7hLFbzZGIuwi3MKj49JJNRL6V4=; b=KyQBiupUpx9bp73BnhcBkdHss0e+9KqXYpwf5Juc6x4/RKXek45QzGFR8QIVEOV6oU KpWJdt0IvnX3gcrGkOeeiRXJZeFeSIoSo1/B4D/uvvOgDG92FPf6UGKlxm3ovJUEcuQQ C/5+wS1LTgvwdIxRHB34Xjzo+uP9fsChtcQQZzE5AJ5P5JVmA6+Leon1OsykF8uP4VXQ JNvgnsWQb7CtNN1muItCHpRLk2yJfoORkzFHmsffx2VXuXnihLqFy0Oz0UNxV7NI+5Ff js5aCse7XMDsTUtQQ+N23KwQTybrMW6K8BYENqFsllH00zd3Pyg+ow6R4FrvU2hqPCiQ Rvdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711655237; x=1712260037; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y98AXy2EPHAOgeK4+7hLFbzZGIuwi3MKj49JJNRL6V4=; b=OkSmUAVg4XDEJ+cQxXbwb1HkoT7UZyopTVzJEYQAgRcs7zLxeL/X/m/Zrq8FliHRpY jDSnkIKVeaUSJoxMy9C02q3ogdlyLpxI8C+T3pLGd9PtArMrfEgHKCaE4eq0mzujtQ2r b0tMaRbRf6BS0iLctKptJuaKzbZp+UsPw8DqB1LeaeFNw2wMkrkNu1z7H96VuIYI/SA4 sf57ZQLRt27hfERg6GcFCGp1Lvi6i8ifDWTtnOCVZ4O437clMARs2D+oNXI7bR3MqkQL cNCW8E5iVwsaktQ5ibphEkAVsHN+14lha/jAi7cwwmcpBctvdDu+c1kNDIXpVUcop3LQ zhBA== X-Forwarded-Encrypted: i=1; AJvYcCVPsfxwcTTt74FxmMy+lcfdI+1EsZx8dhx5YSVpa0C5aBTLIZYJV7UtJF+z7j3zqRonQtyMs61Drr9gBF0bFWkTlS5GwVZ/ulK4C23ptBMiOkkrA82WK05FHz9Mw+rpvrDpgeKochrOAHWbs1iZTkFV7EbbyJE9SxvrXb6/p2BNtpPkf72uXCf04ZKhWpLA84j2T0qYRaAf9i3wghOEdZrMDrlEIHIdig== X-Gm-Message-State: AOJu0YyPxsBAvgk6jtr3Szv6qk363XTe2BSbUC0kcp7ECrH9V6IsCcx9 zrzGJ7dUhY6zkhsFOWdTchs/F6KmAyxr9e8601Lk4TlTBWFRBmxX844zGMGHJGF2ODffCdJt8S8 oKrPes0C59PhYozy/Yl2w9J9FP76HqHqa X-Received: by 2002:a05:6122:c8a:b0:4d8:76fc:3aa9 with SMTP id ba10-20020a0561220c8a00b004d876fc3aa9mr3104788vkb.6.1711655237587; Thu, 28 Mar 2024 12:47:17 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240326222844.1422948-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240326222844.1422948-9-prabhakar.mahadev-lad.rj@bp.renesas.com> <4bd3b33d-564a-45e0-905c-d0deb52e6f38@tuxon.dev> <3d3a651e-2853-4b5b-bc8a-6f494250d9c7@tuxon.dev> In-Reply-To: <3d3a651e-2853-4b5b-bc8a-6f494250d9c7@tuxon.dev> From: "Lad, Prabhakar" Date: Thu, 28 Mar 2024 19:45:33 +0000 Message-ID: Subject: Re: [RFC PATCH 08/13] pinctrl: renesas: pinctrl-rzg2l: Add function pointers for writing to PFC To: claudiu beznea Cc: Geert Uytterhoeven , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Fabrizio Castro , Lad Prabhakar Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Claudiu, Thank you for the review. On Thu, Mar 28, 2024 at 8:13=E2=80=AFAM claudiu beznea wrote: > > > > On 28.03.2024 10:02, claudiu beznea wrote: > > Hi, Prabhakar, > > > > On 27.03.2024 00:28, Prabhakar wrote: > >> From: Lad Prabhakar > >> > >> On the RZ/G2L SoC, the PFCWE bit controls writing to PFC registers. > >> However, on the RZ/V2H(P) SoC, the PFCWE (REGWE_A on RZ/V2H) bit contr= ols > >> writing to both PFC and PMC registers. To accommodate these difference= s > >> across SoC variants, introduce set_pfc_mode() and pm_set_pfc() functio= n > >> pointers. > > > > I think the overall code can be simplified if you add 1 function that = does > > the lock/unlock for PWPR. See patch 13. > > I meant to say one function for lock and one for unlock. > I agree, let me remodel it that way. Cheers, Prabhakar