From patchwork Mon Mar 31 10:44:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 14033461 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C530C36014 for ; Mon, 31 Mar 2025 10:46:41 +0000 (UTC) Received: from TYVP286CU001.outbound.protection.outlook.com (TYVP286CU001.outbound.protection.outlook.com [52.101.125.14]) by mx.groups.io with SMTP id smtpd.web11.48817.1743417997231010548 for ; Mon, 31 Mar 2025 03:46:37 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@bp.renesas.com header.s=selector1 header.b=JLIxlcoc; spf=pass (domain: bp.renesas.com, ip: 52.101.125.14, mailfrom: tommaso.merciai.xr@bp.renesas.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=u4m7LmAOqeanwesx0XhWOYNljqJf5VkrOM9J6aP65us5Fz/+jwJDR6tkv0arWSEs8VCJs1DCK+UFtJDAPeI22nmEoni4mEyv7AC4vBt24jnP8kaTx6nsxOy/i3O5EGpnT9t8qnCTzK20CPQbbXpGEJ7xBTC1OJpvaOOSbn95qB1q2iXHY916QvNxFuwzgeYhyWa54W7M742UlXNG6pCHchKdU2vZYU5iLWRUW5xL7tXAd+EB75RhXcZcNvinDlmEAovPNqakf3/6u9nLCvYsVwTSzxPbo003DLOgjN3z1gUXYhewsvLXrq0WVFh+OgfuyLz9REOB+GU50blt+Ql/Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yiUJ80mJQQkcEcVeG5cHRZGdPnsJv7eNh5zkMZOSrzw=; b=gui+TwkRpDHvXn/SGoOVWV5FpV/hHWZ+O+XXAw5wmVLI8EAYE9ymLW6Sl8ZCyK1aP+yNK37nOLV3kGpGX03x/CyOvQET34IVOQquUwjCIw4QBA7aO11PFcircqjAk7NNPmhy/ZET3Fedu0NBK3qv9dUqNPeyb/IztvIVaJF39RHd95FsE5Eikd1iBPNkBjvARYj4rxvd/H6KekLWWSr04KZe+Rz6HZsBzs3WV3nv5oVTdVk2C2+yU2Rb1Zr5g7GRdye3DkR6DmHw6QQE5JEBMKajNQ7NpYunjQ0D6lh4M1RYqQuQQV5punxf267u5zeeaZEaSsPr2H8jr/YzthsIGA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bp.renesas.com; dmarc=pass action=none header.from=bp.renesas.com; dkim=pass header.d=bp.renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bp.renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yiUJ80mJQQkcEcVeG5cHRZGdPnsJv7eNh5zkMZOSrzw=; b=JLIxlcocpSW+OT70AG+2I/LHNyCNPqv1NcBsw/JQSsnoJBo28z85YZkoN9np1XDgcDwFgsWkN8fsjcAFJ4E04m2xbaYvwaU3Tl2N18R0kRJIrrySbb9OznZpsts/XeaNCoF8iCv0poUIaKwG7VCis9Dze9uwqYJCgY18IjoJbFE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=bp.renesas.com; Received: from OS9PR01MB13950.jpnprd01.prod.outlook.com (2603:1096:604:35e::5) by TYWPR01MB10032.jpnprd01.prod.outlook.com (2603:1096:400:1e0::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8583.36; Mon, 31 Mar 2025 10:46:34 +0000 Received: from OS9PR01MB13950.jpnprd01.prod.outlook.com ([fe80::244d:8815:7064:a9f3]) by OS9PR01MB13950.jpnprd01.prod.outlook.com ([fe80::244d:8815:7064:a9f3%5]) with mapi id 15.20.8583.036; Mon, 31 Mar 2025 10:46:34 +0000 From: Tommaso Merciai To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu , Pavel Machek CC: Biju Das , Lad Prabhakar , tomm.merciai@gmail.com Subject: [PATCH 6.1.y-cip 21/43] pinctrl: renesas: rzg2l: Adjust bit masks for PIN_CFG_VARIABLE to use BIT(62) Date: Mon, 31 Mar 2025 12:44:52 +0200 Message-ID: <20250331104514.79090-22-tommaso.merciai.xr@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250331104514.79090-1-tommaso.merciai.xr@bp.renesas.com> References: <20250331104514.79090-1-tommaso.merciai.xr@bp.renesas.com> X-ClientProxiedBy: FR4P281CA0148.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b8::13) To OS9PR01MB13950.jpnprd01.prod.outlook.com (2603:1096:604:35e::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS9PR01MB13950:EE_|TYWPR01MB10032:EE_ X-MS-Office365-Filtering-Correlation-Id: 6448f24b-153b-4af2-8505-08dd70414e10 X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: ayFT10ivliTLiddmWNrPN7Bm1QsiM4rKgyIrkmnMgU+yubLgo00F/x3AqGEJbOpzvEk3nHBOJThQ3qF2Et52PibIVc0IRjiZF1qu5UW9Jp3ZJUlv2KJAPdMTp7T8CE+zFspoUmJj5OPYVxSvH9iLycz6uJAPVuJAci1tFG1N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gRmUsgP37YciO0v0iFQGSrGFOrBN3sQI/qOaZTGcpkGWWJUgT62+GYaOv5HUL3uC8T6jJWUU5MnOsJY2o3Wm+i8l/phr0tT6+HIdgt1uGKkyCY3T9lSO1t9jUfwLKtP07YtrbvhXZ7Om3UbHZf6VJZoiiE6S0hQHY6QSOhLzmFdr9xl+zPdOVnNyVvIjpVD/G1h7QhSlwkGRqmROd7YIrzHIKtOxMOJSqLQJdHZIUxlNbPSpjnPAg8QMr3JEpe61LLZCTg6fHp8tP67+w= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS9PR01MB13950.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sAKRQSbwM6wjYa5LZxF827UBMOr4ssUUKI54EuNEr6A4WOpASz/5b34J4YgtLcLvKJ+8wmwmCdeKlEZv0/dF/2qR2tQRhlBWZMyDB2DccKqIi343hnepChuC6qK0x5Kqop2LAJnb7Sl8WOBzHGjKstGIpExYvInTDFOFAOk0CNrc4Dr82X25wQR0CNED0Xveh3eDGzbGj20qglwGDTY9M3UnvXNaEPwWE7b6m5E7bSateVSECusQNWF8a+izQ9p7lafEF3LNyYiUsCBkVbOJNZKSzOGVhuGYjkm1bZMVPFX7v4NcIoOfihlDge9Nn5Oj7h7WW1tgSnaATuTitCiQ6xLyw313vq8t+T/d8Bezj50d0gwDhDqGP6GSjn7sRLaF10Hv/0ROKcGF0Fwh29I/I7tGswXUVpcJcmbH/QX7cwh6LdueoNqcdtwNHfLCaGA1xQiNvtuDe0HKPpUQI9+qLIhuUPbkLXILWMPc//BhWsMuv9KGmy8xNlzGslnXLpt8TEsys+4o4wRxoYmiDnY+O1nXWW3ME7sytYnTOEjk24mpAZIdZ3ePkoAiggqL//1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bp.renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6448f24b-153b-4af2-8505-08dd70414e10 X-MS-Exchange-CrossTenant-AuthSource: OS9PR01MB13950.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2025 10:46:34.2407 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: trnVaCnrdCP1lLKBF6qUNqahtovdJPvvvk6wNpQjHLWmb9qjXI56lJDyxJfJUdoNaT3lf/t/N5wi37qFfu1J0RbQbLBlojb1jVDzWf+909Yfcbh45aZpUtgEf6OkNI3a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10032 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 31 Mar 2025 10:46:41 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/18409 From: Lad Prabhakar commit f0cdf878a22b91141d6050deed0eac70ab982ebc upstream. Shift the bit masks for `PIN_CFG_PIN_MAP_MASK` and `PIN_CFG_PIN_REG_MASK`, to accommodate `PIN_CFG_VARIABLE` using `BIT(62)`. Previously, these bit masks were placed higher up in the bit range, which did not leave room for `PIN_CFG_VARIABLE` at `BIT(62)`. By adjusting these masks, we ensure that `PIN_CFG_VARIABLE` can occupy `BIT(62)` without any conflicts. The updated masks are now: - `PIN_CFG_PIN_MAP_MASK`: `GENMASK_ULL(61, 54)` (was `GENMASK_ULL(62, 55)`) - `PIN_CFG_PIN_REG_MASK`: `GENMASK_ULL(53, 46)` (was `GENMASK_ULL(54, 47)`) Signed-off-by: Lad Prabhakar Reviewed-by: Geert Uytterhoeven Tested-by: Claudiu Beznea Link: https://lore.kernel.org/r/20240618174831.415583-3-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven Signed-off-by: Tommaso Merciai --- drivers/pinctrl/renesas/pinctrl-rzg2l.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/renesas/pinctrl-rzg2l.c index b4ad4a4d20463..2a8223a9e226b 100644 --- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c +++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c @@ -86,8 +86,8 @@ PIN_CFG_FILNUM | \ PIN_CFG_FILCLKSEL) -#define PIN_CFG_PIN_MAP_MASK GENMASK_ULL(62, 55) -#define PIN_CFG_PIN_REG_MASK GENMASK_ULL(54, 47) +#define PIN_CFG_PIN_MAP_MASK GENMASK_ULL(61, 54) +#define PIN_CFG_PIN_REG_MASK GENMASK_ULL(53, 46) #define PIN_CFG_MASK GENMASK_ULL(31, 0) /*