Message ID | 20240903153157.918185-1-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRB4OX3S3AMGQEM4KWNKQ@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 028D53F1F3 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 3 Sep 2024 17:32:01 +0200 (CEST) Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-42c78767b90sf30919745e9.1 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 03 Sep 2024 08:32:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725377521; cv=pass; d=google.com; s=arc-20240605; b=dgL7dDnKsIYcz/6Uu90g1YwYtN96e12Xt0JXe0W448Y3pY+0hBPKOeIG4M3mVp3OrU vNMdElLryEhD7HyewobprmI4c6RZi8SQPc35WGEyNkcCrYugxIH25PIwjh9EqsRD5FwO aoZ0+HXPkvKALpbx5pOrAmbXBc+Qm16l/3mN4z45oCGgOF9XcjiJcL54uV8uGJdhorG8 OVmEck3mjzPtA1zDF9yDQLgtMy2ULGTI8i/j6O9KO2eJnl40IQ/vdaRvE5E/MoU+9sAx qNLFjhvjW23A5dArAgAy7KRDgEcgrtr5xtcbzf0shITSf3QHZ2JW30cCPkdEwGWgJROX UtPA== 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=f/okG6O19NeAdYcBwUPkTZxN4jOeHAcCvsmSAO/55mY=; b=Air9D65G5mTJmVQPsf5GHFFFnBWOiU4BYLTW0oL05NAnM7KUhK23OJ6EQg2NPhwkjH rBakI+VVfDS8pkU7LMijUvhYvhIoUbQltlAZph1yAoiUEW3CDfO4C9KHL9yXHaxzf+I3 4YZ92tYGGhNeEYvJJkq+o5CMF+mUDBaLtkMPnbapl2CQ16BjcY/FBUYJGcyUYunzut9E Vdetm3HkpfiC1Q/eFFZ41kiYoWo5JHNcS0ETviiKneXUA29a6gml7Bj8fgerxQMH2xlR IO8OQWGY/XJ/EXScIXyYac0dMFuGsJgD+r9MuYXl1Hdoazr66xUvgX4Q/Zv5RntL++2n LqTw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nof9wYyi; 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=1725377521; x=1725982321; 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=oy2EeMt4LCZFA5Qbe89cwaB8ltp4hP9dHsWUodxGUq0hHAGqeXjxmGxyOKJ58EpnHw PklhO5bRSe27Z9XuQOuo6iXJD62hlAsvTpcdzWfqbOJhU5B+8Up8s2rFFDQXETzGbT5K 2HshugJZC5jDHiIJSAiA0c8t4LtcMC8gsd8Gg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725377521; x=1725982321; 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=nsjz0WTKPLah31TAIx7E3RCdPkXGV0+tT160Cgo8Tg+E2pNQln+pVhjguYUVHQ96ZS 7ZytwscyvHjzSF5H18PhgyJeHoPsMbbPUhWBHAYobzCW6p55Wk22qgfraPxw5mT7GfiR XWaMxsF7T7OEJwHfb16SanFErt8bqa7TDdVl+GVYjggrDbDsBVAx94Vp5Bp4SxmdUA5Q tG9kKYkVlqOHcG05hdq33M52BFG4eqcj23ISvxgyFBFuaYP0G63WDq9WoMMXBZZLfJgE BZSoiTVZTRRcx58WE9yMWIq0dWJRsq7qNIKd8VzR7SEJlgy5wFKnNTOHYHXZM3StZiip ZlgQ== X-Forwarded-Encrypted: i=2; AJvYcCWhtRPVNwuFIS9eLv3T6NYwIWdARlYWHBaJRdX5Pl1IoR7JuzkXE55f4KuGvaZBuHN8qLsucyb7/S6IGCyi@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yzn7FcXvMRg5YWvlsVUizOs6zKJCN8GKbA2bsiiYcWpX47nWnob f++izhhnZ26KR5rHUrjYT/Eo74OtSOZWZZa1xDqGyrjfU2Zhnyiz17TlZSh5Lj4vFQ== X-Google-Smtp-Source: AGHT+IHCRc0GHx69NAR1uTTnMX0vPd7b4tge27PquDxv4Yvw8ab5bhukfTdH7iTklofDSzqLhZUAzw== X-Received: by 2002:a05:600c:4e45:b0:426:5dd0:a1ee with SMTP id 5b1f17b1804b1-42c880ec1f6mr28873525e9.2.1725377521623; Tue, 03 Sep 2024 08:32:01 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:3590:b0:427:96b1:a664 with SMTP id 5b1f17b1804b1-42bb283d3b1ls8608775e9.0.-pod-prod-03-eu; Tue, 03 Sep 2024 08:32:00 -0700 (PDT) X-Received: by 2002:a05:600c:3ba6:b0:426:647b:1bf7 with SMTP id 5b1f17b1804b1-42c88108625mr32806695e9.32.1725377520064; Tue, 03 Sep 2024 08:32:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725377520; cv=none; d=google.com; s=arc-20160816; b=ludfxqW9Z0pG8g+CFpYbG3M8Ni9R+bOtmM8TCx5Yoeh8MHeIbM0njiyfPArvtC7m+i PYlfQKNujH2axnceOE5fL+3RW8wuh5n2dwRJaH7wYVxjMS7qnBva8eVMV5uJuM5EilHW zxlMGLVLzzSVO2Rfo+Kf4WUoZ/XY0f3UOwCkzg2rxwb3Em+Pqi4q3aaxLZwj7/T6r7au P4NYTBrDGzF5ZB2JUgEmSkQ9tPNCGbR5VNFqSSe/BwD6LqByXUcMw4X4GpWA3k4WhRpt zW7Wg9XSQr1N2M6Np/rpu/T5GNzJ62XIIDR6y+pYGQoTkU1OzSqXWQJfen3VwU1D1ISV qepQ== 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=OXtNTHDn0s+5bWPDi1GSBbn6ikzSkUT18aHfNt9rBrDRzGUPWpRqsjTfeSZLklsMg+ EQuL29MawIyMp2U1qX/m+yA29zbUzReXzqoO+5Yyqg1/BMhPDJ93GG9s06wpeBhc49cB Cwup49e9/Izo8vUc3AFtL6+FIcgNsDbVDn8fVh3OoBsgfMtUMy2IpUo0kVvfjPx8Ud+K cLxdt8Az7y2ApL/pUJ72do9T1JhWG+Jop+5xRwL8ys2Qwt5lPkuoAFoJ/jYoYUGrx/Zf j/zUqL2BsZTOCmcGAQ4EJPhi272ztreZ+bY+kLkcgiScGusHttdSFEEurj/7ZX89DU+h Tjhg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nof9wYyi; 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-42bb6f8c693sor6906845e9.0.2024.09.03.08.32.00 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 03 Sep 2024 08:32:00 -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:1e19:b0:426:641f:25e2 with SMTP id 5b1f17b1804b1-42c8810315dmr30642605e9.25.1725377519470; Tue, 03 Sep 2024 08:31:59 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.42.65]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42baf1b0c18sm192963055e9.37.2024.09.03.08.31.58 for <linux-amarula@amarulasolutions.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 08:31:59 -0700 (PDT) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-amarula@amarulasolutions.com Subject: [PATCH 01/10] pmdomain: core: fix "sd_count" field setting Date: Tue, 3 Sep 2024 17:31:48 +0200 Message-ID: <20240903153157.918185-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=nof9wYyi; 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(-)