From patchwork Mon Sep 21 22:21:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 11791235 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 82E8A139A for ; Mon, 21 Sep 2020 22:23:12 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4EF7523A62 for ; Mon, 21 Sep 2020 22:23:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YVQWNHhX"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="ijGeb349" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4EF7523A62 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=j9smsxy8J6AgxwCrPuPuLBlXnAKkAKC6qaC/BotDQzg=; b=YVQWNHhXjstCPhnI4sYIeQ/NSf mbfaHrMzMmvU4yqlyh6asuIwGnCdqfj/OozRTFfrt422+DlzOykooxWwmsXeHb+m1iCq3XW44Xehh RNkR4lacj3986al2GjVnMPPraT5nwMiOpeUH+5sHxnOvrdqkKJ8xUL9jrpWUHi8B5pJIT29rebwQ8 /vaFsuH77I0+bFVuH39d/gcUlWfNhJ89vzh1KqTTNxWuVZA0fkjKF7U2XvcFuBXuziuQQlkNUw4O1 zcJrMWqYCm2oAQ2rc6tNVThn1MBslVHn1P0FcgcQrGHLTjHHokUdES6RrPTL0xpr2oWgFlLFNfEvF sOKj/TjA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKUBt-0000B8-Ln; Mon, 21 Sep 2020 22:21:45 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKUBm-00009D-Fa for linux-arm-kernel@lists.infradead.org; Mon, 21 Sep 2020 22:21:40 +0000 Received: by mail-pg1-x541.google.com with SMTP id y1so10251365pgk.8 for ; Mon, 21 Sep 2020 15:21:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ykwjXB6WdjqJ2Er4PKprTUmmzZunM3e7B0bH3KcPPYs=; b=ijGeb349Qylq0i1CgeSHKT0hJkZZZS4KfX+SHA9IbLTBpxC4tuvuLiBnQyINbOYbJb mqewvppe7FDvprL48bpBq1vGPfNsHLCpxfM3uDKvA5ztJu/S4Z5PjJS+vvw5ZkZkAiNz 4VutBFDVPUNzmOpuWtWYRLBiEQa7P6hQVqKUOtxpipGXFKPkWu/ht11hhznG7MzFRQk9 qHkr7JMtFdg3AD9ggcDvwecWVCKAmv17WjsaqXGxKjnYIgl20Y5lOYlTzLCwZw3AADux YBvS5oWMd1rBakS144aLK2tIu7FXHOyKsL97TNRo2dr/Fy/u1rSKJkhQqdRq8BRd5asZ cNNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ykwjXB6WdjqJ2Er4PKprTUmmzZunM3e7B0bH3KcPPYs=; b=o70vohtmJtmgeyWwRqs5Gebg+JKAFfFFfPT+I33k1SkiW5lq2LACKqrvvKfJw/ONV+ 84BCMtElKKJS9IcYq+5Y4JeIK1+VhPSIGo7TichX6FT3O0ubDZfwmyIA68vVlznwVaKP l5TR7H1m0G0YUdbloKhoLX+OgYrMSwEd8NnjoiJWRqrqeowM6H4WBmBbaZU0sVvCr8s/ QI/ngW+XJjEiN7nFz4OTkRJZMyIflwdS0J6kAt9LhnIf1LU4XoVKumTh7F6OLqbadLLl nCwELi6h4iVWmUhq3hJ2cmt6aAgDsauvswGrZ4CkU3LCwU00abHjRfBfJhFQJ96pDwcz 8TZA== X-Gm-Message-State: AOAM530hjlmC5e//lVr2xkgVJvx3X4KRTbREDAGTld/YDQRSnwbmUz2e 52O5sd+a9Pqze5xuFtVLdoplmw== X-Google-Smtp-Source: ABdhPJwDM3/meWjbdyVZyiUxFW3WwB1EdEPWDYHuApqSJlshXSM5afAB66ItHRM/P+f3aHb4b4ETbg== X-Received: by 2002:a63:778d:: with SMTP id s135mr1300542pgc.219.1600726896256; Mon, 21 Sep 2020 15:21:36 -0700 (PDT) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id x5sm11834198pgf.65.2020.09.21.15.21.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Sep 2020 15:21:35 -0700 (PDT) From: Kevin Hilman To: linux-amlogic@lists.infradead.org Subject: [PATCH] soc: amlogic: pm-domains: use always-on flag Date: Mon, 21 Sep 2020 15:21:35 -0700 Message-Id: <20200921222135.7145-1-khilman@baylibre.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200921_182138_628660_D988CBB4 X-CRM114-Status: GOOD ( 13.64 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:541 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Rather than use a governor to keep these domains always-on, instead use the flag GENPD_FLAG_ALWAYS_ON. This has the same effect, but with much lower overhead since the governor path is not used at all. Signed-off-by: Kevin Hilman Acked-by: Neil Armstrong --- drivers/soc/amlogic/meson-ee-pwrc.c | 4 ++-- drivers/soc/amlogic/meson-gx-pwrc-vpu.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/soc/amlogic/meson-ee-pwrc.c b/drivers/soc/amlogic/meson-ee-pwrc.c index 43665b77aa9e..a8f18bb17491 100644 --- a/drivers/soc/amlogic/meson-ee-pwrc.c +++ b/drivers/soc/amlogic/meson-ee-pwrc.c @@ -433,8 +433,8 @@ static int meson_ee_pwrc_init_domain(struct platform_device *pdev, if (ret) return ret; - ret = pm_genpd_init(&dom->base, &pm_domain_always_on_gov, - false); + dom->base.flags = GENPD_FLAG_ALWAYS_ON; + ret = pm_genpd_init(&dom->base, NULL, false); if (ret) return ret; } else { diff --git a/drivers/soc/amlogic/meson-gx-pwrc-vpu.c b/drivers/soc/amlogic/meson-gx-pwrc-vpu.c index 511b6856225d..21b4bc811c00 100644 --- a/drivers/soc/amlogic/meson-gx-pwrc-vpu.c +++ b/drivers/soc/amlogic/meson-gx-pwrc-vpu.c @@ -339,8 +339,8 @@ static int meson_gx_pwrc_vpu_probe(struct platform_device *pdev) return ret; } - pm_genpd_init(&vpu_pd->genpd, &pm_domain_always_on_gov, - powered_off); + vpu_pd->genpd.flags = GENPD_FLAG_ALWAYS_ON; + pm_genpd_init(&vpu_pd->genpd, NULL, powered_off); return of_genpd_add_provider_simple(pdev->dev.of_node, &vpu_pd->genpd);