Message ID | 20250110061346.2440772-1-peng.fan@oss.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 52B75E7719C for <linux-arm-kernel@archiver.kernel.org>; Fri, 10 Jan 2025 06:42:17 +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=ThDvgPq0FEdxjSpR+02Tml2q3xDzdCZ1XCABp8S60og=; b=USCJol4BZPt69Yd8y7EOdj0AEh 7xg/PG987qZPbRi6yCDUjI6wppvEuCTWQEXisX+fMWULH733JjDQNnOoFV8oIy2/V6CRLukUlPqH7 bhyTRfbvTvUqDRSbkPPgzT4k6DzKP+H6VX/UTdWnqsLLBzXbJg+5o6OSp39p3a3ADc0+2oqZHo3hq FIDL7J+APrIuNlgRn9284cjCsxvBIv4UpmYUyCxZVKV3i48gtqyqirvcPdaCnQnUf+SfMt94eVFjp gKf40PBr/N30ayjMWjxyra2v8uvZjtxS1otPpZgQ16bXJ0J/XRnmS3Wy/li+9eW4hBAaaNodWjd1c b6TGQyQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tW8id-0000000EHqY-1qoN; Fri, 10 Jan 2025 06:42:07 +0000 Received: from mail-vi1eur05on20612.outbound.protection.outlook.com ([2a01:111:f403:2613::612] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tW8I4-0000000EDgH-0tbY for linux-arm-kernel@lists.infradead.org; Fri, 10 Jan 2025 06:14:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mFRWyhsRonCtH3OSivF1vvEeFPxqD7Bun9YS6Pm38u6eSVhrJvjXQV2YaD2UVwdW6VywxewxzpMyz5bh/sZslsTQ619q77Cso4Rz5a3A4UffshMjYQb/w/bSjR51tYBMsUKKwPFngTbM1a90HCmUDKnKH+NXJChm52OqlaKloI4QCORt1FhSfhASgo53DCtJnZgfLp2r4qtmXGv5yX4SlvC5azEriYpGLr4KDo2oQK9a1w4Xitum6vrUzlTS9MilRbvzbXSICPhVUcqBy7c7NwRkMxMHfP4RP7Z2b5fZlVZxG/938gqV6zgIfon9vXs3/8DVKnpg7SA+c9vofNh7+A== 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=ThDvgPq0FEdxjSpR+02Tml2q3xDzdCZ1XCABp8S60og=; b=tlOTq97ka3GD6lVD6epvcG4otttoQKgphCxFwiCYeUJfNTqM2cKf8ztKWYBomhtRXD8X6vo7JWY8XVcq/R0Sk2eXz6UQdlDHUGoSIUcjosoY2iVvrEzQxyDiHwhPcDJ2qrwLUvMdd1Oy8Q/0+j5ULhyeu/wbg+9MxVxOPyj6lVhf++P0XMGs0RZfXybfObBoBS5cognut2o+LZ4NRzPqmMn0LDqEC10VTjiu1f9uctN51dmM+woZkbLP7CXwK27JhGLx78ORlZubaGFlhMEizdbk5zEj0OvFpmFISPOwo1wH0VijQN/cWsk7ZjQwUXjANoW4DqrlFgoet2XGGCs7Fg== 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=ThDvgPq0FEdxjSpR+02Tml2q3xDzdCZ1XCABp8S60og=; b=R13QlVHT6KEp9RC+Pmf1S1g3f/UlA5QG8JFc36WWJdlId6UmcJGpPdCo8NH8bU9mjGLTVdqBbvD2fsIW6KKRAa/DvsXGjNFUKfYwrYzhn6DyDiqkB/o1sGeGxTQf6FT4aD/+vXSi+oAmCE6r8yIRAzTCuvLTDB72gcgUnnVWMDZ7NNmZ5cQDuKfA+S++NTGjNMdxIurd23RW/x3VWfa5WuSHRzaCIeXDUmKwQcsCFPBHgQRlq5GJ5c77Ru+HF+/U/GtV9+ho8ijKFLzczxOzeBZ3VH8ZJ2adpX90giOjbtNm7NJh/UQPF8u3mqVQc9Fk0Pvaf3WIezDtK/ANSlV6nQ== 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 AM9PR04MB8384.eurprd04.prod.outlook.com (2603:10a6:20b:3e8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.13; Fri, 10 Jan 2025 06:14:30 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%5]) with mapi id 15.20.8335.012; Fri, 10 Jan 2025 06:14:30 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: sudeep.holla@arm.com, cristian.marussi@arm.com, ulf.hansson@linaro.org Cc: arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, ranjani.vaidyanathan@nxp.com, Peng Fan <peng.fan@nxp.com> Subject: [PATCH] pmdomain: arm: scmi_pm_domain: Initialize state as off Date: Fri, 10 Jan 2025 14:13:46 +0800 Message-Id: <20250110061346.2440772-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0044.apcprd02.prod.outlook.com (2603:1096:4:1f6::6) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|AM9PR04MB8384:EE_ X-MS-Office365-Filtering-Correlation-Id: a3c93e1d-0c27-48f7-d020-08dd313e0afa 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|366016|376014|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: KHfQxbIUKfZdQ8k/V8V5HjFoRTYyxx32ldgW9uRX2GfproD1vktR8YHMl2hhqYkv1cO3/FoUDCK0tEgvVe/3pTWZSM2pMI2KAZMXcAt9EDRYs8DHJXjpYsK8WDnkUwI79osu+5JG9Pm1u/jrG+JAQZGXei9MLamo7FBol9FrqkmxUbjTyKPR1+TL7zO8eXCJkrEzTHlJ2tizbURtr6fn2i5vT92BvuMnBi0aomnLqbTI1v0/Ql3fyvjPsBbLYfxlhV3yXIMLstumk3V5Ge6jUaeYhE8R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A+D1YRQczOR8vy++Cuk0UlFufm91vguiyCT7f4BGmD98q6JEa1Dv5EbU7yb24h+j2+Lw9i33Gpo+4rk55diCNv5ix8YgSRgRcZQSnYic 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)(366016)(376014)(1800799024)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FB0JzuprTAlPRwY4UuY2rWp5ohGDWvBLFoAkgl475paxBStIsKfJ1kEOJ4HamhlSBBA5Fqo/AkyWL8GtGZqoGqiwI/f7X90BnQiQPpALQBa0MdK9BEVBxvGxFK98MA9gfnUpXHjcCVJvhM8bgEc9eQ1m93vuWHIG3j9BtuyTbVcysfZUJx0Zq0UJE2FCK9oahTBFfuaI/aMGTZTAhUW0qE8nKLuQ+VfjRGYP+/TsTTCpVti4N79LWJrWcfUz0XtRUP4bYomyBDkM+0RsEyxwA8SUOyFaYLFbfk+IhFHbx2NhRXPscPerBkVOenr0xLF6ZMZCQAVXl8T+D/sQlj/U6se5I4+IUves3vTKgosEl1F5NgIvRyp3EiIQkMCh7sctzObEy2rsRp7V7vooTNk+meMwa5DjU8GLRUgP7DCLp4lGbGE+xOWQLA/ix2awNyDft+X83LQjXKBmT74Q3imM2R/RxMQOkz6Fw2OYVd36R6Pfd3pot+1gfz+9o2d2ezkoRFy4tWPim9kAzOT0hfYIzyiAFvwvI3jRkSTgUEUTZTHdaXBNPpxgZ1cCys/MY0dmIc7eEFL5X11c8Vjw0KzHAZR13xo1uqLHzkcVXECKQooo/FUH2Xb5L4EWxk63ceMZyEw9QEpvPEdo/KjXAtdGKg0pAmn4J8pQfjW1ryyRL0K2PnXiuisfmyCLB3rxgaVciSS95mpN7b7ijQ3HYwcp1TbmDem/Cnets4cazuzro07rVKeVo8hHUWEbkmgFXUkaA+kBxIoB1UMWRPKmCxP3TSEEhavhG9LI9k+VtrDtbFC5+zQh7E50TaBZCQ+7Lwol4XpneFjSsVlB//fd4Gk8Qsbhf8L1mnEchTH1HI8okXSRSf14O+2ON1T2AwahEo77QCOn0XOl3LY756c9CkQcg1tNxrMLYmp2Us4zhl9NCh1cjwzpxJTA2u0zZYzSzj5NOw5LUfYe+btit7N3ScAettn2kJD1ajtZKKQnuVHbxuPu+Pur+kId0jMT3vh7CxIXwddRbwq0ohy7VJm3yuqW9y5SKM5FzoFdivY3LG0IcLHA3A2E3HveSGs5pmE2O8TvQaW5hFF1GLWSdh1eMvgPvgpxzPEsDl0kznXTtNaVorJKcF0Tab30nn19uvhTrWZejpoqSDpAuRGz7VYhWNBtrMc9egzPowqYMDa85D5ys1QE2KdLmSmEV1FvJ5x6Al078KZU7OEwhARZQnNCqI1YlxLTMhzM4u22A32X6tA3EHTspP6Gn6A/+fufVkWVkfm+JeEF1RB9dyo0rO7PZed2CxWT0UcanKybDeGMAiDc99R4rrjPdQMTgfjQhO8C0TWHF6qFflmvE/fECmJQz8IgVoep8q/kYOUxDwDiyMmCsMMVJC0IvsCnjKN2wehF+8skxcPsWDJuyHzuXgjyi8jjIFYyLKPIh3WqBhxQy3e3fbVGgYlZLVxKhR/xYWvTjaJtiVy7Is8HagUEE79TrA+t3Jsuz5TlyzpavQJYvyq9nzJst/HHStwYbBWFHAbdyqSQrWTlIBlLs/555kbQzN7DPh1TRaaUYftkwq/QghgLhPPFaEwE99YK3TaQ50ao+cnu X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3c93e1d-0c27-48f7-d020-08dd313e0afa X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2025 06:14:30.1002 (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: NtdeX9d5EKG4M4aNLXkr8HzjuB3WnY5ij0a+hgFmWfgocTjpJT0JcZ6y8vFlMeYIInpMDdRLr4LW7YiNQ4P9Ew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8384 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250109_221440_257462_BCEAD4E2 X-CRM114-Status: GOOD ( 10.42 ) 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 |
pmdomain: arm: scmi_pm_domain: Initialize state as off
|
expand
|
diff --git a/drivers/pmdomain/arm/scmi_pm_domain.c b/drivers/pmdomain/arm/scmi_pm_domain.c index a7784a8bb5db..eadfc032867f 100644 --- a/drivers/pmdomain/arm/scmi_pm_domain.c +++ b/drivers/pmdomain/arm/scmi_pm_domain.c @@ -89,13 +89,6 @@ static int scmi_pm_domain_probe(struct scmi_device *sdev) return -ENOMEM; for (i = 0; i < num_domains; i++, scmi_pd++) { - u32 state; - - if (power_ops->state_get(ph, i, &state)) { - dev_warn(dev, "failed to get state for domain %d\n", i); - continue; - } - scmi_pd->domain = i; scmi_pd->ph = ph; scmi_pd->name = power_ops->name_get(ph, i); @@ -104,8 +97,7 @@ static int scmi_pm_domain_probe(struct scmi_device *sdev) 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); + pm_genpd_init(&scmi_pd->genpd, NULL, true); domains[i] = &scmi_pd->genpd; }