Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3531343pxv; Sun, 4 Jul 2021 22:45:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXw2hCgPBKlbDd/azWv5uYjNGYqYs6MLqApK/z78Ie+8jbrkndmfixsfmZAhLmLQrkQLZm X-Received: by 2002:a17:906:5d13:: with SMTP id g19mr12102083ejt.90.1625463904561; Sun, 04 Jul 2021 22:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625463904; cv=none; d=google.com; s=arc-20160816; b=qTFH4D8E35zaNn3LQRinAOjrwl1cAyk55CMXaRyF4YGs9kRfJR5GWo5uu6bMTSbcG+ zMlPiqshPoTPWxylM3xiMGcaghl9b07hES12XbkXPgIERdrl0c66ZSJCxq+GYU41HPRm Iq43bLqJGqCkLgvCIEzvzw1CAY0uVFaaMNrDkMqtGAXZdrkEA5VzZqqhV/qbV6Yy+Cgp MhkM0sgMY3OxoxLSVORaQVc8AjroSVCfwX0iiTNrLxKgf1FywdZ1pqozFvK7pj62mxDn 4u49aSQivHKp7TifKfROpE5jNUnArvbibMHL31zfFgvOv6Opjkx1ozUGdcrnN32OuRhD ttwQ== 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=kSgs5mHQ2g/LXpWFb2W3ZE70/sEiA5N7FVEo4Dixs+w=; b=PBxCltGjY1L3deKIagssdrfssWdld4Y0H8B0BzXogGDz0FxHY2dFQgY+JOXtwlV1Hv zSvcIxz3u2gZGe1vu5yUdKSJo20ZwRbRKU3J/0WyHKMd4K7X64sFNdObjmYmOPNo2pp4 q3e4V/LiZ6yPdwrB7VW5y1K/eeYHXT80s7uwsGQ+zUu9uyupbCnzoCX2jdOt7no7cYpk dTHF9NwforlxGl+wmdAONy24gYD2cM8bg3SIv2i8t4RDJCBE40fqmLHWTVPXTFudpbmM MlSfgu1DovGyuot7JV38wKkyWLWegwV4tOKm1z7UWvvdMjfYdd043LN8I85rT6in5Kkc NZDg== 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 j23si13048320eje.501.2021.07.04.22.44.41; Sun, 04 Jul 2021 22:45:04 -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 S229950AbhGEFoL (ORCPT + 99 others); Mon, 5 Jul 2021 01:44:11 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:38256 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229910AbhGEFoJ (ORCPT ); Mon, 5 Jul 2021 01:44:09 -0400 X-UUID: d04dc38a1cb2412597dbc2c753de1374-20210705 X-UUID: d04dc38a1cb2412597dbc2c753de1374-20210705 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2067313722; Mon, 05 Jul 2021 13:41:30 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 5 Jul 2021 13:41:29 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 5 Jul 2021 13:41:29 +0800 From: Chun-Jie Chen To: Enric Balletbo i Serra , Matthias Brugger , Nicolas Boichat , Rob Herring CC: , , , , , , Chun-Jie Chen Subject: [v3 4/5] soc: mediatek: pm-domains: Add wakeup capacity support in power domain Date: Mon, 5 Jul 2021 13:41:10 +0800 Message-ID: <20210705054111.4473-5-chun-jie.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210705054111.4473-1-chun-jie.chen@mediatek.com> References: <20210705054111.4473-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. Signed-off-by: Chun-Jie Chen --- 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 12552c9996ac..d705860b47a7 100644 --- a/drivers/soc/mediatek/mtk-pm-domains.c +++ b/drivers/soc/mediatek/mtk-pm-domains.c @@ -447,6 +447,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