Received: by 10.192.165.148 with SMTP id m20csp502951imm; Fri, 27 Apr 2018 02:45:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoj8SqM6hti6vsOwyccs6DCt3+olev/oBEF9td8WOfsVBtBIbKIj6uEPZ9SBRHQcUWanvld X-Received: by 2002:a17:902:6bc1:: with SMTP id m1-v6mr1649812plt.91.1524822347215; Fri, 27 Apr 2018 02:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524822347; cv=none; d=google.com; s=arc-20160816; b=XjJAoLCvv1zpwxrwNQIgjLT+7EUEdnsLQb5vHmnu4GmL8fxMe5jWkvzEu0h6WL0Q1H BWVEWRvTmETOBj1jdCanuYI+JSTZE/Px2oIXZq5QPpuiXBvF7w5CIuwnvTrursD+vtUZ 18TdLszjIzGw27AjEUXPDnwaMQEP5cB/QgnlFmbu8uUkGrm366RpMkmpegT7bql+Zz5D 2GxMehEdsGfYSoIZfjk6Zo42XlXIDRV2vEH5skJWF0qQ1oBeadv8Wcvj/WhctB09B5tu qF3aeJryzJPHdStlS/mG/8w9pJpJvuwy4piiyfXKZfZEuXQrmYY76DCbcQj3X/DyWG7n eFxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=uREaKiXbG92QzDta5Nc1N+f/qtx2XI7o1te6mK1r3Yw=; b=UtBCmJkj747xuVU7gQyl7HixOr+XNuLeMuxUWhKcqX3SY8nMhzfKXiSyGJ2XgeMOyg jLyD5+Dusi8E+/eTn+4yCUEyh7lEChnrurvOrsMbPl0Jp7Bq5VnZfkFWrANlGqjVstU1 Qsq5Yke/AMNv/Rgq5t6NaH0JnIlNDtl81z//WTp1uKRfENioYHlECU9GbwBVUGgF4uId JS8bM2IEuucKXUCOIZbrcw2VodEQEOsSba1tI1bQUuq2gFAqDL34wtPHLtkdAjS1nmob dJ+xLiAerttkbgfA9Gb3/qsQJacbat+v8/P0cYOP8bt9BYwq+pR08xBsMapkA+qD9TMf 05jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fDrw6xBw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3-v6si913862pln.42.2018.04.27.02.45.33; Fri, 27 Apr 2018 02:45:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fDrw6xBw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932631AbeD0JoA (ORCPT + 99 others); Fri, 27 Apr 2018 05:44:00 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:50792 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932411AbeD0Jn5 (ORCPT ); Fri, 27 Apr 2018 05:43:57 -0400 Received: by mail-wm0-f67.google.com with SMTP id t11so1604911wmt.0; Fri, 27 Apr 2018 02:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=uREaKiXbG92QzDta5Nc1N+f/qtx2XI7o1te6mK1r3Yw=; b=fDrw6xBwpfbjIfiET6ZgmI4tGBkeoaOj7KGofn/Mh4IYMeTSJSbaJr8UlwwDYcQl1t wblpOa/OerX1tLlshwBkmmMhVsjcZhFM2d9RKbIRW97hNqsfnmFWQP35iwjMqG42bX2q D96TnUAb93FbXrUvqeyC1jjiMfGJKfqptuA8FHsAQujCqMnOWW9kTyxYlhGMHcKfy95y IYuEDPooUBscEM3+k+W/brQnsfJe8b/y1o5jgsu1PZmKAhcnUJsFl6V9eHdg75PZp4DY 9bq1HJvOgsThem9Bk/FS48OURVFKLWfj2wcGuCBMKNwko3BLzAlNBBK6dAqAR8AGw7bN j7cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=uREaKiXbG92QzDta5Nc1N+f/qtx2XI7o1te6mK1r3Yw=; b=bBsvDkVGtCKaCTOJ7CwyHlA7+RyOYp2q9F5vj9rumdP+sEtt9ibPI3zcI2EI1i1vJ6 UON86arnxZc8YoHBY0nK1IrzFQvvQb5OjCW3XtBi+osp6hhmBXjdtl466NxzsVYJSeeD 1HKd9OoaQYWiOoQIla7Ta68DXr6tfgR+BAf1c2fXzSaUX28fnpACZJwzIGHP6g2/aELe 7QtKuMCVjzrvv18s2FfiX+XYg4cNYM7XNMWyNWnZtQvfmtT6GUam+b3sc9/8X8tNqkya bZLyL5hwlPlYjw4Sa1flr28VlZWH6XDwD2cBPsmW/nvcD01jGqamDyNSvMAVpBWyFf7z yT9A== X-Gm-Message-State: ALQs6tDR52045DIctOr5/o+GMzaYLXCHDWeoKKZLA572bqroe0jU7xeY q1Lp22oiegp+QbXua31CdvLiWwqV X-Received: by 2002:a50:81e3:: with SMTP id 90-v6mr2519204ede.252.1524822235410; Fri, 27 Apr 2018 02:43:55 -0700 (PDT) Received: from ziggy.stardust ([37.223.140.222]) by smtp.gmail.com with ESMTPSA id w1-v6sm693141edk.82.2018.04.27.02.43.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Apr 2018 02:43:54 -0700 (PDT) Subject: Re: [PATCH v2 1/2] soc: mediatek: introduce a CAPS flag for scp_domain_data To: sean.wang@mediatek.com, rjw@rjwysocki.net, khilman@baylibre.com Cc: ulf.hansson@linaro.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <2e16481e1477dfae0cfb24568d8111da81d92628.1524472331.git.sean.wang@mediatek.com> From: Matthias Brugger Openpgp: preference=signencrypt Autocrypt: addr=matthias.bgg@gmail.com; prefer-encrypt=mutual; keydata= xsFNBFP1zgUBEAC21D6hk7//0kOmsUrE3eZ55kjc9DmFPKIz6l4NggqwQjBNRHIMh04BbCMY fL3eT7ZsYV5nur7zctmJ+vbszoOASXUpfq8M+S5hU2w7sBaVk5rpH9yW8CUWz2+ZpQXPJcFa OhLZuSKB1F5JcvLbETRjNzNU7B3TdS2+zkgQQdEyt7Ij2HXGLJ2w+yG2GuR9/iyCJRf10Okq gTh//XESJZ8S6KlOWbLXRE+yfkKDXQx2Jr1XuVvM3zPqH5FMg8reRVFsQ+vI0b+OlyekT/Xe 0Hwvqkev95GG6x7yseJwI+2ydDH6M5O7fPKFW5mzAdDE2g/K9B4e2tYK6/rA7Fq4cqiAw1+u EgO44+eFgv082xtBez5WNkGn18vtw0LW3ESmKh19u6kEGoi0WZwslCNaGFrS4M7OH+aOJeqK fx5dIv2CEbxc6xnHY7dwkcHikTA4QdbdFeUSuj4YhIZ+0QlDVtS1QEXyvZbZky7ur9rHkZvP ZqlUsLJ2nOqsmahMTIQ8Mgx9SLEShWqD4kOF4zNfPJsgEMB49KbS2o9jxbGB+JKupjNddfxZ HlH1KF8QwCMZEYaTNogrVazuEJzx6JdRpR3sFda/0x5q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3LUQNILLBNxkSrhCLl8dUg53IbHx4NfIAgqxLWGf XM8DY1aFdU79pac005PuhxCWkKTJz3gCmznnoat4GCnL5gy/m0Qk45l4PFqwWXVLo9AQg2Kp 3mlIFZ6fsEKIAN5hxlbNvNb9V2Zo5bFZjPWPFTxOteM0omUAS+QopwU0yPLLGJVf2iCmItHc UXI+r2JwH1CJjrHWeQEI2ucSKsNa8FllDmG/fQ== Message-ID: Date: Fri, 27 Apr 2018 11:43:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <2e16481e1477dfae0cfb24568d8111da81d92628.1524472331.git.sean.wang@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/23/2018 10:36 AM, sean.wang@mediatek.com wrote: > From: Sean Wang > > Instead of adding more and more fields to scp_domain_data which get > checked in the code flow, add a caps field used for an indication the > characteristics for each SCP domain. > > At present, type u8 for the caps field is selected which can satisfy the > current situation and doesn't take up extra space against type bool > previously used. > > Suggested-by: Matthias Brugger > Signed-off-by: Sean Wang > --- > drivers/soc/mediatek/mtk-scpsys.c | 65 ++++++++++++++++++++------------------- > 1 file changed, 34 insertions(+), 31 deletions(-) pushed to v4.17-next/soc Thanks. > > diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c > index f140e71..b1b45e4 100644 > --- a/drivers/soc/mediatek/mtk-scpsys.c > +++ b/drivers/soc/mediatek/mtk-scpsys.c > @@ -31,6 +31,9 @@ > #define MTK_POLL_DELAY_US 10 > #define MTK_POLL_TIMEOUT (jiffies_to_usecs(HZ)) > > +#define MTK_SCPD_ACTIVE_WAKEUP BIT(0) > +#define MTK_SCPD_CAPS(_scpd, _x) ((_scpd)->data->caps & (_x)) > + > #define SPM_VDE_PWR_CON 0x0210 > #define SPM_MFG_PWR_CON 0x0214 > #define SPM_VEN_PWR_CON 0x0230 > @@ -120,7 +123,7 @@ struct scp_domain_data { > u32 sram_pdn_ack_bits; > u32 bus_prot_mask; > enum clk_id clk_id[MAX_CLKS]; > - bool active_wakeup; > + u8 caps; > }; > > struct scp; > @@ -424,7 +427,7 @@ static struct scp *init_scp(struct platform_device *pdev, > genpd->name = data->name; > genpd->power_off = scpsys_power_off; > genpd->power_on = scpsys_power_on; > - if (scpd->data->active_wakeup) > + if (MTK_SCPD_CAPS(scpd, MTK_SCPD_ACTIVE_WAKEUP)) > genpd->flags |= GENPD_FLAG_ACTIVE_WAKEUP; > } > > @@ -477,7 +480,7 @@ static const struct scp_domain_data scp_domain_data_mt2701[] = { > .bus_prot_mask = MT2701_TOP_AXI_PROT_EN_CONN_M | > MT2701_TOP_AXI_PROT_EN_CONN_S, > .clk_id = {CLK_NONE}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2701_POWER_DOMAIN_DISP] = { > .name = "disp", > @@ -486,7 +489,7 @@ static const struct scp_domain_data scp_domain_data_mt2701[] = { > .sram_pdn_bits = GENMASK(11, 8), > .clk_id = {CLK_MM}, > .bus_prot_mask = MT2701_TOP_AXI_PROT_EN_MM_M0, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2701_POWER_DOMAIN_MFG] = { > .name = "mfg", > @@ -495,7 +498,7 @@ static const struct scp_domain_data scp_domain_data_mt2701[] = { > .sram_pdn_bits = GENMASK(11, 8), > .sram_pdn_ack_bits = GENMASK(12, 12), > .clk_id = {CLK_MFG}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2701_POWER_DOMAIN_VDEC] = { > .name = "vdec", > @@ -504,7 +507,7 @@ static const struct scp_domain_data scp_domain_data_mt2701[] = { > .sram_pdn_bits = GENMASK(11, 8), > .sram_pdn_ack_bits = GENMASK(12, 12), > .clk_id = {CLK_MM}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2701_POWER_DOMAIN_ISP] = { > .name = "isp", > @@ -513,7 +516,7 @@ static const struct scp_domain_data scp_domain_data_mt2701[] = { > .sram_pdn_bits = GENMASK(11, 8), > .sram_pdn_ack_bits = GENMASK(13, 12), > .clk_id = {CLK_MM}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2701_POWER_DOMAIN_BDP] = { > .name = "bdp", > @@ -521,7 +524,7 @@ static const struct scp_domain_data scp_domain_data_mt2701[] = { > .ctl_offs = SPM_BDP_PWR_CON, > .sram_pdn_bits = GENMASK(11, 8), > .clk_id = {CLK_NONE}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2701_POWER_DOMAIN_ETH] = { > .name = "eth", > @@ -530,7 +533,7 @@ static const struct scp_domain_data scp_domain_data_mt2701[] = { > .sram_pdn_bits = GENMASK(11, 8), > .sram_pdn_ack_bits = GENMASK(15, 12), > .clk_id = {CLK_ETHIF}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2701_POWER_DOMAIN_HIF] = { > .name = "hif", > @@ -539,14 +542,14 @@ static const struct scp_domain_data scp_domain_data_mt2701[] = { > .sram_pdn_bits = GENMASK(11, 8), > .sram_pdn_ack_bits = GENMASK(15, 12), > .clk_id = {CLK_ETHIF}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2701_POWER_DOMAIN_IFR_MSC] = { > .name = "ifr_msc", > .sta_mask = PWR_STATUS_IFR_MSC, > .ctl_offs = SPM_IFR_MSC_PWR_CON, > .clk_id = {CLK_NONE}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > }; > > @@ -561,7 +564,7 @@ static const struct scp_domain_data scp_domain_data_mt2712[] = { > .sram_pdn_bits = GENMASK(8, 8), > .sram_pdn_ack_bits = GENMASK(12, 12), > .clk_id = {CLK_MM}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2712_POWER_DOMAIN_VDEC] = { > .name = "vdec", > @@ -570,7 +573,7 @@ static const struct scp_domain_data scp_domain_data_mt2712[] = { > .sram_pdn_bits = GENMASK(8, 8), > .sram_pdn_ack_bits = GENMASK(12, 12), > .clk_id = {CLK_MM, CLK_VDEC}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2712_POWER_DOMAIN_VENC] = { > .name = "venc", > @@ -579,7 +582,7 @@ static const struct scp_domain_data scp_domain_data_mt2712[] = { > .sram_pdn_bits = GENMASK(11, 8), > .sram_pdn_ack_bits = GENMASK(15, 12), > .clk_id = {CLK_MM, CLK_VENC, CLK_JPGDEC}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2712_POWER_DOMAIN_ISP] = { > .name = "isp", > @@ -588,7 +591,7 @@ static const struct scp_domain_data scp_domain_data_mt2712[] = { > .sram_pdn_bits = GENMASK(11, 8), > .sram_pdn_ack_bits = GENMASK(13, 12), > .clk_id = {CLK_MM}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2712_POWER_DOMAIN_AUDIO] = { > .name = "audio", > @@ -597,7 +600,7 @@ static const struct scp_domain_data scp_domain_data_mt2712[] = { > .sram_pdn_bits = GENMASK(11, 8), > .sram_pdn_ack_bits = GENMASK(15, 12), > .clk_id = {CLK_AUDIO}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2712_POWER_DOMAIN_USB] = { > .name = "usb", > @@ -606,7 +609,7 @@ static const struct scp_domain_data scp_domain_data_mt2712[] = { > .sram_pdn_bits = GENMASK(10, 8), > .sram_pdn_ack_bits = GENMASK(14, 12), > .clk_id = {CLK_NONE}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2712_POWER_DOMAIN_USB2] = { > .name = "usb2", > @@ -615,7 +618,7 @@ static const struct scp_domain_data scp_domain_data_mt2712[] = { > .sram_pdn_bits = GENMASK(10, 8), > .sram_pdn_ack_bits = GENMASK(14, 12), > .clk_id = {CLK_NONE}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2712_POWER_DOMAIN_MFG] = { > .name = "mfg", > @@ -625,7 +628,7 @@ static const struct scp_domain_data scp_domain_data_mt2712[] = { > .sram_pdn_ack_bits = GENMASK(16, 16), > .clk_id = {CLK_MFG}, > .bus_prot_mask = BIT(14) | BIT(21) | BIT(23), > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2712_POWER_DOMAIN_MFG_SC1] = { > .name = "mfg_sc1", > @@ -634,7 +637,7 @@ static const struct scp_domain_data scp_domain_data_mt2712[] = { > .sram_pdn_bits = GENMASK(8, 8), > .sram_pdn_ack_bits = GENMASK(16, 16), > .clk_id = {CLK_NONE}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2712_POWER_DOMAIN_MFG_SC2] = { > .name = "mfg_sc2", > @@ -643,7 +646,7 @@ static const struct scp_domain_data scp_domain_data_mt2712[] = { > .sram_pdn_bits = GENMASK(8, 8), > .sram_pdn_ack_bits = GENMASK(16, 16), > .clk_id = {CLK_NONE}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT2712_POWER_DOMAIN_MFG_SC3] = { > .name = "mfg_sc3", > @@ -652,7 +655,7 @@ static const struct scp_domain_data scp_domain_data_mt2712[] = { > .sram_pdn_bits = GENMASK(8, 8), > .sram_pdn_ack_bits = GENMASK(16, 16), > .clk_id = {CLK_NONE}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > }; > > @@ -752,7 +755,7 @@ static const struct scp_domain_data scp_domain_data_mt7622[] = { > .sram_pdn_ack_bits = GENMASK(15, 12), > .clk_id = {CLK_NONE}, > .bus_prot_mask = MT7622_TOP_AXI_PROT_EN_ETHSYS, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT7622_POWER_DOMAIN_HIF0] = { > .name = "hif0", > @@ -762,7 +765,7 @@ static const struct scp_domain_data scp_domain_data_mt7622[] = { > .sram_pdn_ack_bits = GENMASK(15, 12), > .clk_id = {CLK_HIFSEL}, > .bus_prot_mask = MT7622_TOP_AXI_PROT_EN_HIF0, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT7622_POWER_DOMAIN_HIF1] = { > .name = "hif1", > @@ -772,7 +775,7 @@ static const struct scp_domain_data scp_domain_data_mt7622[] = { > .sram_pdn_ack_bits = GENMASK(15, 12), > .clk_id = {CLK_HIFSEL}, > .bus_prot_mask = MT7622_TOP_AXI_PROT_EN_HIF1, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT7622_POWER_DOMAIN_WB] = { > .name = "wb", > @@ -782,7 +785,7 @@ static const struct scp_domain_data scp_domain_data_mt7622[] = { > .sram_pdn_ack_bits = 0, > .clk_id = {CLK_NONE}, > .bus_prot_mask = MT7622_TOP_AXI_PROT_EN_WB, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > }; > > @@ -798,7 +801,7 @@ static const struct scp_domain_data scp_domain_data_mt7623a[] = { > .bus_prot_mask = MT2701_TOP_AXI_PROT_EN_CONN_M | > MT2701_TOP_AXI_PROT_EN_CONN_S, > .clk_id = {CLK_NONE}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT7623A_POWER_DOMAIN_ETH] = { > .name = "eth", > @@ -807,7 +810,7 @@ static const struct scp_domain_data scp_domain_data_mt7623a[] = { > .sram_pdn_bits = GENMASK(11, 8), > .sram_pdn_ack_bits = GENMASK(15, 12), > .clk_id = {CLK_ETHIF}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT7623A_POWER_DOMAIN_HIF] = { > .name = "hif", > @@ -816,14 +819,14 @@ static const struct scp_domain_data scp_domain_data_mt7623a[] = { > .sram_pdn_bits = GENMASK(11, 8), > .sram_pdn_ack_bits = GENMASK(15, 12), > .clk_id = {CLK_ETHIF}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT7623A_POWER_DOMAIN_IFR_MSC] = { > .name = "ifr_msc", > .sta_mask = PWR_STATUS_IFR_MSC, > .ctl_offs = SPM_IFR_MSC_PWR_CON, > .clk_id = {CLK_NONE}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > }; > > @@ -889,7 +892,7 @@ static const struct scp_domain_data scp_domain_data_mt8173[] = { > .sram_pdn_bits = GENMASK(11, 8), > .sram_pdn_ack_bits = GENMASK(15, 12), > .clk_id = {CLK_NONE}, > - .active_wakeup = true, > + .caps = MTK_SCPD_ACTIVE_WAKEUP, > }, > [MT8173_POWER_DOMAIN_MFG_ASYNC] = { > .name = "mfg_async", >