From patchwork Fri Jul 5 13:46:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Marian Costea X-Patchwork-Id: 13725173 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2041.outbound.protection.outlook.com [40.107.104.41]) (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 636B814AD1A for ; Fri, 5 Jul 2024 13:47:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.41 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720187245; cv=fail; b=CVea9YwxfMSqFARlH3yaU8b2tq0/jlbVh5h0c2MqwbwyE4EuwoLAyTgYtvhbSUZh6dhdNfPraJPmWQazl9f1DKsGXUk1Tv3Vie5lG3+m8T9SXviNu4YwVJxqRE5gVmjYONFWIoSGQKX6pSFj1xRrJbPVXY4ID26FQlgj2Nbm4+c= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720187245; c=relaxed/simple; bh=RVkWMjcCMqugx7ZXO4KK1b3IZ6Gy54ufQ1NT3e5grp8=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=mfSKSDjY63+nD510FPwIPbVgKVGOZ9HU5+o3Qd03wCa3/F8+3HRy1cLsnsetJt03CVfl7ggFWua/HSd0u4RxJPj7HM2U5Gxn6G7lewOrEEBvJFlHWxcAtszXBo2XBFXLPuu1FVpqudfvsnSDDzJQxqnC70GBHBYgtJx4qlWl8Q8= 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 (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=aLHBryBh; arc=fail smtp.client-ip=40.107.104.41 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 (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="aLHBryBh" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l+QhUhNqjeXpuqVS2Ah7XozWQLQYxJzRe+wuFM5gGilH4E2bzyWfUKSocxEqODOssIBg7uMZALTPIvFtmaoHfYg0SpGCY5vgXuiOmz8yaryKJcMASSI33k3mtOct4QWM9PFEbyKUs4jtsaIn6BoIiJdK96JzlQwU9p+9yT7QTCK5LoGQ6KNt+Pg105d8eY6frOUjI/JDIjuSolCcV3pEoE8Kj83JZ6y+ltGGUlEGMKdQGrSWwh7jkfxlZA1WHHyVtICxPwdv+uPodDSNVdbVku5BU8PTSetlqBPHeX0NkbKAM7xjv3lpHWcFbhR6IzbmSwwfEm1NE8idDR8IBqZYGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=5aIGSENashp1opWHQNZ/LlzM9Td+liywpUh9IgXwvsw=; b=d5dtnaMBMXx5NwLEtdC8LoVaZoeyzbkwbf2YrN7TxnpciwrOCBmGiXhs22sLGfv69SW7WVyaNoQ9ejx6HsfMF/BollqMj3J8wqbTLtq792gCYPEEMQf3l6u8LIce0c80wa70OtPYdsdJDG4GIAmSUzfyVJK1pl+dG5mC9u8cuEHCz6E8/vaUuclnW7pBNtnh3FcmomBSwiXJJOrRS1YmGzcyyz3dtTQJJjRdPtRreMZAhCIpSNpdmTLpj2gDbBxcmsxDny9CuxEP19BI/FVjdgJ1HBEfr6kr8NguxRzgpXo0ccNxF0EgAmaJP7QfX3Sq2N8f+Qq4ZIgq1ZT2LpTk1A== 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=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5aIGSENashp1opWHQNZ/LlzM9Td+liywpUh9IgXwvsw=; b=aLHBryBhc4XfqxJrNt3cOmSas7jIQCeaa+08kEQ0tTEjO6PpCHSAVDDjS2sr4HYx2TZMhMjQo/XFXDF0QLMqdOiaE34nMkyKQ8fkxMjFm31To77Xye5dWn3G/w2Q3ko+EYsCmj1GxyRH41ZhlzMdK353rggZyWaVcAc9LoA9ra0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) by GV1PR04MB10244.eurprd04.prod.outlook.com (2603:10a6:150:17b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.30; Fri, 5 Jul 2024 13:47:17 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%5]) with mapi id 15.20.7741.027; Fri, 5 Jul 2024 13:47:17 +0000 From: Ciprian Costea To: Haibo Chen , Adrian Hunter , Ulf Hansson , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, s32@nxp.com, Ciprian Costea Subject: [PATCH 0/4] address several S32G2/S32G3 SoC based boards particularities Date: Fri, 5 Jul 2024 16:46:43 +0300 Message-ID: <20240705134647.3524969-1-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 X-ClientProxiedBy: AS4P189CA0039.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5dd::16) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|GV1PR04MB10244:EE_ X-MS-Office365-Filtering-Correlation-Id: aa5ab0f3-d39c-4bef-a934-08dc9cf8fbf8 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|1800799024|366016|7416014|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?138UC+qJOZFfpPEV2oKGCytQPwrJXee?= =?utf-8?q?fPy0RYYToCdvze+wT8GeITpQNZLfbNm0yhLxbUmnzjxvz3H8HspYXViedwWefpmXs?= =?utf-8?q?Gxy8pgZjaY8dbYF+P1wk0bl/I4p8mDyIPV5rm/CHZBBKFwFyAAXYU5kFOA8CorZ+x?= =?utf-8?q?TKCD5OkWwzJzDJrFUmGmb8+TLXXOq5AUn+W2S9mKEOmh9ywcxpCfI3RXlyZ4iaKdL?= =?utf-8?q?rXQYk7LfkOipSDCOIyAflH5OT9ElWirq/r5ceCQfCEDFUOg1qym1VGr0PXnddhuWV?= =?utf-8?q?+IbyuOaSu6ZMRTs4Ym2Fqew7H4MRKTfKMf9h6iJs02CoxQ1lC312y5t+LvmU8e9rW?= =?utf-8?q?zDt+lildBFVAxLHk3WfwJk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c3YYUP/NhHCmG605KKc3zgsEzKdOXN7BvgGcTy5lGZ?= =?utf-8?q?1HJ7n7632KHNQG+KOmuLIXkFEqWSlZKlKxQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9251.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?f3HJPtKwffG1gSEGu7rSjNIz+iPG?= =?utf-8?q?8QWeGjwNOSoAk4+GwgtNqzNcPBlbau1NW7Yu2Yv4SWeWGXe2Q55mt/Jh+6z00L4SH?= =?utf-8?q?JT24Ziz1HyVOVWIz2PPSjDWqWLQZrchL/Eq7bcf+5OhhfsuJup8Yz/A37mCukZXzV?= =?utf-8?q?glZbUodq0WPYKOKbr9CSpmgPJy73GdcYIGvHJFGPjXtXuWTpL1g+x4+OLTQKivOxg?= =?utf-8?q?3FxcOoYdU9i4MtzsFb+ayoK/8Uhag4XWY0cUqN/zhvxlB6P11NXs87Ky2O5RS+6gw?= =?utf-8?q?viNlkobOM6pN8m6ihx1UG2MDHOtOFR0lMDWUUMeNg6DNqqkA4iu6wNnn8GqnA3yDE?= =?utf-8?q?8c25S+rMdhQPHE1VFhKUpvw+x/0oyO54YNtltYNWyQAWufVfPeBB3G2dNfKAbL377?= =?utf-8?q?9S8djsJrHkPYdy8GRwIPjlFpS9vU8JnSLbvg0GGLi/y7MhA7zVeW7r/aAL+HVB/4v?= =?utf-8?q?igSf3dtU3tnZTaeu53vjP/Pr7hHpABsI6l3Yu4p77uDk5eDEW1nVZQ8VLp+PmYmlM?= =?utf-8?q?q1WMF8Lfv6psEeKwFqmAN/VAhQrcDfhHYHkzIuoCyc3rijtVJ/Io9JY7xiBV/1swK?= =?utf-8?q?mrFhGsGU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DsZ8hyTfOnsbYB6I6SqC/BZ1cmiiPfaPIh+P4BmXELwZa2b2ybCIM4XB5HoVdRTjx?= =?utf-8?q?1wrk82+4fsTpUpAJEDJSBfMezlIKUVVtGA=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: aa5ab0f3-d39c-4bef-a934-08dc9cf8fbf8 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2024 13:47:17.6029 (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: 1YauBBskMl8ydTqJjgxR4gJRA08rzzUhwZnxdo5xjoSraZRhRgDqsDIvt6cPpOGAHLAe5kLCN6aQ7g4gngrkDCQBSfmUP8YFyZt5xtOc6b0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10244 This patchset addresses several S32G2/S32G3 SoC based boards uSDHC controller particularities such as: - GPIO card detect wake mechanism is not available - Changing the pinctrl state in suspend routine is not supported It also fixes a clocking usage issue on 'clk_get_rate', in case of 'per' clock. Ciprian Costea (4): mmc: sdhci-esdhc-imx: disable card detect wake for S32G based platforms mmc: sdhci-esdhc-imx: obtain the 'per' clock rate after its enablement mmc: sdhci-esdhc-imx: add option to not change pinctrl state in suspend MAINTAINERS: add 's32@nxp.com' as relevant mailing list for 'sdhci-esdhc-imx' driver MAINTAINERS | 1 + drivers/mmc/host/sdhci-esdhc-imx.c | 28 ++++++++++++++++++++++------ 2 files changed, 23 insertions(+), 6 deletions(-)