Message ID | 20250331104514.79090-39-tommaso.merciai.xr@bp.renesas.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <tommaso.merciai.xr@bp.renesas.com> 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 87234C3600B for <webhook@archiver.kernel.org>; Mon, 31 Mar 2025 10:47:31 +0000 (UTC) Received: from OS0P286CU010.outbound.protection.outlook.com (OS0P286CU010.outbound.protection.outlook.com [40.107.74.13]) by mx.groups.io with SMTP id smtpd.web10.49098.1743418048927644782 for <cip-dev@lists.cip-project.org>; Mon, 31 Mar 2025 03:47:29 -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=De+kGcrf; spf=pass (domain: bp.renesas.com, ip: 40.107.74.13, mailfrom: tommaso.merciai.xr@bp.renesas.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vVNGD/9puWl9skgxLteamEZ3wMqxVh/jaeHnHcjjBotOh7CUJVY6LN+yz1V+c6eWVNtnkGhw+IvApAQS04rYH14V394VhfdY6vbkFNgOGX3056MsSiZ4qVjuyQ7pBKteeZdciGkFPbiHHRy32D8lrzHjknLHZcS0NAI4bl/w5A4NObKjdaoagFRaoC7VWGl4rjdvqRftPF8mm6B63VwJ2hezTVMlO+LU2QTnJK6a2Lu6qBSG3r9OFVq3epTkyHSq3hUPSsAJm+86dLlLodcBpNmvurA4ibQJ5rGXJ0xfympPNHFc5jyYGcUyol0Zellrqy9TpeLj26MKdPfzwq7Xpw== 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=mcuB5z5Nvph5bTro2t0FWX/aIexMnjOOUcaIhyiWQeo=; b=qAdNkDlhob01D5mnqoxsyeDMAjU3JO3xFH9BbD03JqtGdQ2EvAx/sDGQakSx6I8Q5RGdpx9hf/+kXE+0/r5OO3c6zJA9debV06lYOy1xMbkaW4HX5aN7ZrsTWyH/9tBv/hbp1PFfV9LgiVtdXCNJvjRVvPBvoDdHNApTkhZ2tUp9xBdfucWs3WStqG3gwquuTEORO0Xhul9t0qRmph8kHrVieEtiDLzo3GmHpdUnfm9xBo7QCOiAdCDlkuAleN6LLKHtPqlkoqRI5dG5FRSddUYC+GEnJqxVq/Q/XcwjVdPWOJ9mdqSF8Pq7JQVjYubeF9pGOAZ+nC5pWY44DA4NtQ== 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=mcuB5z5Nvph5bTro2t0FWX/aIexMnjOOUcaIhyiWQeo=; b=De+kGcrfRULAqH7+EAXALmPo/Lvmsht0det6qgePdWExtRfTDav5MUnVOtYv8+uJXBDeq4dq5ic0PyPyA9mSUWXQcNThyk1fnls6rH+XxhRL4XSkKsv4s77rrxWD6z3Uh4pZneMpV9Ffg1EOkAX2DRXd26FxZzwH3g4/ymOPcI0= 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 TY7PR01MB13744.jpnprd01.prod.outlook.com (2603:1096:405:1ef::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8583.33; Mon, 31 Mar 2025 10:47:25 +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:47:25 +0000 From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>, Pavel Machek <pavel@denx.de> CC: Biju Das <biju.das.jz@bp.renesas.com>, Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>, tomm.merciai@gmail.com Subject: [PATCH 6.1.y-cip 38/43] pinctrl: renesas: rzg2l: Use gpiochip_populate_parent_fwspec_twocell helper Date: Mon, 31 Mar 2025 12:45:09 +0200 Message-ID: <20250331104514.79090-39-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> Content-Transfer-Encoding: quoted-printable Content-Type: text/plain 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_|TY7PR01MB13744:EE_ X-MS-Office365-Filtering-Correlation-Id: 039ae4f0-f7cb-4cfb-eece-08dd70416c8f 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|52116014|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: HOAvsMmGcc496ux5zWVYXx5Gwh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uyLOfEUZY2bnEhKrAllCok9a5/6vFN2DUHnUljKglTuEn3RZHrJ6fptfECvIvOPQv2dNIcZfVHVzFufLWtjFGI7Mr+KmZJvN/iiP8jzO5/hhuMWNW6uGoYaG5IpoUC9D4WNTA8xCX4WHPvNQXQ8n2/ySiaHBXzDEaAa7PJggaepO24M7TYRgiI3UydE33qmD7mZZmojv11iDpBXISm0hUXanaQBS3V2mGfak42wX2SeI/zQlufAfwwOzikmc1daQonYIrLkZFLCeaXESpNZmip1leSA6qcT+E1tokMtbbOkUMzfscneD+evJ7FjNzE38BcoDkCUyPsng3aIIIuC00AOCX6woD3UhgOVX9fUQS7KzFwTmU 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)(52116014)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: p2EZp1T28NCW8vg3AL2qCq+vj2UgOs3VjrJJMSHHbhay/g4twQGXJGxSxiVi+U5fBruNoqesbfsO8/cTJ8gHJZFlhSafC2u81xwNHrYBr9DLcCwAI9ysfKElaHCJ56HgIyPTKH92zd6oLwWMbxbO4fxTjKb6iIZMkINZp5UAbS5WSso0loqXRTHafKZd4ff0t8tWMYcPOXaXfGQyvyI0kToHc3auxvDY0fAKSER63uCDv2hCNBMA0SzFUKwexUSyBkNagLtdAwCpjg3fCCOjM/W7qgGMLV3yiviQOF78yZu8ans74Vv9XT7i+IucDoza587x0GhiFEYfP0ndB+mxYI9jvOx9v5eUUV1VdFdW/GgJ1zQI2YsRfT7EhRrbmero7H4vLu/zpm2vhO5Xr/DgftZ2w7p+W+rzTSZCjS+wqwEo9xqbKlZfULa8ETIOThnW45gsOsl/oEyrEXQje+HTJPqXCp/kOxSRmS5lipld8QUDQkydERtI3u9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3R1l9rWNQyQoB+i+rF0O84WBAQfM1VYaiufXfgR4ZeM7j3WOAX49uDhTg94alnyidfK9PJS80Rpqo9qU= X-OriginatorOrg: bp.renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 039ae4f0-f7cb-4cfb-eece-08dd70416c8f 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:47:25.6409 (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: t3hEMingC6jxsXM02d+kyos38yFtUjHmnkhAC39bPlR69soaEEcmZmrIWTg6sILw54rAcy82gqDXXDGPCM2MgdsE3brp7AqbmlfrXbRUrGdwYMyBNBvR4fHMTYi+znPS X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY7PR01MB13744 List-Id: <cip-dev.lists.cip-project.org> 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 <cip-dev@lists.cip-project.org>; Mon, 31 Mar 2025 10:47:31 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/18426 |
Series |
Add RZ/G3E pinctrl support
|
expand
|
diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/renesas/pinctrl-rzg2l.c index 36f1a82352fbb..353f9b139413c 100644 --- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c +++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c @@ -2433,21 +2433,6 @@ static int rzg2l_gpio_child_to_parent_hwirq(struct gpio_chip *gc, return ret; } -static int rzg2l_gpio_populate_parent_fwspec(struct gpio_chip *chip, - union gpio_irq_fwspec *gfwspec, - unsigned int parent_hwirq, - unsigned int parent_type) -{ - struct irq_fwspec *fwspec = &gfwspec->fwspec; - - fwspec->fwnode = chip->irq.parent_domain->fwnode; - fwspec->param_count = 2; - fwspec->param[0] = parent_hwirq; - fwspec->param[1] = parent_type; - - return 0; -} - static void rzg2l_gpio_irq_restore(struct rzg2l_pinctrl *pctrl) { struct irq_domain *domain = pctrl->gpio_chip.irq.domain; @@ -2649,7 +2634,7 @@ static int rzg2l_gpio_register(struct rzg2l_pinctrl *pctrl) girq->fwnode = dev_fwnode(pctrl->dev); girq->parent_domain = parent_domain; girq->child_to_parent_hwirq = rzg2l_gpio_child_to_parent_hwirq; - girq->populate_parent_alloc_arg = rzg2l_gpio_populate_parent_fwspec; + girq->populate_parent_alloc_arg = gpiochip_populate_parent_fwspec_twocell; girq->child_irq_domain_ops.free = rzg2l_gpio_irq_domain_free; girq->init_valid_mask = rzg2l_init_irq_valid_mask;