Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp1073836lko; Tue, 13 Jul 2021 16:26:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVDqe5nlEVW9gVv8da+zq/uMfFv6/sG5Gfpm3cKffU0Zo8lpDzBxGXkMnxxJzzdnsxWOUt X-Received: by 2002:a50:cb8c:: with SMTP id k12mr9207286edi.386.1626218805118; Tue, 13 Jul 2021 16:26:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626218805; cv=none; d=google.com; s=arc-20160816; b=TmGUFv1go0n5aV1aRbHLfC4TV2di+LJiPeXZu3meUUiQEn+46albYydW3rPwCf4LA6 VnDLooKuv7ySqxAkjUzGUALelbW9XTRqnoZAy7/JmcFTfKn/PBvNqIesL+3BTns2bz3k RSb3J1mfy7GuOF1l6QAYx8fmcgY9zeEttuZgokjVuPbPdlAy2SLrraEczbLvyGVOjXlV jQxZun/XBOXKSdpm3ng3pkDZ1NlrbVgVWCb79FKsTdODRRHmPPOx5CBhfsppk4CQoPIJ rP7ZjT/EwMrxHbBbAfRzo9AjyOTLxH24BES54ey+JRpVFpWcIAE1vQiyOY1AZttVtjlo RT/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qQtFi3Hnx4K3qedNDcjWCvPvHnc34scNXSyJRM66eyc=; b=qDt1cgLZgXlCa97fGZ+eFYL6nNQ+xmnzbJbUFebuQQTCvGI74E9oM7gMsCVYdGzdHS wIe8K8sm5EmIBphAUN7fPFrXfy8pjiaDR24PCnuNDcPAgavKK4DWxsK8+1RC4UFtvBi1 Ho7+iJ5HtiZxjUttubMxQDmYZsxHBCNeoOYslYKRou1PDkjFeE+5oVZWcGFAqn6sLuGw ry7tynXCXnPQE9o0VCzCRB0x3202mDUgyI55Iu5UZZ3YbLuifjDyrGQUlWKZ5KvaJ23P kaCoqrDPPleqoZ8bnrQ/sVSgRBpRZSraqwt8Q84B12vINXhbxWQp+LBfbUN2U2w1MrkZ A3Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b="O/qHa4p8"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o8si389195edw.60.2021.07.13.16.26.23; Tue, 13 Jul 2021 16:26:45 -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=@googlemail.com header.s=20161025 header.b="O/qHa4p8"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237020AbhGMX2O (ORCPT + 99 others); Tue, 13 Jul 2021 19:28:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236873AbhGMX2L (ORCPT ); Tue, 13 Jul 2021 19:28:11 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6CC8C0613EF; Tue, 13 Jul 2021 16:25:19 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id l17-20020a05600c1d11b029021f84fcaf75so2723420wms.1; Tue, 13 Jul 2021 16:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qQtFi3Hnx4K3qedNDcjWCvPvHnc34scNXSyJRM66eyc=; b=O/qHa4p8MUICgTw2moGtJHisz2F0qV71BT3dbeMDgUXv/x4+5h3u0twAFSJzUipAxr QGSW48t3kwX0Pmyk0J4M2o28wylS7QEEjfVWnTfAitPIIX/k1ZWmk8DiZAj+eesy3Wus IvHbL6JXs1V/EcIJKWION1Sl9cuspToxmpq5s9rfnpb4rcvUIm3ttnVUalhulkrPdsLv Wz4Pghpqc+xXFDRiPjxFQv0mcODuCb3TnBoqEH7m7+Zmb/QLlcM1JOYiPajSNSno/+dv N85Krrv37jqo2cEYfaJ1Ilmn6BRI0Iz8RqS8amoe5fyHa8BoqdqrV79RmAUq+uFM6Yga 44Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qQtFi3Hnx4K3qedNDcjWCvPvHnc34scNXSyJRM66eyc=; b=Ci09jNlRLVHn82QYAJz+voUIj/HWrDJKWAEl8eYw7OXpMctt5pX+XKQTgE/dCTAG+E iigPEThjClN2RD2XgaeT1zMjS2JHTppuevysmz9Xj2vyHq6AXgkdBRP3puvkZKFGZIdS n0CGba7FJF2iILZWmjeMULLMRahqs1/uTgS8zmxOG7iaQxYVMqUjhPNf3wRYJrTAzQaw 1CluuTybxj2m3Sop5VKsHwy/UpynTiCFtP//n5N6St8lyAtK+1eAuB+biNph0VTRg7Ds wUTo9fmGnWYaT8HCLFBDNj455yTmocVcoDgrwjreBk/+OvggWS6cnRvCx4waDuyxiVwU xKqg== X-Gm-Message-State: AOAM531jm53FmA9JcM6u68NTKDs3JtOyGinJvnGE2VdWr6Gu7tyd3je1 APxDqP7QolcKwjLTyL9tHyM= X-Received: by 2002:a7b:c013:: with SMTP id c19mr653114wmb.158.1626218718324; Tue, 13 Jul 2021 16:25:18 -0700 (PDT) Received: from localhost.localdomain (dynamic-2a01-0c23-c041-6f00-f22f-74ff-fe21-0725.c23.pool.telefonica.de. [2a01:c23:c041:6f00:f22f:74ff:fe21:725]) by smtp.googlemail.com with ESMTPSA id o11sm3857390wmc.2.2021.07.13.16.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 16:25:18 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, jbrunet@baylibre.com, narmstrong@baylibre.com, Martin Blumenstingl Subject: [PATCH 1/6] clk: meson: meson8b: Use CLK_SET_RATE_NO_REPARENT for vclk{,2}_in_sel Date: Wed, 14 Jul 2021 01:25:05 +0200 Message-Id: <20210713232510.3057750-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210713232510.3057750-1-martin.blumenstingl@googlemail.com> References: <20210713232510.3057750-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use CLK_SET_RATE_NO_REPARENT for the vclk{,2}_in_sel clocks. The only parent which is actually used is vid_pll_final_div. This should be set using assigned-clock-parents in the .dts rather than removing some "unwanted" clock parents from the clock driver. Suggested-by: Jerome Brunet Signed-off-by: Martin Blumenstingl --- drivers/clk/meson/meson8b.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/meson/meson8b.c b/drivers/clk/meson/meson8b.c index a844d35b553a..0f8bd707217a 100644 --- a/drivers/clk/meson/meson8b.c +++ b/drivers/clk/meson/meson8b.c @@ -1175,7 +1175,7 @@ static struct clk_regmap meson8b_vclk_in_sel = { .ops = &clk_regmap_mux_ro_ops, .parent_hws = meson8b_vclk_mux_parent_hws, .num_parents = ARRAY_SIZE(meson8b_vclk_mux_parent_hws), - .flags = CLK_SET_RATE_PARENT, + .flags = CLK_SET_RATE_PARENT | CLK_SET_RATE_NO_REPARENT, }, }; @@ -1358,7 +1358,7 @@ static struct clk_regmap meson8b_vclk2_in_sel = { .ops = &clk_regmap_mux_ro_ops, .parent_hws = meson8b_vclk_mux_parent_hws, .num_parents = ARRAY_SIZE(meson8b_vclk_mux_parent_hws), - .flags = CLK_SET_RATE_PARENT, + .flags = CLK_SET_RATE_PARENT | CLK_SET_RATE_NO_REPARENT, }, }; -- 2.32.0