Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3313168pxj; Mon, 24 May 2021 03:58:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzICb4OSYomHiDrJissEYCZE28dz5j7jNcuG6W20I18GNpqlP98xN2g4zeN/lHrqdYRI1NE X-Received: by 2002:a05:6638:21a:: with SMTP id e26mr23851914jaq.58.1621853927611; Mon, 24 May 2021 03:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621853927; cv=none; d=google.com; s=arc-20160816; b=UIgV0AXMLPPEQCctmmhs5vnWSWUNGbv5T62Wweqj5w36ZSdq/8VST/Ad++/FIqTviE N+FKfa48uWK3ggsXPkjiquxGa/6BKTz4hmbGbra9ZBB/BctCyweXDfT3XezYpjdDI0/O ZasXtyLKyHOwdmhbV/FZah2XHO1L1UEMMBzsam0Uzhtvn1ns7H2rgqZsZacU7opTqFC2 ugQtNor65oSUKZNNhSlLoUX3IAT04KMcVvg5+YHBq9vHeU99QH9W5nz9nWrQFstENGIZ d+WU7z5SZ4ihZ+C66YLAIJDCAGx/QVDBVJrq4beKxbTrilk0AQ4CuAvW37UAL6qlMlhl 8KGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:date:message-id:in-reply-to:subject :cc:to:from:user-agent:references:dkim-signature; bh=ca+wrM4nB27tPYpaZYyNnd8UcG3q9suStj34yK6Un7E=; b=EJXicMm+Bn8Te+HTjcOD+43vdYGKLYCqEiEsFcyG6ezIz+ELVEn39lmmO8VfH15zjj UfL8fy3nlWJAqbRR3XvRWETfa6IYGiorLyLeUCMjPFs2lbcRsxTg0ViMweUEo90NtM/A gHLTrGObCliMFVH1oyeMCRFbEFtIAJ8jtXlItjssMH/I/G8eYDTN08RSmgX1oLqt29JX 1dEc0ST0VxSNEjotq0tazTmkXkZEdyEWHt876yz3+h4toQ/JMf4IyKg4MLZGj3wONcEL CGQHWE70TdvND0rCqc6UfdAtpcbKtuq8Tbk6QPytW7+wLqdN0rt5KaLZPsC97MuFkufx EvIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=p3yXEgVC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si13466494iow.103.2021.05.24.03.58.33; Mon, 24 May 2021 03:58:47 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=p3yXEgVC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232548AbhEXK7a (ORCPT + 99 others); Mon, 24 May 2021 06:59:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232422AbhEXK73 (ORCPT ); Mon, 24 May 2021 06:59:29 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8E97C061756 for ; Mon, 24 May 2021 03:58:00 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id z17so28064674wrq.7 for ; Mon, 24 May 2021 03:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version; bh=ca+wrM4nB27tPYpaZYyNnd8UcG3q9suStj34yK6Un7E=; b=p3yXEgVCpGPrz9zkR6Zzuc5sDlLkQsKfiO/YoCMpdgz/ppvHr3bBjfNdf6c8SO4Iy/ 3K4Me5eoSg1GfVsQ+vl+Y8h6tAZRQVkZywVQW5HfemqRb7oCD97DOP+vOIqdUH195DMh kdA+6kLyl0Tih2LJxM6s5zJ0PFppcWT8ZCKu4RkERu18521jybeh+W8iaxywnLDYA7ui drnCnPOOJbqicvtdRs4n8+qTlrAQj5mp9jvT586dbNovojbzqEXQOF4kctU7Wed5h2uz zFswvwM0itvuQUWyz8vMVw25IzZmSTm/CiT5BJh5J1x9E5xoOZ3QAvXkfqie/QFTIkDf R0qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=ca+wrM4nB27tPYpaZYyNnd8UcG3q9suStj34yK6Un7E=; b=SEaVAQC0HLqMEfHoFimaRnJxWNwUovtuXmGRj1WYtOimwPuMM66qpOZov4dLT/AWLi K87JVbo1xU6SUBacoFLZLMGt+keZWtyrZDDhd7E1Zxct+VOCYJedj7gz836kj2ylJGA+ rTcONUUUyfrGeOGb0Vk2UnIhk+B+37HgKgFPukkEGbgVda75zWEOvTr8FkGrZ8nOeZtr kiw9tSeZyHIMr8CA3BFLO2o2ACiaB2Fb/c6vflOzLJLpmJLuKhLa+EG75+EFLdSGikJi MDaGjRxJmt+uVyOQH8OXb7rV81ZeajqJ6zUJsrmmjJ9B8O0Z6fq4LxLNQ6Z22SFYKfd+ mcag== X-Gm-Message-State: AOAM533JAodaLOWX/KVtfqrKfuGFTj2nhYkn4WekJhewXjX2AduQnWoK LN02pdwdou/SmhR4ET/SpVefiA== X-Received: by 2002:adf:ce02:: with SMTP id p2mr21626617wrn.156.1621853879397; Mon, 24 May 2021 03:57:59 -0700 (PDT) Received: from localhost (82-65-169-74.subs.proxad.net. [82.65.169.74]) by smtp.gmail.com with ESMTPSA id o15sm7636877wmh.36.2021.05.24.03.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 May 2021 03:57:58 -0700 (PDT) References: <20210524104533.555953-1-martin.blumenstingl@googlemail.com> User-agent: mu4e 1.4.15; emacs 27.1 From: Jerome Brunet To: Martin Blumenstingl , linux-amlogic@lists.infradead.org Cc: narmstrong@baylibre.com, mturquette@baylibre.com, sboyd@kernel.org, khilman@baylibre.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: meson: meson8b: Don't use MPLL1 as parent of vclk_in_sel In-reply-to: <20210524104533.555953-1-martin.blumenstingl@googlemail.com> Message-ID: <1jsg2cbdqh.fsf@starbuckisacylon.baylibre.com> Date: Mon, 24 May 2021 12:57:58 +0200 MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 24 May 2021 at 12:45, Martin Blumenstingl wrote: > MPLL1 is needed for audio output. Drop it from the vclk_in_sel parent > list so we only use the (mutable) vid_pll_final_div tree or one of the > (fixed) FCLK_DIV{3,4,5} clocks. Are the fixed ones actually needed ? If the consumer actually lives on the vid_pll only, I'd prefer if you could add CLK_SET_RATE_NOREPARENT and assign the proper parent in DT with `assigned-clock-parents` > > Signed-off-by: Martin Blumenstingl > --- > drivers/clk/meson/meson8b.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/clk/meson/meson8b.c b/drivers/clk/meson/meson8b.c > index a844d35b553a..f8bd211db720 100644 > --- a/drivers/clk/meson/meson8b.c > +++ b/drivers/clk/meson/meson8b.c > @@ -1154,6 +1154,10 @@ static struct clk_regmap meson8b_vid_pll_final_div = { > }, > }; > > +/* > + * parent 0x6 is meson8b_mpll1 but we don't use it here because it's reserved > + * for the audio outputs. > + */ > static const struct clk_hw *meson8b_vclk_mux_parent_hws[] = { > &meson8b_vid_pll_final_div.hw, > &meson8b_fclk_div4.hw, > @@ -1161,7 +1165,6 @@ static const struct clk_hw *meson8b_vclk_mux_parent_hws[] = { > &meson8b_fclk_div5.hw, > &meson8b_vid_pll_final_div.hw, > &meson8b_fclk_div7.hw, > - &meson8b_mpll1.hw, > }; > > static struct clk_regmap meson8b_vclk_in_sel = {