Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp221987pxv; Thu, 15 Jul 2021 02:52:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaz/rW8nW4MZBaV6hC3HLvlWZ4WspOIdW191Cx1TkuQGXGALbQQCnulf/gTd4bbdsZjKHv X-Received: by 2002:aa7:c4c7:: with SMTP id p7mr5629373edr.290.1626342722147; Thu, 15 Jul 2021 02:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626342722; cv=none; d=google.com; s=arc-20160816; b=UJWE6iG+vn/a8X0/iGIkbIYlH9aCieCmfXqkdfn5dGU4sQdgdZ5Eki1XUQa2F3kSP8 CCrcXv4Djzu2MIYTFsNS1nAUew3+cilc+RCGmvnh8UhryT4y52uqTbF++SafSONcynKC w0iKzZriY/nZKhT3FAwvi0zAqziEA1feAvC6dxRPHlYOBfjp6+vrZAu2u+QC8FJS/gtX x8L0f/ZFDEjiGSrdg+ab1noZAasCtJhhPd98M1k9m7zDKl1s/cM9PuTXWhRepMRQIKaQ EOIElqlHCpCgJrwp2NnAt4WVvJ+A/nkEx6aCThfLjzWp7hTCZIuU34FcfPWWWdXpFmWH 8PBw== 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=unaBiWnJarMH1gL7KYAkXbKz3od/E6fqsCgI629LIGM=; b=dZH4AbDqBGOd6XjbLAR3ah8Tl69b6DdAZ2acLw9a3rxe80uzlFYaz9kfwQX4EBvIc5 /z/VZS0orn1PeJwza+Rs7QkS5A3XD5pMFMjY4iHC3hYq6MDDBxaAnXSvtBAayWLm6jO1 CBLmM36VmZ4+qrGz8gZBvc1rHpnwaRXzFiUs6IqO320F8iiqEKfaSAywDUxBndFRGhHF gaaE6CuhwBfNq54Ph+sHEoxhfOiQfiEoYpQuh047ZyKSIdMx7vacMTMpSGsiUpsHi6D9 VfpVFlfeySeO2Yq7k0Y5yX7Eg/Lidqzbl+/lOWdat3AxstzJeDr5T5kf/cLo0CVDGvcz 6uUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=etu1S8mi; 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 w25si7119376eds.240.2021.07.15.02.51.39; Thu, 15 Jul 2021 02:52:02 -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=etu1S8mi; 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 S231149AbhGOGn1 (ORCPT + 99 others); Thu, 15 Jul 2021 02:43:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229828AbhGOGn0 (ORCPT ); Thu, 15 Jul 2021 02:43:26 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2FA2C06175F for ; Wed, 14 Jul 2021 23:40:33 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id b26so7996909lfo.4 for ; Wed, 14 Jul 2021 23:40:33 -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=unaBiWnJarMH1gL7KYAkXbKz3od/E6fqsCgI629LIGM=; b=etu1S8miUnZsNSpg3HW7x38uMVbiLPD1tNvKTPEnOlRvEcWJzm7exG7BPJaod1ka0w CDa1vvopBYQX351vd75gYooym69T9Nf/RaGcFiYe3LjhfDCFhimGra+WB9snRBMOwYDS EPTfEacpnlvH9TbmEuvaYVdzOLBjl4lRLI9Wg= 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=unaBiWnJarMH1gL7KYAkXbKz3od/E6fqsCgI629LIGM=; b=Extbq+HtFaEGH4NTeLhGCuYkUMwPLUru7mlaZM3eKOF1CV2GpCBpsB2hbVYxr/YHzP qxV+ARcVw6yeI1StlkKXtuBpWH3z50eeGwqRl2avkhBGKwNIHj71Ak7RmBisXMJRKHm2 OXEI1yy5sQ1I69lPT5YLKHWyYkkHTWHEYwpk/Gaa7OdxcTtevQN6jgsk6NVQAms2LtHX /Jxs/iSR38lJDrKpX3OtZ/5Y+r759UAQQXYu82+0VgLjAfdJXWXHepUFs0SnOGVI78n8 bsOVSEvJp/QmwC+DzpdgW6/Jw+jxFSUxgbyr11N0MxS6I1cXMKID5o7YMpdhUwDeIoON UBKw== X-Gm-Message-State: AOAM531eTAvYHMasHrkueXKqPGqkSPB8sqp6nixfEJnT0AR38883U6pk BVJ2Ao2hni18JZPsvilLwwUaOA1PgkaDYYJMjZTH8Q== X-Received: by 2002:ac2:48b8:: with SMTP id u24mr2049392lfg.587.1626331232261; Wed, 14 Jul 2021 23:40:32 -0700 (PDT) MIME-Version: 1.0 References: <20210705054111.4473-1-chun-jie.chen@mediatek.com> <20210705054111.4473-6-chun-jie.chen@mediatek.com> In-Reply-To: <20210705054111.4473-6-chun-jie.chen@mediatek.com> From: Chen-Yu Tsai Date: Thu, 15 Jul 2021 14:40:21 +0800 Message-ID: Subject: Re: [v3 5/5] soc: mediatek: pm-domains: Remove unused macro To: Chun-Jie Chen Cc: Enric Balletbo i Serra , Matthias Brugger , Nicolas Boichat , Rob Herring , linux-arm-kernel@lists.infradead.org, LKML , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, 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 On Mon, Jul 5, 2021 at 1:48 PM Chun-Jie Chen wrote: > > Due to clk resource data will be allocated dynamically by > searching parent count of clk in power domain node, so remove > the unused marco MAX_SUBSYS_CLKS for static allocation. > > Signed-off-by: Chun-Jie Chen > Reviewed-by: Enric Balletbo i Serra > --- > drivers/soc/mediatek/mtk-pm-domains.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/soc/mediatek/mtk-pm-domains.h b/drivers/soc/mediatek/mtk-pm-domains.h > index caaa38100093..1b8967b9829e 100644 > --- a/drivers/soc/mediatek/mtk-pm-domains.h > +++ b/drivers/soc/mediatek/mtk-pm-domains.h > @@ -72,8 +72,6 @@ struct scpsys_bus_prot_data { > bool ignore_clr_ack; > }; > > -#define MAX_SUBSYS_CLKS 10 > - Future advice: cleanups like this and other fixes should be put in the front of the series, before any patches that introduce support for new features or hardware. That way if the new code still needs work, maintainers can optionally apply the fixes so you don't have to carry a large patch series forward. ChenYu > /** > * struct scpsys_domain_data - scp domain data for power on/off flow > * @name: The name of the power domain. > -- > 2.18.0 > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek