Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp274640lqr; Wed, 5 Jun 2024 05:58:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWY01a5My/aCNzy4MF3by8NNATny+kLuEGvVlEIIUMcuMd9DAQAifvfcEgd4xdPC0ciu8Ke3jcZ12mm2+YKq0du+oxw5cRfDrfMeoH6yA== X-Google-Smtp-Source: AGHT+IF8L4ap7D0svMBOqhuuEtL31u4LnWbDi6kNwUdNL0+HrMd9UTTtK7dyYGG3DdYinl5Y9rLq X-Received: by 2002:a05:6358:6f04:b0:199:4222:f949 with SMTP id e5c5f4694b2df-19c6c7b0586mr291361855d.17.1717592339260; Wed, 05 Jun 2024 05:58:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717592339; cv=pass; d=google.com; s=arc-20160816; b=b9M8GrdO7cemWPZFJbf9hM2anXgvJvOITQmJTu/3osUHAls/Q+rgLiYN1DuhSlNdxt t5kEAZJBLBIckYwkWQ787/WZeuB2JQZLvsamyHUohkrfqr4rW/qAN7wv2cLG9ysJdLy9 Q54zALZj44FPIfwZp0EVq3X+/fdKR4IU/xikiCrF8n/B38QxvrVo6/bSy9zXb45Y2fk6 LfIYha4byAdEQDQtyo/aF0eWbL3tqi+PvGUu/lUgle/dTS2hR1nCaKrUznTF+U0ibQum Qg62iVcMlDCSFsJleApDgO4GAlYaGA0bKmZ96DK31i5A63Hq53s5pRIGipRU4IXf9n5U Q6PQ== 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; bh=PxXy8Ps21+71uwtN2Z1w314kqnFNif1xevexGRCZTfY=; fh=hyx6xXZfiDppthPgeH5yazEIykImdTgofN7ZffzBKiA=; b=AS69KazqAa6l+FGRcK09N0QCjM8OGo+K13/SVRjmx3MDeYer9XMswyVzYdYf76dgRo kZTjizt2xPQWbZcgy6Q28CZwNQfIFPZauOQMRmFg8NtZ54NJnHprHgb6EWMe0PfT6p9u 5D9Dy7u4YK9xdTj7DVKYVUA/1L2CltTcuuY2332bP58bXwsOv5r/n71aPXFJQerIDRK0 oThaIkjEm+tFzDdzoQBBfOmPjBiMp73UblZ1YRzSCzZVJMGwOFzt9xiDDl1eLswmu8DK 9t73YLpgsGZmuaWZBsbrgZ5g8Bs4bS+WOin/5pBxEOlZxjdwADeqgDjnVDj/vVHxg8ob u+rw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-202562-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202562-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3540fb3e1si10120070a12.163.2024.06.05.05.58.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:58:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202562-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-202562-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202562-linux.lists.archive=gmail.com@vger.kernel.org" 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 D6F942954D2 for ; Wed, 5 Jun 2024 12:58:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5CAD197501; Wed, 5 Jun 2024 12:14:12 +0000 (UTC) Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) (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 66601197503; Wed, 5 Jun 2024 12:14:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717589652; cv=none; b=IzijG0A1FGrB5hBFe/OOr2TK/MSdI9v0E6IcTkm3Y0P0kcJP3yY+6JfgirP1uk1qGoMQ22FJHZLWVZ4UkfB80gckVOjdsZhzIO1HNZ224NfjBHszeNb08yPF5UhI9Ycxg7URP/zOS8XkqJjx+X32Q31om8Y3zrp9/DsP4mzHo5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717589652; c=relaxed/simple; bh=3kmYkRE5l0pAlN5CkTx2XXiDFZd1noPq2fbHblWvzec=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=FnLLaQI4Uz268Wx7FSvn8R22l6kdnC2fVaDlGwsdI4FZ1eI5ENWsSEA9MX4Vsj4Hzg4ZLSj0p7GLV/5tT+YGu13UUY/E56JURgwlvhZ20GXhw652sImOv2fur1S6FcpGk10pm7THZgtn+spjSAcAtXAJQyur06nMjDgSJnaIChY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.128.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-62a08b250a2so23350457b3.3; Wed, 05 Jun 2024 05:14:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717589648; x=1718194448; 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=PxXy8Ps21+71uwtN2Z1w314kqnFNif1xevexGRCZTfY=; b=I5B0/hqogvgys4/N9HlvC/cEGihqTAc3kRH1S3q5WnsGbds2cuATtUI30laUG/3WO0 9yR7Bwug3LxPxEjcjYDh6nC+kT9WvTONbAcT7EjCuKoga59nGmUsIcHvWWSDylZXRQ0S z8impV5rpZJdZw3QOYCYoVea/Iw3PwxkjowRRLL+LVGysGubx6X8IsbhS9gL407hsPas D6OP0ofcTDNsA9dqfUjwBGD9paxjdroPdHuqHifDuHFPPL82xDDfkiSMN0rne4EAMWzC Blux8F5AePiPPg9Hy8lZekLvfx7EzSeRrWVUYI3mEG2xtBwrvNHl9k+XFLoOt8/T7WwY M8qg== X-Forwarded-Encrypted: i=1; AJvYcCVqfq5wt/Ayb47v14vDibwmm4ys/eMFEq7BmyCO37ogCWF3Eo2oVWt60JZVq/LgIA9+V8r4LMN7x+tSbfdXlI34IwagLmmkIB0sudGII41Fk0u+KyLfoVVOuv1TeeCxNZlkB5GUBWVqbh7ZKaUF7uDTmqxTOjad4asko7KHbf3PMgdsdm+PHUvfTMNjwuqLxO8HfthYjmtF9uPfUb+44dt1g+NcvD8nxg== X-Gm-Message-State: AOJu0Yx+yHwZMrll8h0fMo+ZQVI+7eM9ZzGLwgJkaXAgNdESod6lUP0L /TBen4FUfnLqKkq7LrJKPNFcEdfjAQ0r+x9of7XrKQKfDrWQwbFMIlXvO+VJ X-Received: by 2002:a0d:df49:0:b0:61a:c19f:fc4c with SMTP id 00721157ae682-62cbb4ad9f5mr23164957b3.3.1717589647545; Wed, 05 Jun 2024 05:14:07 -0700 (PDT) Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com. [209.85.219.177]) by smtp.gmail.com with ESMTPSA id 00721157ae682-62c766b3259sm21760417b3.109.2024.06.05.05.14.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jun 2024 05:14:07 -0700 (PDT) Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-df78b040314so2317626276.0; Wed, 05 Jun 2024 05:14:07 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCV9jIcTnxvaCGnOo6L6xHMIGrNVILP1daKmZAzqRL47XvUnklMYZmNtQ6M4+wZjuR6XXMAp4qb56tanpAQAKl6156cJtJ3+DxHK67yFqd3wt/1/y2s/yXj3Ra9ZtHaQwYB/PSXq+ziokwYBway+Us4xw3QjNBPGtj1/jRZ0Nkg1Tv0eKlksMLpL2Z0qk8LZ898BGW78SxQUF7eyQ07lVndfmhx83UulsQ== X-Received: by 2002:a25:aace:0:b0:dfa:b42d:f818 with SMTP id 3f1490d57ef6-dfacac33deamr2055002276.19.1717589645708; Wed, 05 Jun 2024 05:14:05 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240530173857.164073-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240530173857.164073-9-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20240530173857.164073-9-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Wed, 5 Jun 2024 14:13:53 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 08/15] pinctrl: renesas: pinctrl-rzg2l: Add function pointer for writing to PMC register To: Prabhakar Cc: 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, Biju Das , Claudiu Beznea , Fabrizio Castro , Paul Barker , Lad Prabhakar Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 30, 2024 at 7:42=E2=80=AFPM Prabhakar wrote: > From: Lad Prabhakar > > Introduces pmc_writeb() function pointer, in the struct rzg2l_pinctrl_dat= a > to facilitate writing to the PMC register. On the RZ/V2H(P) SoC, unlockin= g > the PWPR.REGWE_A bit before writing to PMC registers is required, whereas > this is not the case for the existing RZ/G2L family. This addition enable= s > the reuse of existing code for RZ/V2H(P). Additionally, this patch > populates this function pointer with appropriate data for existing SoCs. > > Note that this functionality is only handled in rzg2l_gpio_request(), as > PMC unlock/lock during PFC setup will be taken care of in the > pwpr_pfc_lock_unlock() function pointer. > > Signed-off-by: Lad Prabhakar > --- > v2->v3 > - Now passing offset to pmc_writeb() instead of virtual address Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert --=20 Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k= .org In personal conversations with technical people, I call myself a hacker. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds