Message ID | 20241218044114.143358-1-carlos.song@nxp.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9F1A0E77183 for <linux-arm-kernel@archiver.kernel.org>; Wed, 18 Dec 2024 04:31:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=t/Gb5r3Xhn0MnIy2mmeGlSoK2grmixxDn80VWAfG32w=; b=vBiqkQA9wArhivoJCDP3ijHCTe TaFsnqA9Ek+VtnrkQxb5lB6pLw3SmTT9lGS3hfjjlmqMVxyX7xdoWFbGDYwhNUWO0GfdvBof0aU0m RO5sGiwX3NICJ1BnZp+P5GiD9Oe39ArR0zBptYtPJgJOn8VJlVR9kmGQPW0sb+S1JdtCTh9YCMAqe k2RxhKFbkOEpHoGukbCfHZbJ8xnEoiQb16Fdc/Tg0ffhBEbemJYIAglWvZF+9Y3sKnDOSiQFGA7aA 7IjhQzLsOmC0ev3288q2F/pdtW8b39b9IWnRVu0g1++Qua0VNsYXOYBeJCplxYO80eu8Uxm/F3qtn k7hhd6PQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tNliU-0000000FYIm-1Z4L; Wed, 18 Dec 2024 04:31:22 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tNlhQ-0000000FYE4-0i8R for linux-arm-kernel@lists.infradead.org; Wed, 18 Dec 2024 04:30:17 +0000 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) 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/SQgZaqwepLmr5ZbxlbawTMMYzyTkUftMUKx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HyBIfnpTn17I8nf5bI/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241217_203016_212093_C8B4DCFF X-CRM114-Status: UNSURE ( 9.07 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
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);