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: 13782891 Return-Path: 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 6A759C83026 for ; Thu, 29 Aug 2024 09:39:38 +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:References:In-Reply-To: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:List-Owner; bh=78uc0SE3UCzL+K6hrEj4vzvmh93AUBeNZeHF8DpY54I=; b=bcmpWUz0dCVe0ZrGS95KKkPKDP tA5gLPBWUM/bcXppEEef19r1Pm/L3PBDxWx5fuPngfNs9qoQ+0cXklcQh4vGsimqwxUW5AcWGpFou 4pndQ3ojscv0VwUTE1vlYRIhydu41XpwavNCtn25nxMfFwzUbAF2X/c/wjq3ETMk645Lu4oCujWJ0 5cZFUjuWlky1sQZKQMzR+AKigPlirFIGP2fht4+ptfNBdcIq/BXB4yzP9VQ6JuEsL66x2qNxtRnam tAkgMVOB5xT5Bo5A7DzEzOfgA3F40CeDWjLBSud0TCsDUEFaLQhW2JNHRn3jav1YlPW2gKr8/q0Xg Q8NhBn2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjbca-00000001Oix-39NW; Thu, 29 Aug 2024 09:39:16 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjbSI-00000001MOz-1ww2 for linux-arm-kernel@lists.infradead.org; Thu, 29 Aug 2024 09:28:39 +0000 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) 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240829_022838_532454_6B5E2CAC X-CRM114-Status: GOOD ( 12.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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);