Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1269016lqb; Thu, 30 May 2024 05:48:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXsJI5QXt21/Le22I0wxxbR803a3KANN/lC0nNw4ZU8CwNB64ZpgcpT83ry79ezPCcmCOKLmMvAwVlFX3MUfwWAWJdIcWf9rXinl8zHJw== X-Google-Smtp-Source: AGHT+IH1cxgfdSnFuliq3xzBUsOKDyZMJ6Jybo6ApyZvKtqnvjrrTuNPn/QLRgjUM0TN4yTqjMTG X-Received: by 2002:a05:6a00:438f:b0:6f8:ec5b:69ea with SMTP id d2e1a72fcca58-7023111b04amr2592221b3a.15.1717073328596; Thu, 30 May 2024 05:48:48 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-701bc8e2a0esi5780551b3a.330.2024.05.30.05.48.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 05:48:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195384-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-195384-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195384-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 77B2BB22532 for ; Thu, 30 May 2024 12:48:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F9C413213C; Thu, 30 May 2024 12:48:12 +0000 (UTC) Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) (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 DADBA1E515; Thu, 30 May 2024 12:48:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717073291; cv=none; b=MQmrE3+3o5CoZiNXqIPVCKeYtsK/A2QIQ1r+6vIgXHLxZUs8fvCilwR+EEKUDVJH3gKH++1iB4kCjIdvGynR20IcuxW1GhutTr9DddNUnaYGGrsbDxKJW8ZbhpigiBqC3CaGgl24tvNM/DxiatDgP/NGLhA44w/w0j1dZpmM7m8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717073291; c=relaxed/simple; bh=8Tpa2UifMKplXpTbrMd4Foz89z0hWoO5ZMVosaocsac=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=amEQFJSib7W+cAaxbWAFZBWA/Ojen/xCKJoVmpca/XVlPDBjKN5UqYaoaTGRtksVXZ+Y4vf9HqyAVacAnEXdzOj7v/VIQ5oUHH2o2Pnujs5/dBD6J1kLK9yOtcQ23FYc3mms5bAc4zoPboQ8z6nOleob52jrbyeypv4z0e7zDXQ= 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.171 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-f171.google.com with SMTP id 00721157ae682-628c1f09f5cso7284477b3.1; Thu, 30 May 2024 05:48:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717073288; x=1717678088; 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=9bjFTQ5FA0ZUbYPMdPEv9X789dR7gzTPPFD376qEwI0=; b=Hllr2KNgDhRg3HYkmPNBr2qenZSZ+as5hlSB3JV7SUyld95dLCRZA526dVRhJ/1HBL xphXNTpqDB0qBLFk0gcxa4YgkGeFiY3jYSKWZm0lw+SegYLG9k9xzcJw8f92u9EcfSqV yS7YDvZYJnx5jibsMpEik4BQLVxwNRQ9ClbDKow5w2grjkWwxYYIF0GY21BePn6uJh+v MWobtzzD6KKv/1o9jk2gk29wsf89pDtMWh852mPGME+RiqzQ2FyzoucnuLT+7RGspNDG 29vUb9HOwbldo3AW2ZfIJTz3WMOXv9QMTGQgweHhHwwq9Z72ixSRoKWoXMV52SwM4fue 01wg== X-Forwarded-Encrypted: i=1; AJvYcCVWzyiR8InXS+iqKulYToIfOm8XMBcLHzS2XuvgfYD/K30r1lMSkyF3q1zMWsnWhPkRw4IpfUu+hWwvDfFyMdu5FhFKzqs1tpkYgRCPe4cVy3CEaQk8IM5bOD47C+KCS2uX5Kay539QejtAdqLVgJRX7gYVsq+jViAWJidhsD17fYzOVjwmlY/kaT9tPPaPHl70C7v7bGjM2mlvhBcLzhJ01pq7Gpeqlw== X-Gm-Message-State: AOJu0Yxq69WzvEfPA11GH5OHs+eOL2kp2NAqlJCk2KNluxhZPCek4tka K3fWYm8HLEupFRxlWoT+ik4/RpgInguJWaqsEwaTei9cZGTTBerT478ekx8T X-Received: by 2002:a0d:e650:0:b0:627:74ee:931b with SMTP id 00721157ae682-62c6bbc8b42mr27447877b3.6.1717073288384; Thu, 30 May 2024 05:48:08 -0700 (PDT) Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com. [209.85.128.182]) by smtp.gmail.com with ESMTPSA id 00721157ae682-62a0a3bf74esm28034217b3.37.2024.05.30.05.48.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 May 2024 05:48:08 -0700 (PDT) Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-62c6dc63880so5931127b3.2; Thu, 30 May 2024 05:48:08 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUx8giaVFolIdWrAVGpAgJpL+vZJex/RFFoIEG9+set5TpCxzQ4+4ooGids48KQ0/UhC+BsB1z7dKfqL4eiN7Pugt4nJGPyHJFY+7KzTCYNlm0yG1FNTKJVM037GgJ+IQhs6VC6jePRQKISsJR39s0xVWT94GdzXmUq2/+pE3QeU5etBYUCQtfWzZs1sOqgifccaxiOey1RBbT9Kniq10S6nd200yd4jw== X-Received: by 2002:a5b:d0e:0:b0:de6:1a66:3e4d with SMTP id 3f1490d57ef6-dfa5a7cd26amr2691878276.59.1717073287803; Thu, 30 May 2024 05:48:07 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240524094603.988-1-paul.barker.ct@bp.renesas.com> <20240524094603.988-2-paul.barker.ct@bp.renesas.com> In-Reply-To: <20240524094603.988-2-paul.barker.ct@bp.renesas.com> From: Geert Uytterhoeven Date: Thu, 30 May 2024 14:47:55 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/9] pinctrl: renesas: rzg2l: Fix variable names in OEN functions To: Paul Barker Cc: Magnus Damm , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, "Lad, Prabhakar" , Claudiu Beznea Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Paul, On Fri, May 24, 2024 at 11:46=E2=80=AFAM Paul Barker wrote: > The variable naming in the various OEN functions has been confusing. We > were passing the _pin variable from rzg2l_pinctrl_pinconf_get() and > rzg2l_pinctrl_pinconf_set() as the offset argument to rzg2l_read_oen() > and rzg2l_write_oen(), when this is not a register offset. > > What we actually need here is the port index, so that we can compare > this to oen_max_port. > > We can also clean up rzg2l_pin_to_oen_bit(), removing an unnecessary > branch and clarifying the variable naming. > > Signed-off-by: Paul Barker I think this makes sense. It will impact Prabhakar's RZ/V2H series, which demultiplexes these for RZ/V2H vs. RZ/G2L (G3S). 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