| Message ID | 20240911151555.2915258-1-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers | show
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBL7IQ23QMGQE3NI4QPI@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com
[209.85.128.70])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9A7013F263
for <linux-amarula@patchwork.amarulasolutions.com>;
Wed, 11 Sep 2024 17:16:00 +0200 (CEST)
Received: by mail-wm1-f70.google.com with SMTP id
5b1f17b1804b1-42caf073db8sf38463125e9.3
for <linux-amarula@patchwork.amarulasolutions.com>;
Wed, 11 Sep 2024 08:16:00 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1726067760; cv=pass;
d=google.com; s=arc-20240605;
b=kGSik3HLKxCtFpA0kFMGVgTmGtMma2hnc8rr30cIN+AG/eC5PzyQuvL3+K89nJShM0
yYEHDPW2wsQ15XZWeuMbEWdUHW4cgbHplatKNQ9Mx2E7OM7ax7f8oQNHv7ySOk4geh4R
ZXUYXNcuizCWQ3cHHki+7VK5PQ0uTSF08pIU8BjHSwcvrjKH5H1BQUzqRrEtHUm1sPO6
FI5I+2JsprEus0LSq5poUfdXIzdAahvV+7NHqRxvUx+Cao8xoIYV+RLt7cKg/toFYcM1
61orDjEe9i8HQJVWG6hAXqD45U/XQeM/3W5rcaFqUoDsSyID74JWNqwCQgFudgk7BqyN
Eyfw==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:message-id:date:subject:to
:from:dkim-signature;
bh=BjatmFYhA6Vuvi3gUJvCFYrU5L7eekKDgsyfQezhMaQ=;
fh=sroXd/2q+uR8t9TohUWyZmyddOc9AEUWoeBXzB72yeA=;
b=ln1b0sz6iu3yuj8zrW0bZnZLFanZtx4ILO+jIoElynMEWBl1L5gBEUT98Qu6oy2oIK
PBKGx2zCIXC26CbgkCdlMKk30/DpG40NECo20Vl0l/F0chjpGCzt6pgsQC2GeOIuPXny
2mS7OAmlSMCKSaMEfURppaN+DXqgF7nYJrlFZ9VnLHLE/nl/vnDFuCRCjbq9dKLB669H
G99ZxdFg6e9KG5OyGEwktWyi3fQSJp0fKGjZEMg7XAkja+UAh9S7zBsDMb4326P/YGP8
Mm95WzVbMOXppbX5NoBwLWDTYVRLxw5vFSPfZXeS3WXvYgvkMNNQzHwwft6Ly6/qwhQZ
srag==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=X12miKkV;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1726067760; x=1726672560;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:message-id:date:subject:to:from:from
:to:cc:subject:date:message-id:reply-to;
bh=BjatmFYhA6Vuvi3gUJvCFYrU5L7eekKDgsyfQezhMaQ=;
b=Ge40Vb4evu9oxh4Omkb4B9yW0ofp44z5/IV8LSo0ndF8zlwTIYJV7+J7KfqHxp6Zy2
jzVwiZj71ClwGzqEYS/HmjfzbalYA4KxXW6fY9RBp7vaZx6tilmhzTE2ef1g/8/RNkT7
d6c11wR+51nBBNrplpFexlbCsKEQ7k/ZDQpFg=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1726067760; x=1726672560;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:message-id:date:subject:to:from:x-beenthere:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to;
bh=BjatmFYhA6Vuvi3gUJvCFYrU5L7eekKDgsyfQezhMaQ=;
b=WbTRJPR3U4/+ZxJc7otK7I2ENZpvIhsorFMfITakZOXR8BGB1uR5Vg9waKrKFX5Zb3
0Xnlxqtuq245svECmBGlopKn2RRXHtiuThMvQuCu9KZfVzCCQqYxY5Umpx9cQeITxANW
nBZFRq3yrUkrJkWwzex701sQdiwRhmp27YbZDbgXx+0sjFpBK6+tXqycCjfmB93TRqD8
cl8MqyWPsypSDjllmjWG9/JeXdwmWxBpI6FFs2/PtigJWc5YLuZ4R7WYzkcvT/aUAk50
Iil26Jn9DCVVw2rKeYZV8fAM+7OTTPmS0KmGm5jfS2Hv1d3PDM6ByurslL94rT0R/EwT
3QrQ==
X-Forwarded-Encrypted: i=2;
AJvYcCV1pmcKUm7I7ep5JU6+vy4YQmZcJoDvj3BjL600hTIBDzi5MEYQZWjC0rsGO2o97gPZXY4nij+OO5Xif09i@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0Yz2ZYo1PEGA8qJeb7YhF0lChh930TbK+wtbgnR02XZ2kJD0b6Jz
rhWPZZw0aiO0NfLeITyYeclXUk4JIaQZs/MhLHOAugyhzaKJyFuoyIb4loGqcf/eHg==
X-Google-Smtp-Source:
AGHT+IF9FQda7LHetN7WHc6ZnW2887UKjYSNsNjphrhM+S/JfXNJLujCioDBD/kxxQzZE/EE3+6Puw==
X-Received: by 2002:a05:600c:54e7:b0:42c:acb0:ddb6 with SMTP id
5b1f17b1804b1-42cacb0e00bmr121607775e9.9.1726067760013;
Wed, 11 Sep 2024 08:16:00 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com
Received: by 2002:a05:600c:46c5:b0:42c:ad31:3854 with SMTP id
5b1f17b1804b1-42cdb394087ls11945e9.0.-pod-prod-09-eu; Wed, 11 Sep 2024
08:15:58 -0700 (PDT)
X-Received: by 2002:a05:600c:a4c:b0:426:602d:a246 with SMTP id
5b1f17b1804b1-42c9f9d842cmr144957725e9.32.1726067758186;
Wed, 11 Sep 2024 08:15:58 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1726067758; cv=none;
d=google.com; s=arc-20160816;
b=IYvKwSdELXeRWD9fGt72SfCdcRqg3zkLAT2sp83+Q35mhD/nMdhNmSfNw2kcaW5Rpg
O2pZ7rvRvvK5QbODK5Tlu5G11Ujm8/X9loyBOUcm8k2i2EWz/PkN/7yC9nb3zF+QG1Oj
V6G9Y7b7qOHFy8zZa3MGgXtnBswz/VqZogOP32r6BBaDlhq8RRGEp0TTx9Okx/JuXDxO
wDSR5dm/ymUnBBM//xSTu+MNTJ52AnvYWSDkI0Kf16CLVMXIxzGyBNpwDL1ITE6zeiGg
A35kQXVrtSnrCs6WhbhmNkzkFHXAoAlV1mjyskMv/WDeSS+2V0j5nmVTnkSYPpOCmWsq
j4Rg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=content-transfer-encoding:mime-version:message-id:date:subject:to
:from:dkim-signature;
bh=dFq31ti2T2YFsOGEOqfIjXVNQp0atwFOg4wwyQ1+CAY=;
fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=;
b=G2PTCERATRETXbI4y2Mn9nua3GxiP/cH2Zt0yVsKxHlkQa6VImQm62IRLU8jM/T9is
+d9MJJBciP9LAqZ+xYKh+jeN+5rEpLTHWaHj6fmVu72IqztKxlMnVPPKassdkS0E/X5j
cDoPPOwXcoi/MmwELPb6lPd0BqWh4QbzbCZf7LtCtyXZ5pu19edQx/esmqxgin0eSwi8
Ow49fFRlxuj7MM+BQFOOruWRSz7zZDZTK+Vy8YdSiMPfwAbxaotUrP/5Bf6+I5uSIZ1N
T5N+DVH07LbjiTC6JoyIN9EJT3+UFSyvLCnRv/4gfd5tXjwwW9V0SqkVPOyM1vpk2l9X
2tew==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=X12miKkV;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
5b1f17b1804b1-42caf2f9d99sor39546075e9.9.2024.09.11.08.15.58
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Wed, 11 Sep 2024 08:15:58 -0700 (PDT)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a05:600c:4f8a:b0:42c:cd88:d0f4 with SMTP id
5b1f17b1804b1-42ccd88d30emr30034815e9.22.1726067757235;
Wed, 11 Sep 2024 08:15:57 -0700 (PDT)
Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.41.3])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-378956d37a1sm11797177f8f.77.2024.09.11.08.15.56
for <linux-amarula@amarulasolutions.com>
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 11 Sep 2024 08:15:56 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: linux-amarula@amarulasolutions.com
Subject: [PATCH v2 01/10] pmdomain: core: fix "sd_count" field setting
Date: Wed, 11 Sep 2024 17:15:46 +0200
Message-ID: <20240911151555.2915258-1-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=X12miKkV;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
|
| Related |
show
|
diff --git a/drivers/pmdomain/core.c b/drivers/pmdomain/core.c index 623d15b68707..ea56e65d0b93 100644 --- a/drivers/pmdomain/core.c +++ b/drivers/pmdomain/core.c @@ -2111,7 +2111,7 @@ int pm_genpd_init(struct generic_pm_domain *genpd, genpd_lock_init(genpd); genpd->gov = gov; INIT_WORK(&genpd->power_off_work, genpd_power_off_work_fn); - atomic_set(&genpd->sd_count, 0); + atomic_set(&genpd->sd_count, is_off ? 0 : 1); genpd->status = is_off ? GENPD_STATE_OFF : GENPD_STATE_ON; genpd->device_count = 0; genpd->provider = NULL;
The "sd_count" field keeps track of the number of subdomains with power "on," so if pm_genpd_init() is called with the "is_off" parameter set to false, it means that the power domain is already on, and therefore its "sd_count" must be 1. Co-Developed-by: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- drivers/pmdomain/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)