Message ID | 20241101080614.1070819-6-andrei.stefanescu@oss.nxp.com |
---|---|
State | New |
Headers | show
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2058.outbound.protection.outlook.com [40.107.21.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F363158875; Fri, 1 Nov 2024 08:07:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.58 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730448423; cv=fail; b=qduu1m/xMnEA1SqaJRZq8zOhhNvsRNrswmkPeTv4rKrW2SPViGVwM3VHiVAkWF0uAmFxjuBD6i8MmixUUQy5SR9qOKramio7+4dssYTXkTtDYL4fRPdL2qZnPWD/BYNKzNkLuS+hyO+zG9XWYduS+t5I3sEhhb9kDV9eJyYR260= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730448423; c=relaxed/simple; bh=Y8v2qSxLRcVjWKOqko4N7snR8jF1lvjDb8qpfKwM2rw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=GRy4nOrWs3s6rX9kn1+YbIP2fhxb4VjvWz/HLn55ZqSxtBzU+EHdcSCHPqHK9+fJIBlVVrigIWs/KWtOXMqOFqHurYZyqfbD8MpoCo+RwUpZSXSZtO6YIhu9FsrIsxEUobisGN3PoMlma+1Ft3R6PNLhkFQ5c9f0Eo1SgVZ9T4U= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=lD0yztAG; arc=fail smtp.client-ip=40.107.21.58 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="lD0yztAG" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=m2zoXNn80vAT800piHASUrQw74Gs9RTU8k+wjMq+cRSU7xIiNgZbj2pEVH9B+7oROCwEvZsTShu9BExjh4mns4TXIXlmNMytdeSDGLj61CZ9tAhjGfNe4s5QPK7Tx+XqWiTRZV6pcbavmFZSUjUUwDmskbno8orP7CmlrxkP9StJtxvE6tpYJxORViEqgNyQo6ZvgRDv2HYygC9aVSOIAn+kpoukUUhfIQsK7teF6+glS/rhHGjVYQ/6qPOxCaz7vSrCwl4GaDkWpOP8vCGmN42brEd0BhEKtym5WQsPB9qwBlGMUdOBNh8Y40Mmg3tbNaVuZXheE3Sk/OA5XbUSqQ== 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=Y2x4oreJCHyyFSO0uw/LvkqDdzdsc3tU2z0JM65GZP8=; b=GO6Z/fpiInoDs8oUw8X7RojeaoE5STnfNv/4UWgoZ0CVwk64fSDjUujeYej1CUnW5+JBpZFsMeYFJkwtl6hiYACUI/XlTzjvWhaT/U5KFvh8P6nGG/b3nIjpJPrBHk87zPA1Tt/DNWn6UHoP/Ew04oG05NB13/vMHN3YWgLOxmM9LunDiv8X6mrwzxzCHTrjQGRGslw5kIlPwT2X3pZmUZo1wL6ln7717Ik8vFflII6JIn6NdlLMfaNz9qEjTzmqm6uxD924NjNHSzNM6+yAu0/4dGh8u8FLct0FVIzF0z8T654Ts3iITNNFiQRNyZnbuJ0cA3LWJ5Q4RoRH9s4ncg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y2x4oreJCHyyFSO0uw/LvkqDdzdsc3tU2z0JM65GZP8=; b=lD0yztAGZR9oiUnoatQ1xeByXu1PRTTl3fZi2xuyICk76ceUuf2cDz/rl176/bv8PIwPQzfTjmX74we+QGsiuoICVXmDv8b1rsG6fKRjDEwmJMZOk9fIGkP+lSihyBEXYkmL7ZJkZUgFU6qIPxDRqdX5r4FGZm7MsJh2zi5wOyAcoiV/y4bn1B2NX0+IFMttxTyUpltGE6XmntLqU5rTPH9csOwTMpn/rcQLao205Y/G6wPwU6ZZaOlYajlAFcHLvrqmXalpsWC4lE4O4UjLr18QT6HiJsY5k7+B6DDdkRN+4PJ7lVhlE0PDCzf2brJ6b0/PNYgJTCPuLQrzCbaBSw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM9PR04MB8487.eurprd04.prod.outlook.com (2603:10a6:20b:41a::6) by AM8PR04MB8034.eurprd04.prod.outlook.com (2603:10a6:20b:249::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.20; Fri, 1 Nov 2024 08:06:53 +0000 Received: from AM9PR04MB8487.eurprd04.prod.outlook.com ([fe80::6d7a:8d2:f020:455]) by AM9PR04MB8487.eurprd04.prod.outlook.com ([fe80::6d7a:8d2:f020:455%5]) with mapi id 15.20.8114.015; Fri, 1 Nov 2024 08:06:53 +0000 From: Andrei Stefanescu <andrei.stefanescu@oss.nxp.com> To: Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <brgl@bgdev.pl>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Chester Lin <chester62515@gmail.com>, Matthias Brugger <mbrugger@suse.com>, Ghennadi Procopciuc <Ghennadi.Procopciuc@nxp.com>, Larisa Grigore <larisa.grigore@nxp.com>, Andrei Stefanescu <andrei.stefanescu@oss.nxp.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Lee Jones <lee@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, Dong Aisheng <aisheng.dong@nxp.com>, Jacky Bai <ping.bai@nxp.com> Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP S32 Linux Team <s32@nxp.com>, Christophe Lizzi <clizzi@redhat.com>, Alberto Ruiz <aruizrui@redhat.com>, Enric Balletbo <eballetb@redhat.com>, Pengutronix Kernel Team <kernel@pengutronix.de>, imx@lists.linux.dev Subject: [PATCH v5 5/7] pinctrl: s32cc: change to "devm_pinctrl_register_and_init" Date: Fri, 1 Nov 2024 10:06:11 +0200 Message-ID: <20241101080614.1070819-6-andrei.stefanescu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241101080614.1070819-1-andrei.stefanescu@oss.nxp.com> References: <20241101080614.1070819-1-andrei.stefanescu@oss.nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: AM0PR10CA0115.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:e6::32) To AM9PR04MB8487.eurprd04.prod.outlook.com (2603:10a6:20b:41a::6) Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: <linux-gpio.vger.kernel.org> List-Subscribe: <mailto:linux-gpio+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-gpio+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB8487:EE_|AM8PR04MB8034:EE_ X-MS-Office365-Filtering-Correlation-Id: 273a5bb3-24db-4b24-323b-08dcfa4c2568 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|7416014|376014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?M9+tHnqOoitWpfavUfl7aafuUQP/YZc?= =?utf-8?q?w2WF1LrI43Jm00Y4mZwFa1eRvrW8cVIl08dKlp9GNzNU0Y1taf7JfpMcloaFmGphL?= =?utf-8?q?CRjIsc5W6F5qBKfHGjKu7qxzlRA57NwVhrIhjTptiFI+LocdEbVNAnp/inu/69hPi?= =?utf-8?q?TVAIWkl5jHB3nyBrerdBMFZ73LMFxoO/ciIGPt1tiTQ36t0d+hMUHIgyzA4wtyzfh?= =?utf-8?q?qZ9a5ZUqGSBhx7QftIR5LT8/PHjpLKQZxGI4ocNMbQm7gzW+W9OB6mLd2KHdZfw3y?= =?utf-8?q?v29a+75SQ1auCT2oUl2s388Qu9qGRcE72ImLppsaZG6PS37tm99AOudoMkvui/Mau?= =?utf-8?q?pJrZ7lekrS4nD0UpyotoR20L7ncrhvpv2Rr1PEKG7sFQ9fFLCfvzG8H4zgmkaut8c?= =?utf-8?q?eBTcyn7OW9HzMhnmANQig1EVPr6IfS39H5/RVtFNJ9NJLknOPIRUNkkVGUqs7gBzA?= =?utf-8?q?zfyNY5saRwXErI7rJpglPeLOepbw0ypV37rXFRBU6J57BWFxyjSiCDAQwcCbw/rNj?= =?utf-8?q?cCtIgP7nGIAsZGF69A5JwTpztEh/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od.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(366016)(7416014)(376014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?RtoUjg8yHnCf8hb/Xjt6OQeXsoiZ?= =?utf-8?q?GvRwIzO2VlT2WjccfZtvORPTLO1r4K4NjV0Mw9OZxZZpgY9N6+oxB6YUf836Ttlp/?= =?utf-8?q?68gd/JkhH6F1VLOb6ZMrZ07Ls9Dy6QAgm6ELhKqP11KssW2bwW3DmP184Btj8s/NQ?= =?utf-8?q?p8uqKMHTePY3EWrxUTFDhu+cQCDkoRev/Q23TZoYEkot17MvXEtmmhReEDj9+4Znu?= =?utf-8?q?0SPWkcnsCJ6S1C3vfw0iHbpsPK/2NC8wj09lc6bMyZ3EkEAKEThpPI0SrvVTVRWmp?= =?utf-8?q?WTFNDLlAlEl6sijZMXDzhRpLKh3bwZye+3Ibg2/PfhVtTCKEmQpOOrQ8/Wxl+opVm?= =?utf-8?q?ja9fAjPDZVKqAVyNbSB0MiLMstaSnCY2d0tWfExDBFZDUw+RnL9GLsR92iauo8BBL?= =?utf-8?q?YXS/cKtia4HvuB/M/FyTbnh99YncV/fql3OEGZkickc9qFkor+jlN2Q3vX/bsqqkc?= =?utf-8?q?ti9jmLU4IsYohHNhJWeNraIRhyIjz9NtFFnHpAhZbu5YNkh9N+iApeHAiet5mZhAR?= =?utf-8?q?Noil5k7KV5OoXPOwfexrSBePRAKh0xkLrp2dl2pfP6ZS9a72MFRTgU/5Rcb9+JpFO?= =?utf-8?q?GcWIxzqKke8NqUrqYccFICoJsk+rJcPDFPTAMQCbkynV8hqf9zOmwCtnV+hRl/t2P?= =?utf-8?q?sBpMfEPo1VYrCEedxF+Vgt/UwS2M1FKm55CWockYAmR9CUlsoWLmt5FKCbspo0U/M?= =?utf-8?q?R6cKqltHwmXKmWYcxTqGM7/E1snT5b8SnJKmndD/aGJAumg0wF03sOHuImwRozI8x?= =?utf-8?q?GAous24QlBGFJfMMO8jXYZ6UnGNNnBBzCMXo4Gl0lF/D43/REja9xIg3y+0pvM1Jn?= =?utf-8?q?3SUdv0DdACqmU6i7a30ZTBf8gsUGcyzElA9Jbez/ewlC3l1S94LuUpVI74FiqA+MC?= =?utf-8?q?TIsj1vdghjTBMgDmDXfzPdJhAJyEbYTZoY/lLrdGIWGMk1XUwxlfX5nlbggGV61Po?= =?utf-8?q?iIGMUZdpWgH51s8mSdv5+7SD8VaM4uh63XbVLSskbF573kwhEjXmr1VrXTr/WKixd?= =?utf-8?q?kmx7HnGyfjyoqZEQ2p3W8dpQKWf+cmBek8zIhDiAJjtfvTXyGedDs6HdJ/aMk7Uhl?= =?utf-8?q?RPsuz1VojTwrPmZVivHvwaYnd5JnPkhjwkb7xvx3Wmken5mj7b2P2rp4sCupZVdiT?= =?utf-8?q?d5imLOnz53ktZZWkxgQLucus1SOgwjf7gBoaYgY027/dXFfS70TSe1yGx93cwTHOS?= =?utf-8?q?sheE3wS/9gAYAr3nNbKfT6f4hBCk/I7A7rWWmqzePjKQsfqLfIi/vA3tmYbGXDg4A?= =?utf-8?q?+GfNNqV4LuwvSF2/mPgpRwL6+Je+K8zbkvYL3vH4e7BW0EvAJA4DXDv0dkGyHPE0o?= =?utf-8?q?T71LOIEuD/d5nUx3qbgEQMitkty/W7piKDTcCSVQWC8XcyixO4fzp/tklhk+m1RU9?= =?utf-8?q?9sfdOU+k+zZRySoiqKLvRHXLHiYs/PHSDafs8XL/eYX+zA7W4AYuypQgJuUO6QsgX?= =?utf-8?q?RZ0DQcxB5z/q0acfaR8S9DJGfI6xohwR1SzTd0UelT9HdakbTZdZIKOj5xNkb6B6S?= =?utf-8?q?VkoWZXJbxmOEh+wshjtAobwqfC8Ebk5zHQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 273a5bb3-24db-4b24-323b-08dcfa4c2568 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8487.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2024 08:06:53.3636 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yRbXOh2CDaBY2JvHmc/BlOkrYdv2DLifEorg5G088liaaXX2iuR1Bblz6TReUGFLaT4s22uZtInHcI6X8r2kFYTTzwUVftg0DdM7ncu1+F0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB8034 |
Series |
gpio: siul2-s32g2: add initial GPIO driver
|
expand
|
On Fri, Nov 1, 2024 at 9:06 AM Andrei Stefanescu <andrei.stefanescu@oss.nxp.com> wrote: > Switch from "devm_pinctrl_register" to "devm_pinctrl_register_and_init" > and "pinctrl_enable" since this is the recommended way. > > Signed-off-by: Andrei Stefanescu <andrei.stefanescu@oss.nxp.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> I assume this needs to go in with the rest of the patches. Yours, Linus Walleij
diff --git a/drivers/pinctrl/nxp/pinctrl-s32cc.c b/drivers/pinctrl/nxp/pinctrl-s32cc.c index 709e823b9c7c..10bff48852b9 100644 --- a/drivers/pinctrl/nxp/pinctrl-s32cc.c +++ b/drivers/pinctrl/nxp/pinctrl-s32cc.c @@ -950,10 +950,10 @@ int s32_pinctrl_probe(struct platform_device *pdev, return ret; } - ipctl->pctl = devm_pinctrl_register(&pdev->dev, s32_pinctrl_desc, - ipctl); - if (IS_ERR(ipctl->pctl)) - return dev_err_probe(&pdev->dev, PTR_ERR(ipctl->pctl), + ret = devm_pinctrl_register_and_init(&pdev->dev, s32_pinctrl_desc, + ipctl, &ipctl->pctl); + if (ret) + return dev_err_probe(&pdev->dev, ret, "could not register s32 pinctrl driver\n"); #ifdef CONFIG_PM_SLEEP @@ -966,6 +966,11 @@ int s32_pinctrl_probe(struct platform_device *pdev, return -ENOMEM; #endif + ret = pinctrl_enable(ipctl->pctl); + if (ret) + return dev_err_probe(&pdev->dev, ret, + "failed to enable pinctrl\n"); + dev_info(&pdev->dev, "initialized s32 pinctrl driver\n"); return 0;
Switch from "devm_pinctrl_register" to "devm_pinctrl_register_and_init" and "pinctrl_enable" since this is the recommended way. Signed-off-by: Andrei Stefanescu <andrei.stefanescu@oss.nxp.com> --- drivers/pinctrl/nxp/pinctrl-s32cc.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)