From nobody Sat Nov 23 20:51:01 2024 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2087.outbound.protection.outlook.com [40.107.20.87]) (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 983A71714C8 for ; Mon, 11 Nov 2024 09:21:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.87 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731316916; cv=fail; b=PIamQKdA4Ame9iZ6w4/XHloQ5zSwGOaSJdxHIn7ftrwvbyqckdRpDT1taTic6C3K4QFP1mFmDy+WDhGDZ2YfU24SuqSnwt5tBbUqiiA3eOj09V1sDGIlSY7nJccFIm8ZAg9Up6dMBpLWGsrh0iB5jQy+nwj1nd7PuDObh3FOF9g= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731316916; c=relaxed/simple; bh=0MvO+DxiOw55ntJXzh843IqkExT66CWCZd+p4/T0jaw=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=qulT7SuiV14K9nKeACqlJdlsvvy6X1lakYppK/nDsxd3WvQpEDYtC1FUuS8rMLF9cvgpKmmW7lZe9bE/65YVN3N4DYinJz66gPQxMezh1nlg71C970nn0hZi2YROoichLGZfUfGT7hly2avdeEtmb/dKS4WdZgFhIyzj2WsL6vY= 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 (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=sMBrmZSh; arc=fail smtp.client-ip=40.107.20.87 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 (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="sMBrmZSh" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ryieIdTgvbZpDLbEXLJAI23ifwHD3HmG43yF5U2JmOwLPXTyNegnu9DuqVTx/neRKaGANaz4bo+pWfHh5irxMo9Vkc3ak4I1LCC5ejW/X3Tcm4dJYEAJJzgBZYnKPvd+hzY2G5hHvnaJtvTw3aP2tzlwhO6OPY4d9mEAba2qqv3fO51M9eyeJyR4SKGbd0+jr6nurG5+6JaJxqqSDp/8mZPq/LeW+2VgLaHPgqVPoRtMA7+ctFzltwckvtbK11hEBb1t5IfKZGxG07m1cdtZYoaFCJrb4BcIGwy0xNBlFuZD5+fMA32bprb1e2abmBfj0C67sXb/HvAQa2OnmGSIfA== 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=26mzx8U72ym7DAYKm9XN3PLZy2VIPyDm81eWtIdgZdM=; b=nSysl4aAGDmqWd1FCqjrGZ35h8ogVQcuHspEz5UZTPw1W85OLrwX1xS2j6DXFeE/dO0ggUuBiJHhWSL9YZTwCxREMM1CNwOdi9eX91tpTQWHzVVwRpHocf4zXtWJ2CPTmeOU9n4LWals2ODaohhnlLjZ6ps4h+BnSdjoerqBjicQrxOoD9GJZo7Vimrw6ZG3M7u/wKLBaPNph+EfJyoB8Eqtb479CIaTaoLNtA8AlppXp/D3ajdlT3m776aDQ4u0rAUIMqszyruuaFz80T57Tt/Us6XCBAfvQQaYP4h0dZwbYGa6GqldQ8dGbtlBlrJUw8re8b/omGChvifnJO5dLA== 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=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=26mzx8U72ym7DAYKm9XN3PLZy2VIPyDm81eWtIdgZdM=; b=sMBrmZShr3BmsEO3lstL2KdarKhTxek1SaIKfdFsX+3Bg1tasoYr0MHndEPJyWLEJdPCG0SkbkLIpMXV5pFEEd8Bh/Bpp3IKnHjugEG1E/4hcWWicVHAfsa6epMdmJYL0yAZ/P1trKHtQ2KBtOvQfpZHCv7oVDeIimIwKnriKuLRTDdQeE/HLXtJKld0Ex8GyD9X8dB66z5YpIBCn7Z0Urc2n3EpkPxcMX6buTk4yFW+5VuxiQgktVrdaFxnF1eIwWGapZ7tgMmhxHvoNDow3fSICVSQHOM/w9GMkiXx7xmmAyp/4Jo/j05xkoejHFiqhqzlrqnOHAUXveNHbmqLJA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by PAWPR04MB10032.eurprd04.prod.outlook.com (2603:10a6:102:38d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.30; Mon, 11 Nov 2024 09:21:49 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%6]) with mapi id 15.20.8137.027; Mon, 11 Nov 2024 09:21:49 +0000 From: "Peng Fan (OSS)" To: Greg Kroah-Hartman , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org (open list) Cc: Peng Fan , Dmitry Torokhov , Rob Herring , Ulf Hansson Subject: [PATCH] drivers: core: clear wake irq in device_unbind_cleanup Date: Mon, 11 Nov 2024 17:21:30 +0800 Message-Id: <20241111092131.1693319-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SI2PR01CA0015.apcprd01.prod.exchangelabs.com (2603:1096:4:191::15) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|PAWPR04MB10032:EE_ X-MS-Office365-Filtering-Correlation-Id: eab249c2-03d7-44e7-99ec-08dd023244cd 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|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?glDsLXavZkP/fWGavNMbQsocRRDBaFUTF+C1msK7yhP6SFmVTietqwvLV9qX?= =?us-ascii?Q?jAgK5z01coTLAjmQ6C1BtrHY9CzW7RKXQIcnmQqZH0EHH3QR2zKE6LKgrEMp?= =?us-ascii?Q?9+9F4PnpI5SUtCUIYz9jW1++NHQJG5RE7LmCsY4LbLx+1gMEBOxjcxOcBp4F?= =?us-ascii?Q?VeX3KDs5cdeP+8ikJO5Kb2rp/7Gy+/868i0LRJEdMXjvM9GjW1MIrlBpf8Ru?= =?us-ascii?Q?iWbiOFTV81uzbTxh7FTBFd1Htgx9aKOcgDJRw0ftFLKVnpssVzh77BNRYgxE?= =?us-ascii?Q?uUs74ZRJBfWjk52ASyOSvSBaVa6DZUBCz+odfNviEKtIpgCSQMS/SyGawhAe?= =?us-ascii?Q?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EJK/NLndFfqC+n0Z28KkkOyK?= =?us-ascii?Q?mFPg99TZUl8RKzcNNjUgnn9R1KYHAwCAMWN/lQx8Db7vOj3W72X7mbi30/kI?= =?us-ascii?Q?T9CMCQEI52BH0I31Dr+2yUsuvO5wOSNXeBgKUG5XEefGUGLPC1+cDzkka8el?= =?us-ascii?Q?c28PyK8=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?iBBDCWG/xBTCcz8CWYG3gppUqvx7Q9emx9qfY01H7LAp8RxqQuvgy16DsxvU?= =?us-ascii?Q?rifgdtsSDoTQ1h3Ztga5hXz4I5e0BqxSBV3cyENRmU19DAO5b7K/G9xuTEdo?= =?us-ascii?Q?h/mV1J7e++vHLwX0FfssbGtwfoXUI8L9sqpvGZ6/vCZL8iDTW5YQVFBa/IE2?= =?us-ascii?Q?q5KuMk2KZmOwVlo/zGwZdibO9N8ZkbIlrcBXzCvh9XFjdOzO9GNDF4OJiMpN?= =?us-ascii?Q?g5erSRb4rnYRMmX69ceseYuGnReE2t7XK9mY35SAKHBbPmoSwZuo2rOUCm94?= =?us-ascii?Q?dNazIaGU1KoFxLPRhrh4+/1BQEIfVLdYZMh29H/9msn0iLggq3Lr595JAaII?= =?us-ascii?Q?d+1Cp3Y8h6itqnhwdX9VtRvnRvx6fmzO6XNZKHShikz7oXeexZAa+x347g5e?= =?us-ascii?Q?IuwJfXTCDLUNVjA1+u+rnkNXoq1LANHjfzkHK44JM1JzXw8/9Ih+CLm4L9br?= =?us-ascii?Q?qgtvZYLLoiBSoQjG6d/twNEJfBV/He9ckhBxWwgDgqgknnCkwMUQaBtsv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FE6k0HOMRQCUb6xDOJzxAaD0dNhlA1Yjtdi1Ja1?= =?us-ascii?Q?IUi+IbONGyTDzrN1S8eto4rhkDJv9YCG5qsckcxa9xTozMEJx6t0VYViTfHS?= =?us-ascii?Q?4Pv/+vxdoqZnp0REzzsfaBiW+kqBzEWZaTUNpQ3XGWt4RUvAc/Rj+F/Lnz6w?= =?us-ascii?Q?qaE0r5Qu6QXH7S26FCsckKmzQ/sxe7Qp9VKnEu2Y?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: eab249c2-03d7-44e7-99ec-08dd023244cd X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 09:21:48.9300 (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: Ac+VCmrtQqyt92pQuB/+YJhfkRFdLCjQyVB7n0gd11n76dAVRpMPArrRpRH2P5Sp+tJOfOu+dDT3TIOoH+pn9w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB10032 Content-Type: text/plain; charset="utf-8" From: Peng Fan With dev_pm_clear_wake_irq in device_unbind_cleanup, there is no need to invoke dev_pm_clear_wake_irq in driver remove hook explicitly. Cc: Dmitry Torokhov Cc: Rob Herring Cc: Ulf Hansson Signed-off-by: Peng Fan --- drivers/base/dd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/base/dd.c b/drivers/base/dd.c index f0e4b4aba885..ea3a871bdd11 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include =20 @@ -556,6 +557,7 @@ static void device_unbind_cleanup(struct device *dev) dev->pm_domain->dismiss(dev); pm_runtime_reinit(dev); dev_pm_set_driver_flags(dev, 0); + dev_pm_clear_wake_irq(dev); } =20 static void device_remove(struct device *dev) --=20 2.37.1