Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1699840pxb; Mon, 13 Sep 2021 03:37:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxB7It6FzVbfBELH5o6aNjggwsmYq0e1+By/Hu4fu7kGmQ4xs38n62FoAxcYUdkDRCHP7PU X-Received: by 2002:a05:6638:25d3:: with SMTP id u19mr6524172jat.78.1631529451946; Mon, 13 Sep 2021 03:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631529451; cv=none; d=google.com; s=arc-20160816; b=Qq00epTHW4WHIbNKkMLA8wKQR3xA+PrWftkqbf5jN/YwxZUPv1n7leXl4b/8qhk/9K FoEKL6X1iOzo0rjbDwZ6gkW8XMb1O1MdlJGMI8cwmXygQ/QZO54MsSHb5QxGkh5i0FxQ M3oxb5Ox55LlKpIY6bj1A04xjmKemDIuKjqtb5fkYwJ3tkmG84nqWxIFUP/i2J8GSYtH NCu2tbg9Rvsx9niLdGT613gR2m3YHJpNUI0WledIn1YpwVjt3KDfD2PCCWs/X5EMAgz3 gqROmbzNk14tM6Fi3A6f6xot3wFRwfKp5CEgXPugtog9ORbW5mAWx5J62zvSrYR+fd95 pYBw== 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=dpSNYVr+5l1LOQ0BuxBWPlESV8eMfp/ZlrmbplY4aAo=; b=J5sLQaZdpBmUZcGxEeKJv0a0L62b+I4ouD4MFdOkr1xtfFZVK9Wkdi2rvlQyzdnq+p 75Gxf9RjKteLzWoebF1TrPujAoaMyoY8T9BESh0xoMzBbKP7U9XRl7x2e6UEbHIdin5k s4ck7Xnmz0oMsSs/pboKD44O3ZL5rmKbBwssRI0GLqZuQkyaBqd91/Ybvmbtx04c/R9r JChP9HpVG3gmvXWY7SWzekh2ypT2UJh9/UBgX3UD0kbppzL8BayZp/b/O8lvx1YEEHIr P+2r/f/xM52pHU7u/jhzZBE6LXD4NT5ZmGY6GpmLVDtCigSW7XyDCW2yC0b5lIydqP4F jDIw== 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 a4si6515454ilm.68.2021.09.13.03.37.20; Mon, 13 Sep 2021 03:37:31 -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 S238998AbhIMKYO (ORCPT + 99 others); Mon, 13 Sep 2021 06:24:14 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:42698 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S238996AbhIMKYN (ORCPT ); Mon, 13 Sep 2021 06:24:13 -0400 X-UUID: d5ea74ea0f9d4d139d97b81e336bdda2-20210913 X-UUID: d5ea74ea0f9d4d139d97b81e336bdda2-20210913 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1912224204; Mon, 13 Sep 2021 18:22:54 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 13 Sep 2021 18:22:52 +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, 13 Sep 2021 18:22:53 +0800 From: Chun-Jie Chen To: Enric Balletbo Serra , Matthias Brugger , Nicolas Boichat , Rob Herring CC: , , , , , , Chun-Jie Chen Subject: [v5 2/5] soc: mediatek: pm-domains: Add wakeup capacity support in power domain Date: Mon, 13 Sep 2021 18:22:29 +0800 Message-ID: <20210913102232.26344-3-chun-jie.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210913102232.26344-1-chun-jie.chen@mediatek.com> References: <20210913102232.26344-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 --- no change --- 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