Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1699862pxb; Mon, 23 Aug 2021 02:26:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoZuk0gU0l4JaCfU5baH7DsI3YebvwRMNflctbl+WvQqPaSVSgFJxFOQltOs7BysAacrR5 X-Received: by 2002:a05:6402:2925:: with SMTP id ee37mr1470018edb.264.1629710773457; Mon, 23 Aug 2021 02:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629710773; cv=none; d=google.com; s=arc-20160816; b=Xp98ZpWXI2X91UpPN9SxWNpHSAQo24dl8zRm3nsRh+e7CxKTviSYtamjatHOXJHoL0 YHUSn3/id+EyVWdLwdmN4t5t4poXUEaJafnQRfCHB3ht3FOgqptglPccrYw+EIWEv7pr E+vgA5v2N0KOmEGw1rZtIp6diZfdfqLjMbYdwPAYWZ5KZFuOCzIsHgLZ1h3J2FUS9HvX iAjAHfgPpYdiTH5zXwEg9cAhpRkgNUxTTS4wbezmmY+xmmm+9J62NrNEzA+RMUew+IR8 o99v+tYUb6+OptHzaEpK+2ObqREy5i4K4WNcIGirS1+CWM4rLdmt0bNyauAK6Py4sA8L thfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=/fphMNKUfZ00kDvFw3qyVBNpaSSwH1MlBMDMcYj/Nt4=; b=ci4TkLPcDEpnd/a8W93bccVwX/94ankvToNVbGdGmUVPZnwVvqlLtMe0ug6wjAiWD2 KTnyaSQDS+d1Ne09Ev6LEm11vQLPmebx+FnptkZM6vnIZGftgFwvcsGSsFlAITN2FSIq LHo9wXLNr67ZWQfx+m1xuzSqJV2M9nhw24xewDSnRU0QmyNLOTgpRkhLXHM/qtuMawli 1zYYBNQ3Eqpkj1FF71RBkIDT9GQJpDM2IUvzY3NB4AUQR7lmg2LGgyH0cuuI22K/ej7e PL4/hy7S9UoifHYPkMPs/j0bNw7A5bv0XSND+MjEsJ21qhIjGSqBWBYYPgCUPZha5TL8 KTeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ak17si3840656ejc.338.2021.08.23.02.25.50; Mon, 23 Aug 2021 02:26:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235840AbhHWJZF (ORCPT + 99 others); Mon, 23 Aug 2021 05:25:05 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:57656 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S235699AbhHWJZF (ORCPT ); Mon, 23 Aug 2021 05:25:05 -0400 X-UUID: e5c33a6374e44a6d818a5fc0cfa5537b-20210823 X-UUID: e5c33a6374e44a6d818a5fc0cfa5537b-20210823 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1299049334; Mon, 23 Aug 2021 17:24:18 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 23 Aug 2021 17:24:16 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 23 Aug 2021 17:24:16 +0800 From: Chun-Jie Chen To: Enric Balletbo Serra , Matthias Brugger , Nicolas Boichat , Rob Herring CC: , , , , , , Chun-Jie Chen Subject: [v4 2/5] soc: mediatek: pm-domains: Add wakeup capacity support in power domain Date: Mon, 23 Aug 2021 17:23:50 +0800 Message-ID: <20210823092353.3502-3-chun-jie.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210823092353.3502-1-chun-jie.chen@mediatek.com> References: <20210823092353.3502-1-chun-jie.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Due to some power domain needs to keep on for wakeup in system suspend, so add GENPD_FLAG_ACTIVE_WAKEUP support in Mediatek power domain driver. Fixes: 59b644b01cf4 ("soc: mediatek: Add MediaTek SCPSYS power domains") Signed-off-by: Chun-Jie Chen Reviewed-by: Chen-Yu Tsai --- drivers/soc/mediatek/mtk-pm-domains.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soc/mediatek/mtk-pm-domains.c b/drivers/soc/mediatek/mtk-pm-domains.c index b762bc40f56b..afd2fd74802d 100644 --- a/drivers/soc/mediatek/mtk-pm-domains.c +++ b/drivers/soc/mediatek/mtk-pm-domains.c @@ -443,6 +443,9 @@ generic_pm_domain *scpsys_add_one_domain(struct scpsys *scpsys, struct device_no pd->genpd.power_off = scpsys_power_off; pd->genpd.power_on = scpsys_power_on; + if (MTK_SCPD_CAPS(pd, MTK_SCPD_ACTIVE_WAKEUP)) + pd->genpd.flags |= GENPD_FLAG_ACTIVE_WAKEUP; + if (MTK_SCPD_CAPS(pd, MTK_SCPD_KEEP_DEFAULT_OFF)) pm_genpd_init(&pd->genpd, NULL, true); else -- 2.18.0