Message ID | 20241218044114.143358-1-carlos.song@nxp.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011018.outbound.protection.outlook.com [52.101.65.18]) (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 71B6A3596E for <imx@lists.linux.dev>; Wed, 18 Dec 2024 04:30:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.18 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734496217; cv=fail; b=pUmbG6ptp9ubpdEd0kWUHbNIW8mvCuHijQi2UNTxxMFwnxPPcHdkAYTG4bABgynwnfByFcTkClYnvHniSCQvrIAHL8jNgtL31n/86aA7V8icsDHlVGpPrZQBQ7BdcC/MTGF3EsOkuC19Ra/YH/vopCoiTL8ZA3U6qOVEIuNqNw4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734496217; c=relaxed/simple; bh=d7zCXgYZlWdOjmaMAK6UDPHWnsKgDXT2IP7jCn37OJo=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=cFGAwT4FTD0J3csotg35jiiSzKCWQQl2glI3hzw7+ZiU7VNxrOk5MudfHeCpEH9rMvE6uvhhSww7gFMqiQtqbG+qyMEquFXhO5ETmEDtbToldP7UxTpiDT69y43VShJdqNA1tfQSNjeEfhfTbArlEef1h2oBY3Uikm2FlNA+Vtk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=A8sF1cMT; arc=fail smtp.client-ip=52.101.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="A8sF1cMT" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=evs37vHlgd21EWo+ykEhEB6SMxWtBi1i1mr2VOlfGD6ivpCbsjaIXNMhSWfpARBykpuGFPE0+UQ6FPvzfggeGJpz2iaXQ508A5pJUWi74N3T2Xa8slg1seQa6eWy0Et5ZRUOqh4UgptJ1trFZ2GZsbYB126wwjaHLu21sz/a7MXXsp5zMTIOJGWkROomMmN5hZoJcunp3vOTl9HKyo5fFW56L9pDrl+3HOeF0L0nbdwkFum0atEcP3KrUxLI2JUhP6aKz+KWlzrGra/dyLXvRCGYiH2h74x2r2weqnzBA0O9SRzomgkzfxOp+ux6580FfAa05KQjUx1hk9sCj7054A== 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=t/Gb5r3Xhn0MnIy2mmeGlSoK2grmixxDn80VWAfG32w=; b=LYz+8yLXp9qxZX826x6Nv4WDRL6D+243b+4qC+SFZy8N7WhOIoXieSVE5JbCeHSggp7nR88ShVD/ZduEreuIxE8nrZYAErJn2UaUv0Y+AF7Vt+a2i6GsUSuRtF3asAzqsMb+txqi3+HhkSEfUcGtnrLLPziUM8YlZ7Wuy6A4Z4Yg9t/0sqHzIH32gyxhl/SGmMGGEmLSPDCxgHD9gJUw5SMwmogJc9udyoAuUs0b5mSzDaY2MpC+UPwyLN7bQEqaPWIl22cirEHNM66Pkc8HHi9VjKVkuK3Cfbv4YkYl8Lj7iFFfc28CazR/uiR9qSAGvgBPrmv1hvhxQSRvym4CXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t/Gb5r3Xhn0MnIy2mmeGlSoK2grmixxDn80VWAfG32w=; b=A8sF1cMTaOYGmL4qjqBoitvqTI7iO3l2uLUjHZY42wQrG3CyTLbc76L2oNqYRxBXR9gy6X3CQcTXt1bLW+Du40kEYjiVzfHFLFmCo4UDYvCHurAV9XgGLCRrPGuzLdb0H+7OxBWhzrAwKmu9+f4ZV7zpbuimuq/AKcWG753x5nadKOWcAhrwWjOwfSQVvAWGhbd63LUFstky23fnjua5gbQ4E5UZUZtvAVcpHI/Hvu+2bSd0D7USqBXpBrWCqxLWsfAUahyPVOIjZFrxWC+K0LjuyFj2P0uUSnywMhJEakrmBsZEXMj3/B76CXGxWuad1lWv331CaI1WxbbJPPlgzA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR0402MB3937.eurprd04.prod.outlook.com (2603:10a6:208:5::22) by AM9PR04MB8873.eurprd04.prod.outlook.com (2603:10a6:20b:408::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Wed, 18 Dec 2024 04:30:13 +0000 Received: from AM0PR0402MB3937.eurprd04.prod.outlook.com ([fe80::4e37:f56b:8a3e:bff0]) by AM0PR0402MB3937.eurprd04.prod.outlook.com ([fe80::4e37:f56b:8a3e:bff0%5]) with mapi id 15.20.8251.015; Wed, 18 Dec 2024 04:30:13 +0000 From: Carlos Song <carlos.song@nxp.com> To: andi.shyti@kernel.org, frank.li@nxp.com, o.rempel@pengutronix.de, kernel@pengutronix.de, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com Cc: linux-i2c@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Carlos Song <carlos.song@nxp.com>, Frank Li <Frank.Li@nxp.com> Subject: [PATCH v2] i2c: imx: switch different pinctrl state in different system power status Date: Wed, 18 Dec 2024 12:41:14 +0800 Message-Id: <20241218044114.143358-1-carlos.song@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AM0PR10CA0062.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:15::15) To AM0PR0402MB3937.eurprd04.prod.outlook.com (2603:10a6:208:5::22) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: <imx.lists.linux.dev> List-Subscribe: <mailto:imx+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:imx+unsubscribe@lists.linux.dev> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR0402MB3937:EE_|AM9PR04MB8873:EE_ X-MS-Office365-Filtering-Correlation-Id: 841016b3-4c55-40fc-234d-08dd1f1ca9d1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: vmEJlv5ILRxPU1iqrzUxCxLwezLclLxQkSbI/cwBjHgLqiArsTBmJJ8Ul5D0Ctorp1NDYZV6hpWDHbYTVS/XJv61lP2KT1nIZssoeJHr4ouHLnaj0d8G8DV/XvT1XRE9IPO3URqrU4LdCDAbOJ6Zs9zRLaMwmg1XMcZeA2hFP1mdL48YiPTUxkYQSg38+m9R200mWV8k5NNaFXw5Q4uMgoQb6QgDjA2zpciVMl9/mw7t2uOn2F+B+FNX/39DKI85AXPrkzGW1VPhwkbsiEyz+GxkAL3kEhx/SQgZaqwepLmr5ZbxlbawTMMYzyTkUftMUKxOvHH18QbHuCdGx890MzJo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EQomgDVBoPCImCwSIieetnYoENkZUfRhzi3Xi60x X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR0402MB3937.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(52116014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zCyCRL6rCazZ4wcOj+tG0J1jFuYF5m2aHPSW2/VQbxmsvbV4txg3b3oAppniwnV4g5Ir8MUKyZh5Z5+ZhI1j6RKEbCVPOUD00Kr0k1M3KCqxwhia1exJrOIwb3YNbqaTe3GJtxVDMLZoWqqB0at/xZ4JGZxLx8nVxzcE2LV1oV+1XUK6mLeCvlvJCuCug5lVyB1IxbpIgXeqhXuEvLGjwdWxijQBKqyYboUXNkgR4G2DR/T6VjMACuAnH2JTMvGSDgp6uaR6Fu/P3Y4Z5S2GwgerlFnGsHYnrwbVIG/Q4ofZAKZsHFgWTVDq+nuVh8fGSb/WqCTL0VO5DMWnERyWwhn7cw5MJ+kMVJYnRxIfkoYgfgqHEFUXYXzlL9x1pcflFALbKRtBzMBbh7tnPbrusJihbtDd7l1316a9rEsqzASJyP73zBVuad9Vlcphr3vwk3NNWkxJs3mz+iYzCAAB3GqMp+caHFcGZYHUkj+XL2Ft44pXs26ba655mV+VLzzLMnkFVM/FsDpSqEmQ5FJHVPEthHl0nNpokhq6CebzwuJ2MkjAnUl99iAdgEKwPmJ7TCNKbB+k3o4wJY0eLSxCkEwEh2rhcArBR5B0kevADUQSug+h8gdUosZJmME4iy1I35AqfTlQZE+nR/REf7TbvyhyQ6UhRyKlsjCdMpiHZSIkOXONU57uhTURpNpdeb/e+4D5RvXQVwMLJFvAZMxH/XNwey9jN2rxdjn7hc/poUUikBaTWLGK1fzv+cbw8k55BTxLrKmdU2Vz692a0v42KmYY9YGoRkx3VgD4LouDJtzSfCrbdmz93bszFDPe/Odpby2VDbYnwtpD9/D580dcwG0N0v40o/gHoyrNtzg29oImMhSvoqXEjMYOzgsTzZ1XdgMgAOz/jBBsQwKttLLaf1FMVKe5lJjwiFVIvyjViJ7FzmevifqtHcH9lteeXPKPefWFJsPNjzVb3a0Hv1ADAFZOlEA/NZj1hpZd5aUPYFb2TgCf2to594GZEGfN/NIyAkru/bUmcgg79OrofIySw+VFlOmLy3xEFiJr8X9rFmLMN9xpDlC2shU5jciLPjpUUR3eLqdzrqbXRuHvF2sYigAUCzLE651vzflT/maAVOeA+bsws4J4O+d7gkLrQqD6kgjaOgtiwEf4peeZbJ6XBslh2O+DNvUIob3V51x0o+Tcm6eLrKjk83UtQo07knMvgW/84pVQWvUz/+90WkRYVMrvQ+VWhZWoSIxL1M64XK51IzhX/g8KHOIxeg2ZWnpRVt+8Frk2RVIw0VxpsHSRGhkaOaupeHPDZoDMJ996hGFqM6yvVhOpnScP/hFZo1j8cHZT3Fr8yf3x685bdchSRDi+5DyBVtbWY/CUeP0reu5zdX2rMERiZ0Du58q3UP3X2pXzZXykbb2rsgragFgqsJk+NoOOOBmo3WGSOGwXtSHc4+8UT4IwN6IWkxJgwbdA2mcbqRSKSB3X0DCMUgbNyp2kO1GN0m1odcfsgPcOgd/QyNADm5Wk2kAvB/rcH8icVq/YGFZ/Z4DYzWR4rRQ6jtsxAEFcfTCY3sbpRxSN4Pim4JgRkJFYIWg+Pc9cD4at X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 841016b3-4c55-40fc-234d-08dd1f1ca9d1 X-MS-Exchange-CrossTenant-AuthSource: AM0PR0402MB3937.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2024 04:30:13.0496 (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: tWqoRzWAWQ05XLQkW6HLyHQCa9ka+lyfJQr3ZPycHh9bVmwFoM5XW7ojH1ObQoTtuvUoQH2hKB7vqKbSd5vrsQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8873 |
Series |
[v2] i2c: imx: switch different pinctrl state in different system power status
|
expand
|
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index b6ed270dd04b..350346a7892c 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c @@ -1871,6 +1871,7 @@ static int i2c_imx_runtime_suspend(struct device *dev) struct imx_i2c_struct *i2c_imx = dev_get_drvdata(dev); clk_disable(i2c_imx->clk); + pinctrl_pm_select_sleep_state(dev); return 0; } @@ -1880,6 +1881,7 @@ static int i2c_imx_runtime_resume(struct device *dev) struct imx_i2c_struct *i2c_imx = dev_get_drvdata(dev); int ret; + pinctrl_pm_select_default_state(dev); ret = clk_enable(i2c_imx->clk); if (ret) dev_err(dev, "can't enable I2C clock, ret=%d\n", ret);