Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp270578pxb; Wed, 25 Aug 2021 02:51:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzM8RcTC0xHqiTNfNHfrR2Ja6OOhJas+rgpEmwbBQriGNjzYkWD6KIv2ZIfVlfIFFwFphNw X-Received: by 2002:a17:906:a404:: with SMTP id l4mr3078092ejz.277.1629885098348; Wed, 25 Aug 2021 02:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629885098; cv=none; d=google.com; s=arc-20160816; b=DyUEhsHAgwvL91/kvQVpZbqE3Qomzv+mnO16e90K0SeoeAKu0b0TlAxPT+3Z0/Jytq Tpi09jq8rJ89OeN7yR4aoA9u9CbdR68u3HUEQuuXcB4OIT1JefE8PRVDfdlEhJjHCGlV sUqJueyhSBRn1U0QATeCrUrFeq+B4SL8bcA7k3JeCS/+xZ6XOLu7jpVVNt9kIaq5Fv5M TZtCpd6qCF+unF8363245CiL/6C9GXxc/6nWbaZyLfEdYrm3HZnPrkibmN2oPdoVQBiy ArWhQV5T565PRUb5WHXuvZLKUlJzDvNsnOWewpNL0m+CNQjbvO6+Rkus5gRoWaMUAHzs 1BYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5cuOQSj7FEmEiodbWnKOyd6RMZP8iRN6RZOahPYho1k=; b=u7ufbrkBfaTZG5aa+6CSVX2i/me3PPjWc6dTNVwWkpEcqqRYAb3cwnA6/Zfhb/hR13 TxmfbxiUEXsUVM+mbNaBxBsMjjnnZeQG5FY4yBo4Mh/6SIWWOO2sgJlsqXiUCLZ03evj ENTmymUBrChLaDmu4mCwOGLmDcYWHXPwYQwDdp7Qr8DIdm0w4zmtbbQ3AEhWhbY4nlCm pbHbLJdV7cXVYHUYJaIKtzvwv4E0Kwact/quOM/C8ZwBggAyu4UahpNY+hdBQj+qYOQy St8+lQDd8uPGV4ftFgZb+QUe6qCJRcUljmV6H9y9ijMUzkWJFWh2Fn4q+GYrS1sTdnfh Au2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Mfumi4T6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nb18si15838480ejc.555.2021.08.25.02.51.14; Wed, 25 Aug 2021 02:51:38 -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; dkim=pass header.i=@chromium.org header.s=google header.b=Mfumi4T6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237163AbhHYJt7 (ORCPT + 99 others); Wed, 25 Aug 2021 05:49:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234372AbhHYJt6 (ORCPT ); Wed, 25 Aug 2021 05:49:58 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E60AC061757 for ; Wed, 25 Aug 2021 02:49:12 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id y6so42584337lje.2 for ; Wed, 25 Aug 2021 02:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5cuOQSj7FEmEiodbWnKOyd6RMZP8iRN6RZOahPYho1k=; b=Mfumi4T6qskHuWjVy485evQdd/k+wJYzt876fJs9sikByTDOvTsYfpWmxt3D/iamnz yV0RikZabpUIXqeSxzw8sBz+iYKFJy4aku+vek+krbzBhe32ZfEVcqTeNuxYaCD7hAtu lyUL2M2e2bWwkPcsBDUOdmjwzZCCk0WRzbGJc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5cuOQSj7FEmEiodbWnKOyd6RMZP8iRN6RZOahPYho1k=; b=f6mPdJHukhvvYavxbrVS8xyv1Hr9GJ/0Iw+hte4N8YE2pchrYdQ/agHXkAnpi7px0/ X8byVoj2ywEXm7Lf+VzS2eO8RwZTDwFK80tC6x8rgKkMH+p4MrW6RoPQUk9Nzkdc/dAQ V09432nt8npMtMdUTpF2cO665QdWhvzznrF7yclErDrrR+2iEdWxSGA0R1+Bxv2+j5H0 54VhVB8xRD9/+0IZSdgDkTzg4WgqBGVntVKqXPghdBF6bk8C0ivFcpiZfwkGYx3gKI0J d9by+1JHue2+InFnMha5kH77bQMXRnluaAQIEpWY6KIyc+FkfxggkNx64QEh4KhAOdRS ++qQ== X-Gm-Message-State: AOAM530BKZ+9Id+omQTidZmiVjPoFCUCpqkfD5alXAovTJyQwqplC3iU NsMIUfLZjE4V2FhZYM5OE7+U1zdPZ+ouIPc3GsMBLg== X-Received: by 2002:a2e:7d0e:: with SMTP id y14mr35406017ljc.251.1629884950515; Wed, 25 Aug 2021 02:49:10 -0700 (PDT) MIME-Version: 1.0 References: <20210823092353.3502-1-chun-jie.chen@mediatek.com> <20210823092353.3502-5-chun-jie.chen@mediatek.com> In-Reply-To: <20210823092353.3502-5-chun-jie.chen@mediatek.com> From: Chen-Yu Tsai Date: Wed, 25 Aug 2021 17:48:58 +0800 Message-ID: Subject: Re: [v4 4/5] soc: mediatek: pm-domains: Move power status offset to power domain data To: Chun-Jie Chen Cc: Enric Balletbo Serra , Matthias Brugger , Nicolas Boichat , Rob Herring , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , LKML , Devicetree List , "moderated list:ARM/Mediatek SoC support" , srv_heupstream , Project_Global_Chrome_Upstream_Group Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Aug 23, 2021 at 5:25 PM Chun-Jie Chen wrote: > > MT8195 has more than 32 power domains so it needs > two set of pwr_sta and pwr_sta2nd registers, > so move the register offset from soc data into power domain data. > > Signed-off-by: Chun-Jie Chen > Reviewed-by: Enric Balletbo i Serra > --- > drivers/soc/mediatek/mt8167-pm-domains.h | 16 +++++++-- > drivers/soc/mediatek/mt8173-pm-domains.h | 22 ++++++++++-- > drivers/soc/mediatek/mt8183-pm-domains.h | 32 +++++++++++++++-- > drivers/soc/mediatek/mt8192-pm-domains.h | 44 ++++++++++++++++++++++-- > drivers/soc/mediatek/mtk-pm-domains.c | 4 +-- > drivers/soc/mediatek/mtk-pm-domains.h | 4 +-- > 6 files changed, 110 insertions(+), 12 deletions(-) > > diff --git a/drivers/soc/mediatek/mt8167-pm-domains.h b/drivers/soc/mediatek/mt8167-pm-domains.h > index 15559ddf26e4..4d6c32759606 100644 > --- a/drivers/soc/mediatek/mt8167-pm-domains.h > +++ b/drivers/soc/mediatek/mt8167-pm-domains.h [...] > @@ -69,6 +83,8 @@ static const struct scpsys_domain_data scpsys_domain_data_mt8173[] = { > .name = "mfg_async", > .sta_mask = PWR_STATUS_MFG_ASYNC, > .ctl_offs = SPM_MFG_ASYNC_PWR_CON, > + .pwr_sta_offs = SPM_PWR_STATUS, > + .pwr_sta2nd_offs = SPM_PWR_STATUS_2ND, > .sram_pdn_bits = GENMASK(11, 8), > .sram_pdn_ack_bits = 0, > }, This hunk no longer applies due to http://git.kernel.org/matthias.bgg/c/114956518c85f4e93c298749b35b46b2e78a2ec9 ChenYu