From patchwork Thu Aug 29 09:37:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Song X-Patchwork-Id: 13782860 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010049.outbound.protection.outlook.com [52.101.69.49]) (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 56D6818E04B for ; Thu, 29 Aug 2024 09:28:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724923720; cv=fail; b=U1+PWRQWWXXwsjhMOLnf2mT3eny3JqP2MiKYl6ERmKGbZEp45Wn7uGsCZfBB0pAoXTodLHRZIE7lqd8oZBj6yB6/nQ3Av+nU8CC0rbKlv8xJ/JNELJF3XaxD7dFvGoJXHJ7gXB+0gI/fJn8Tuo/dMu2K+OxT4Sq7r8MomtQvask= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724923720; c=relaxed/simple; bh=aNsQSCpjkcNGUe0WWtFOVtZ50BMvufaZEZkiOT512sk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=AZtw7OTUIQJM9L6okKRV0E3KE/3m0rY2HWmQq+5wj9GFFGFuj2e9Tirnw/v/zSMx24uJXzJ8574+WSvanFgIb93f2wvakfmffDKMRNDwmCK/Oppp0gL/DO8SVbefizlTHqhC8YBeZdOSk5UMlPLdoAZ+huHlnSQTMuMieHJztnc= 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=mwwjreDf; arc=fail smtp.client-ip=52.101.69.49 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="mwwjreDf" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LkcrBlQjw6dJ0+wsXX1VRhCM8hLOMhwH7sz8Nl4jDb+oHMrR++fjK6/TnIgmhh/OiY74yaSgs4C/f2dBbRgUSlEr3jLbC5KekDuPSnR3+0YMVA8gtHNVqD9K3mP6kMHex658YNnjoqaj+1H1kMg+UioEu7oigVbs6TFzAfJh5nhYO70s+Dy5RwWp63nsNL2MUGyqO8fPVpsaUf8kAPgt9HGYbdaDZT8yfqxLpOQi4a5MJfc2mBhqi5tJMr5HSVU6/UNNf+ILB0fKn5DWx6D5HMOXxACkhx0JQuq3b2Z7FzlBzpDCdgYlnZq+Y7rqg6nBrnVd7tLjSWJcJa/CJpXPNg== 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=78uc0SE3UCzL+K6hrEj4vzvmh93AUBeNZeHF8DpY54I=; b=Dho89D/k1gM2hNe37UAU/98V+2N4D6evmsNmMj5iWC5fzzRMool8/zTqOz7KFLL/me3vWwuklnfeSOXMKhHRcrcfwKCGpNBgLVI0JAcYQN/XIyugNGY8RiRQ4RO3o57gB4bjCFlP/qrBj3t5HmHmBZCd+nfoFW+NUcscYLy12gj+/nyXIjP8juDkq50L/6D/+Axg9I04bj/Of3PIwsq7ET2PPi6En+DLVfkaZLAWNV9Rm0SUGZT9BsxsbDcHCKKkgmqNWNnlAsgg25E4wCQDKLE4YgET56IW2QFsD7/xbqS326WI9MDMDUE9oxDeuS4jZuxS5z21ZWQ/v2uVUJPq6w== 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=78uc0SE3UCzL+K6hrEj4vzvmh93AUBeNZeHF8DpY54I=; b=mwwjreDfltfEgb4Jn5Vd7pepyRoPW7be/yxABFzC4tcIDQhb1EtY2uQHGdX8hRQf9T6zEaz2O1wHHmn1451bAadgwXKUdZJpD8J9T29wBPJ0bWNCBid0Hc5fSO9NslqYp5WIb4qhhfYbFf8V7zGDVBV7dfYD9bEpgju0fNJLiu5dNbyYm8fzXVhE9iBBUXCGWDGCUZhOM9gLdWoPmLrR/1OmCwFcv/S8MAxdVFl6Fj/zgHdcYfnKu6nexkLGtU3FNQGQxdOu6R42/aCRxin8KvcyntNVEB8QnvieMUPIsBQXwQUbpYb34GgNBAN3CQs0r8ngNcgDCSdm/AnKRiSpiQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5005.eurprd04.prod.outlook.com (2603:10a6:803:57::30) by AM7PR04MB6902.eurprd04.prod.outlook.com (2603:10a6:20b:107::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.28; Thu, 29 Aug 2024 09:28:31 +0000 Received: from VI1PR04MB5005.eurprd04.prod.outlook.com ([fe80::3a57:67cf:6ee0:5ddb]) by VI1PR04MB5005.eurprd04.prod.outlook.com ([fe80::3a57:67cf:6ee0:5ddb%4]) with mapi id 15.20.7897.021; Thu, 29 Aug 2024 09:28:31 +0000 From: carlos.song@nxp.com To: aisheng.dong@nxp.com, andi.shyti@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@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 Subject: [PATCH 2/5] i2c: imx-lpi2c: add IRQF_NO_SUSPEND IRQ flag Date: Thu, 29 Aug 2024 17:37:19 +0800 Message-Id: <20240829093722.2714921-2-carlos.song@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240829093722.2714921-1-carlos.song@nxp.com> References: <20240829093722.2714921-1-carlos.song@nxp.com> X-ClientProxiedBy: AS4PR10CA0023.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:5d8::15) To VI1PR04MB5005.eurprd04.prod.outlook.com (2603:10a6:803:57::30) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB5005:EE_|AM7PR04MB6902:EE_ X-MS-Office365-Filtering-Correlation-Id: e2ffa59d-4f2f-4112-509a-08dcc80cf20a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: HQHM9MVDu4RKu7HZtLd4+LRhIk8Dv/nud9B6WAuLYzgfyyFU8Noa3ECdkbBPbNuqOdhnFpP361kaYZ4U3eZ+CkHS7YGEINUso4c5O9Cr6OkUC3Mdny8oLaFE1lYxeAd3MHheqUGTnDGy+FFOkvOXwztvO69LtugOGUPbhT2m/EG6xVLnN2oUvOSZiBTGPbiX4GQOeEBxFJJnoRbS2gKC7TTk3DfDP8CJ6fGh9r8pLYNmPWLTW4mlLpG08AE0ISdAKWgQo+HDKA9jF5uFA8fqYav6/2jGrWPx++hcPGF9q/oR0451fWSt+030EBvtsA3lS5lE7rlnG3UQbX/fgaen7daMFEVT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85mA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5005.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(52116014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8sMXO81QC1wNmBc98Fsf6NoPe0MspXRmQDFc7ZNCfv/CJudOHYwnZP5IAlr4M8KD15IoNBBTQczFgmmD8HDD/lEMfpNtrg8R2Gr9yM4NlOnXtKbrZC9YPj5/F7XYirAfYdoqmvZm9IAMqV7gXldSCUtqzjNUN6cIu83QuRCpXKOQSSQ2fuM8urh9T8iKWuGRMcqPNRwnD63q2zE5nCOO6kXTDRLezJFHkxpcy7YTSI6MM1FWl8Gqp0buEDUDuovbMRVCOHfDmr7UBxDU0T50eu72aH74CWYQM48SHamhSD5HPbQuORCFtbmONqlLW9W1BFM4JEalvB0p9sagU7+27qwy55uh+SzGJ+Fw3C6xKBu88wcFkC9l0fobbFj+tVl7Kl5SrOa36JBjZ/78lghMWE3QiLxJNFS61lMdBn8OgbucxI7ma7UJsBUov6BPEEzjIyOVb7d6v4eALaBxGeXv3wcO2MbRENHONBGb1BeHQKExiVuxjj6VP5wplBFkNPJ+t9jPo1U1eIeCSlJlMe2koSZM1XO0nJrpqt3SkQKShgPTi6ojt5xJ2LY4rgcM5Ug2mHL38xSz9Z8GDjp9xZjbIokKA3qamuaDsIOFZssXwFOCUBbUb6YmZ7fIKYxRpNOsvjCCllF/1t8il6jPA+0Mlxt3UGkB/2NIO86/PWQbmQQN3HAudSyrLWV/Zh+44R4oKhqhuSn9HEkFdeyB8U1J6+3AEg0BGTbr1FvFcW8teU832cVYzTZkaf27bqx79S0DA5UoaoV9bof+bMiqgRHMCXAgUdkw9hrdlF83HDHAxM9utJMy4pnOYAu19OgQpKCGytRtg7bpGL3hM91HP1SlJXGFA+XJkuHymJ+280t+SVXA7ij10jT50Ja0ll2OT3Zs4EP4WgrSItJF8bzUJLohAJHaOkQjwhR39fWBjvm6/2JAxakXL3BKvDtx/Kgy0a34bWD09YiVKq7a3obZVnvujFCmqEAlNary8FHty7VVgtNzc0fvFGhQcw4rQEBMB2eP6qsti3SQNJhrNTz4+EYgaZTNX/x8GdEa239McZfGf/JtGgLMBWOgOLPtPDSm6b9zvWONlGeK5Qy9rMLf04aGXn0DSscg9MXNJXXXb2VC/Jd/TKgPEhS/92ikX0hYaQNit9qhgNpDtdkJ/zQvECvT0ANROja/BTcVelQif7hBQ9BYzLydRcXU442lZEFEiO4txDU+cpL5GpGbaZKDK1WuEKlHGJHWVeZsrN7GRL4pItE+o6qjWiYzbN6PddX2xfOX0eMP+6gn+piTzVuIv0DzRqK0UKPTtJ5b2FtnbA1gRO1Ob8DrwMisoVdlsGUGcaLgM9I1n3Dyygwv9tfdTDpQo4Wf+IYUny4asvdFrtV/rbiIF4mg/8ExAabJlELyNt/jk3X48e0adVJ9z7ALoyzgjUfvB2Z1bGxe7gE5jAYOxtrPgZfjRoH9nhRohlDin9ccuWBnZcoRoX7bPUuIpH7Tf7Lo/wcj1iyPHAP57gmTMEClYDQM6CqtzT4bh7KS89Oj4Gn9+SUX+DPAeliXDj1+JOqL3iCyBmY14HJ814VeywrUgCT8OIiq2In+WXYr+eOO X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e2ffa59d-4f2f-4112-509a-08dcc80cf20a X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5005.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2024 09:28:31.2525 (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: F2nb6ZbxvFNGGEPSujK2IFhq+mK53mXCQtgbU7ZzcepBQ+GegVh95VCI8YsmPl7WVPaPs5yC+1XwrskPszSksw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB6902 From: Carlos Song Set IRQF_NO_SUSPEND flag when request_irq(). Some devices such as extend GPIO will need i2c transfer during the entire system suspend and resume period so keep it enabled. Signed-off-by: Carlos Song Signed-off-by: Frank Li --- drivers/i2c/busses/i2c-imx-lpi2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-imx-lpi2c.c b/drivers/i2c/busses/i2c-imx-lpi2c.c index c8f3dadfb36e..23f83f10d5f6 100644 --- a/drivers/i2c/busses/i2c-imx-lpi2c.c +++ b/drivers/i2c/busses/i2c-imx-lpi2c.c @@ -1309,7 +1309,7 @@ static int lpi2c_imx_probe(struct platform_device *pdev) if (ret) lpi2c_imx->bitrate = I2C_MAX_STANDARD_MODE_FREQ; - ret = devm_request_irq(&pdev->dev, irq, lpi2c_imx_isr, 0, + ret = devm_request_irq(&pdev->dev, irq, lpi2c_imx_isr, IRQF_NO_SUSPEND, pdev->name, lpi2c_imx); if (ret) return dev_err_probe(&pdev->dev, ret, "can't claim irq %d\n", irq);