Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2677377lqo; Tue, 14 May 2024 06:17:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnUjNSN67cjCg7JvSQWEWTX+gTA+j6RecUUJlC3YMOiNoUl5QywnlQGqBbfb0r0ZacabiqSvP3DYvN2kM5w+/9Rnpzyoi+SdZ8eLgGhw== X-Google-Smtp-Source: AGHT+IEYK+047sUuDusXcgm8MaF3eshxlp+tovSsObO56fMiw/xCcDQbisEAPADZXjHo+2itD6p0 X-Received: by 2002:a17:907:100b:b0:a59:9c4d:da39 with SMTP id a640c23a62f3a-a5a2d5ced71mr821834566b.45.1715692677021; Tue, 14 May 2024 06:17:57 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a54959a44si362545166b.555.2024.05.14.06.17.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 06:17:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=EbEwgHmV; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-178702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2E08D1F23CE6 for ; Tue, 14 May 2024 13:11:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 424A8140E5E; Tue, 14 May 2024 13:10:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="EbEwgHmV" Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2062.outbound.protection.outlook.com [40.107.22.62]) (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 D54EA55C36; Tue, 14 May 2024 13:10:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.62 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715692250; cv=fail; b=pGnBNNlb8bmAs0+2fHCWHZB0DBnV6BhyCSDz43a9TvTLRGY7qH+hDyDbFOgP/2/K/u7t2INM1zwBwHwPKlkfE7gGrbsgmCI1nV9lgrUQiTfrsgrVoBQxkn4of4GcaTU9fwHTLoy+Q/z9d/qGDk4VdNTJ908zljdW8Q9tS31A3Ps= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715692250; c=relaxed/simple; bh=6Ct7qLupLfQIBG6j0A/M/foo42EipT2wh6B7Ro+Q8/Y=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=GNBD6cZbmO5MomI1d4arOoTGCgvi6ZAKBVC1sMzBUfuah8GoGB2xjOz3hZ9gCbEG+6K0utRoeY7lZIIpO5cowWprHlCXbNRnLFkcCEgGqwK9UmcFMEliZgrBCHBTSxBRO86KvVPs5zsraJKc0Tf7Su+Hl1RpeqjO8nOC+dSPFzY= 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 (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=EbEwgHmV; arc=fail smtp.client-ip=40.107.22.62 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XfD4I67KLe7U44oOu4EidoVR8pmAnb2cf+EOkWZWI4qqeGlcWf55AKV+Lhj9lxcFcOBe8I2Ey+V15NrYIDEPdDQVPTLlhPuDkC7QVz5VX5NQ99rL+ymKdwogsyCsOa5vMPudrxfNFKwf1jQR8NEHv+u35y27gX9RaXFB4Adk1SH847WMOkif2yaSSxGI3JO4SRl6Z8xgVx3aelLl6M7GBzj5hyiEWtdWiw2Ry1s7H71ZiW70EG45wLV1TQ6DvZjMZYqTO6thK2b83t/rI1bsMNu/5gsMYtJgm9jjYCxWMhmSevIHK2tDyJ1Y32BmI3n9T2FxvUQM0IQD9GelBezHeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=0eyixh4il75JyrUuKQf9OwfQX5JUsiz+r8HGhD6CFJk=; b=Jg5Kyxxzfdy6joJN4kiuBEHwwyAdzy6Llt0z0PM0YJ09sVbyeI8A0AO4CGXP6MesJFKvfhcVFjNSBs3c3IrD7JqBApoEG5SewoELi+umGAD3ldF7nAZB657sGv5GkCzqQIA0GnvhKsf0gub1mC1xBIGy6n50cSMtvkVOgVT+SjCTxNUHb81AvlGMOX3Y2vHlH/FAhOKF/Ei99cHgsO44metax+UZfwQbGPXxECHlHNfSIiocLQTiGbVX1K1QsK2TeC0WRGDbMOasmKskjY+99xt95Yar2V9mx2pNvQ0RXI/IKIzQItZcf9F2rSy5I1B9GIeeWZlUCra1gHYtttyl+g== 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=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0eyixh4il75JyrUuKQf9OwfQX5JUsiz+r8HGhD6CFJk=; b=EbEwgHmVV5EyL1V5O+oxftYQQTB5AnGah9cPt/mZ7YDCqx1E8fIYkbA805yrsaV9XAbWtR+wC+NjxzjE6UfDpiJF8RbV78NqkWppFl7XuJG7Cl00BFuISgJUnMHLtwo4vv3lamMpSIG9jvpN7vGAZAuwkS+5Hb7Fx2mIIHTamVs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DU4PR04MB10316.eurprd04.prod.outlook.com (2603:10a6:10:567::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55; Tue, 14 May 2024 13:10:44 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7544.052; Tue, 14 May 2024 13:10:44 +0000 From: "Peng Fan (OSS)" To: sudeep.holla@arm.com, cristian.marussi@arm.com, ulf.hansson@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Peng Fan Subject: [PATCH] pmdomain: arm: scmi_pm_domain: set flag GENPD_FLAG_ACTIVE_WAKEUP Date: Tue, 14 May 2024 21:18:33 +0800 Message-Id: <20240514131833.911703-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SGXP274CA0013.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::25) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) 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: DU0PR04MB9417:EE_|DU4PR04MB10316:EE_ X-MS-Office365-Filtering-Correlation-Id: 2be793d4-ebf3-4749-a637-08dc74174346 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|366007|52116005|38350700005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?WF7msWgTglZcU6T236C/8Mp6bMTeSl4IgUeofOMrlFoJOvC9DaO60uXO/QrX?= =?us-ascii?Q?CFfex+FRKCP8RvtLJBRyMKsmJUB0wLfRmIDVTnJUy+NeBoZpdutXFwlgPCNs?= =?us-ascii?Q?NlJwk5ND1ekFU4BcLiR7dtdCQJeYrLkrnqgMIUFiTfc1SSP95Anx7J9zKqPK?= =?us-ascii?Q?mGnvpJz7O0hR3LwEVngZ4HIsp+j/LC0GB7CBYMCDWrKfuyqKjznQAT/L8eTe?= =?us-ascii?Q?r/c0AqJ4KYvOXRL5e1WZasa/H2HJA7antnzaQuHPWIUioURHwqCFrxt25Nk6?= =?us-ascii?Q?HAxTf/TYk00OEUOZKmIERPBaQVUu8/jRlxQyOZtJdZ4t+Yy6gjBEnyZdaI2a?= =?us-asc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X97a5wY5xeD6RiLpnNdocwQ/?= =?us-ascii?Q?gvpu1Uf3aAj9roYGTzVo7ar1dl0GbBTa+S7HFWvXRBhGIb7XKBzhDYL0BYEk?= =?us-ascii?Q?zEzA2rc1ujw8YnhQv9kIl8UrOJ8p5F7FnOrPffG0gfvolw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(366007)(52116005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ge+IDOh95mQ3KfdOAZohLt0uZp1uLpMPsJqoTTfG6fiSyiNcAwWxj9W0wLCE?= =?us-ascii?Q?DeVm5aF+aFNhaXaejZnEihaPkgsiGIO3HrHs5x0SwOmTJNp4YRNLLjwvKdlB?= =?us-ascii?Q?YjUaVcf0AFWqA6WMvgLY1cvxElY8TKePo9riKQjNLdtHBltvAlmPGpbPAF4s?= =?us-ascii?Q?Jq1I18HhyoaR76eTCvhgW1Q4DudYWkBrZya2DlcqgzoQ38RRPNJZ7F7s9taY?= =?us-ascii?Q?4alGm2sR++c5k3F6RBEXWQmRgQNeG86EMR+fXTcvNIDg8OnEkQRcB4qUoBC2?= =?us-ascii?Q?8IjD3mvSzKkuKiXpvCZPCLgOL954gn3GcVr84sD1uQzPDETHyx4t/o5s3Rho?= =?us-ascii?Q?TGU3xIcrJO6WyPCaLRQpdFZCeH6te1ucIclJgYvfFMuAAcEWpCPgNSCTuQMx?= =?us-ascii?Q?fQ66dMJAs1VhE8YAvp4TMNgVf1HYdaQfe3avEhixpZdFAIplsIMRmz1BEhh4?= =?us-ascii?Q?XbCYJTKkVgWvyLTLPyb8YDCNxB+CrZHtZyMPQUBhkaOOZm0xHwI0OhZFWtqB?= =?us-ascii?Q?esA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Z?= =?us-ascii?Q?8gB3QHdZMgohySpqtkHqxeP+ysnEPw/jkk9+rPe7gynFQSgM4fht2Qo4LNCM?= =?us-ascii?Q?Uh+gCSWTqdIJpu89mbICacMk/CZftl6qDau+V4rhBRy/1+/5me2qHd0F2/od?= =?us-ascii?Q?nX84h8VaReYCaVHQ8uNqV7LRoJRgNod09dF8aFTp?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2be793d4-ebf3-4749-a637-08dc74174346 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 May 2024 13:10:44.6926 (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: 8UMlOEz26+I96u/n3EehmrbaPXf2S4i2NnMrufjUEN86D92xxxL8I1ypoObzJXHoCnc29zFF4xHv2vOYpr+mrw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10316 From: Peng Fan Set flag GENPD_FLAG_ACTIVE_WAKEUP to scmi genpd, then when a device is set as wakeup source using device_set_wakeup_enable, the power domain could be kept on to make sure the device could wakeup the system. Signed-off-by: Peng Fan --- drivers/pmdomain/arm/scmi_pm_domain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pmdomain/arm/scmi_pm_domain.c b/drivers/pmdomain/arm/scmi_pm_domain.c index 0e05a79de82d..a7784a8bb5db 100644 --- a/drivers/pmdomain/arm/scmi_pm_domain.c +++ b/drivers/pmdomain/arm/scmi_pm_domain.c @@ -102,6 +102,7 @@ static int scmi_pm_domain_probe(struct scmi_device *sdev) scmi_pd->genpd.name = scmi_pd->name; scmi_pd->genpd.power_off = scmi_pd_power_off; scmi_pd->genpd.power_on = scmi_pd_power_on; + scmi_pd->genpd.flags = GENPD_FLAG_ACTIVE_WAKEUP; pm_genpd_init(&scmi_pd->genpd, NULL, state == SCMI_POWER_STATE_GENERIC_OFF); -- 2.37.1