Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6940253rwl; Fri, 30 Dec 2022 00:43:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXtDLkrNlBB0wlVVj0EnrgtH4Kx4htkDbQOWp8xyTsANhhUMtDdjvkNFrOfjywRmmU6NMjGL X-Received: by 2002:aa7:981c:0:b0:578:83f5:554d with SMTP id e28-20020aa7981c000000b0057883f5554dmr37185452pfl.23.1672389803867; Fri, 30 Dec 2022 00:43:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672389803; cv=none; d=google.com; s=arc-20160816; b=SjIs1eOqxvmKmOG5NdEKBuCLu6998NAo72XLZ9Qm87lB6Jx+Ucuo7AGHSr3YmB4wP2 bzY3Ln64idk6ZLSTEkxfC0qyXtkIiDkEc8Wwoiw6dmXcoiupmlFaeHVbVbAw2qt6wEY2 6TpXX20hEVozDD6BxmCVUHJFfHtamO/wl/GxWXVTyub74wVGJv4qAcmnnH4mtgSRQ0og uAdfBrj+yw0KLScbDjzybgE/wNXuwsk3cqQE+bpcjVY3kdn6R6t578nqfope8cgyIWDA u9j9d4y1LcMxNoUXYD0HYGgcGzWFzYRRDXGdh11Vdvmp9rUX0lSqT+F0YBHseDnPckQ3 e5pw== 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=iQdcqRijxUkHsak+jAfhkkvLukBS0vcYzdFtrdyXflw=; b=jkB1doeNoyNlk3G2t8l2OnfltMSJqlmjUDaDHRwXvJQj9Uar2iNAu2FeWAu6HULD/4 lI2nq9xWX2R/IPeUrKGHtiNDta5d2GrD6FtrjRw9YEtvl6tASkzP5RqOjqAyTXWq33pt AdGCaQjnms9nB3aTnU+myYd9Lfg5Jc1SFwtiUEkVJ2MLfQ9Z4dFNiU8rgEPgBbIYUrdh AmjT8NihVHbLC24oqFVeq1l8l7KVhidYGJspUWqtXDxooYrHKbbd9HMQ9fSEuecIPlcM JC+PMuVfAXsYwiD70Hl5uD8LAWAebyg0EdK2LqTmHrHOtdIxD4npMp1DlZu/C6BsnS5j T8Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hJrOI48J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a624e14000000b005818164ef32si7450447pfb.291.2022.12.30.00.43.15; Fri, 30 Dec 2022 00:43:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hJrOI48J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234635AbiL3IGt (ORCPT + 64 others); Fri, 30 Dec 2022 03:06:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233908AbiL3IGr (ORCPT ); Fri, 30 Dec 2022 03:06:47 -0500 Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDE5D1570C for ; Fri, 30 Dec 2022 00:06:46 -0800 (PST) Received: by mail-vs1-xe2a.google.com with SMTP id p30so15000655vsr.1 for ; Fri, 30 Dec 2022 00:06:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iQdcqRijxUkHsak+jAfhkkvLukBS0vcYzdFtrdyXflw=; b=hJrOI48JiYR65s9nCvSCbLB6/evML3aOoc6h+o+f3sjNM430ssdY4mTfsfoOuqiE77 SfnNNqM26q/P0n106if0Zu2bwW9SvUE5hjv4D9piG3JN02D1FVQl65JpTXlhhT0mEDhD lf0+C7oAiy61ZM+ycfbYEnO9A6aiVYZIH5934= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iQdcqRijxUkHsak+jAfhkkvLukBS0vcYzdFtrdyXflw=; b=eoDTToS0NVRQcOfnk+Gp5H1LY2DnBIUbdKJUyDHXdnYxt+RrgvNRrXusNzC511bkyW tQ568B6lKNyZuBSe2l3Adn4/3PnfIMS5vi8CszTAMDuljMTD8L99qCaIiF2xDsHR16Gk /5iThP6Q8pyTgueEjh8OZEY14oSQNL/h6Sl+WLKgYcWiOhVo6Mn6/Kt/5AuCMxtNeeBd U79YSkZdztyWONDc+FvC1ZqCIh+X3PCTRHvcefd46Q5Ft2MH0viWj0Loyq30/73mFZul AHVjq/0SqM+4Zi7KntmwkB2+0JxBX/NCYZkw4bpkT1g60upwiyIHp7+KboZqiOQuGQrE 2yAQ== X-Gm-Message-State: AFqh2kokr1m/6gHv4QMnuCg6URN1/Ru+IWmFtK+pEJr3sFP8dNcnjKDx zTN55aEFTy/mc5cMoNP+6D71x4VtndwRHTqL/Wb4RA== X-Received: by 2002:a05:6102:74b:b0:3ad:3d65:22b with SMTP id v11-20020a056102074b00b003ad3d65022bmr4417228vsg.65.1672387606063; Fri, 30 Dec 2022 00:06:46 -0800 (PST) MIME-Version: 1.0 References: <20221223094259.87373-1-angelogioacchino.delregno@collabora.com> <20221223094259.87373-16-angelogioacchino.delregno@collabora.com> In-Reply-To: <20221223094259.87373-16-angelogioacchino.delregno@collabora.com> From: Chen-Yu Tsai Date: Fri, 30 Dec 2022 16:06:35 +0800 Message-ID: Subject: Re: [PATCH v2 15/23] clk: mediatek: mt8192: Join top_adj_divs and top_muxes To: AngeloGioacchino Del Regno Cc: mturquette@baylibre.com, sboyd@kernel.org, matthias.bgg@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, johnson.wang@mediatek.com, miles.chen@mediatek.com, fparent@baylibre.com, chun-jie.chen@mediatek.com, sam.shih@mediatek.com, y.oudjana@protonmail.com, nfraprado@collabora.com, rex-bc.chen@mediatek.com, ryder.lee@kernel.org, daniel@makrotopia.org, jose.exposito89@gmail.com, yangyingliang@huawei.com, pablo.sun@mediatek.com, msp@baylibre.com, weiyi.lu@mediatek.com, ikjn@chromium.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, kernel@collabora.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 23, 2022 at 5:43 PM AngeloGioacchino Del Regno wrote: > > These two are both mtk_composite arrays, one dependent on another, but > that's something that the clock framework is supposed to sort out and > anyway registering them separately isn't going to ease the framework's > job in checking dependencies. > > Put the contents of top_adj_divs in top_muxes to join them together > and register them in one shot. > > Signed-off-by: AngeloGioacchino Del Regno > --- > drivers/clk/mediatek/clk-mt8192.c | 13 ++----------- > 1 file changed, 2 insertions(+), 11 deletions(-) > > diff --git a/drivers/clk/mediatek/clk-mt8192.c b/drivers/clk/mediatek/clk-mt8192.c > index ec9dc7fe848e..702770326286 100644 > --- a/drivers/clk/mediatek/clk-mt8192.c > +++ b/drivers/clk/mediatek/clk-mt8192.c > @@ -698,9 +698,7 @@ static struct mtk_composite top_muxes[] = { > MUX(CLK_TOP_APLL_I2S7_M_SEL, "apll_i2s7_m_sel", apll_i2s_m_parents, 0x320, 23, 1), > MUX(CLK_TOP_APLL_I2S8_M_SEL, "apll_i2s8_m_sel", apll_i2s_m_parents, 0x320, 24, 1), > MUX(CLK_TOP_APLL_I2S9_M_SEL, "apll_i2s9_m_sel", apll_i2s_m_parents, 0x320, 25, 1), > -}; > - > -static const struct mtk_composite top_adj_divs[] = { > + /* APLL_DIV */ This would be CLK_AUDDIV_2 ~ 4 actually. 4 dividers per register. Otherwise, Reviewed-by: Chen-Yu Tsai