Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp2890059ybj; Mon, 23 Sep 2019 11:05:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSAMPNW79Jab9bTqvrgCQNILCeMpljsY+aC/33I6fKRuIK5V3myo55LY/cBSwkOerMsGKv X-Received: by 2002:a17:906:6a92:: with SMTP id p18mr1001953ejr.253.1569261958745; Mon, 23 Sep 2019 11:05:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569261958; cv=none; d=google.com; s=arc-20160816; b=mGcVGVfxewYimMCUM22SJG7F1EZPoDas2HQ2Dl1+oKnx9bQ8yyez0PqukhjcwN3oLL 35GEPAjo2q9GWLHROEBHMih4WGFg2OE0L9cE3DF9nnCh4DL/LiLbWGlsvJAZ7DP1u5Fw Q2IuMSeQScw+kZrXbWR3jt+Y88eb/SFx/CG8874rQ7O/ZvfJ3eXavrhANa39DvxpNPKo yjT4qYBz1JDpVQ8tAdBv5whXulia0DKCXUpoD3qoS1uWbpcdplKFaxCXmINli0ib07J1 gxqbnEqd6X4VLLA9Wj5LN/R8yDKcFxmtzXtgU9HOs1zNjSuu2l5tQkRvfClu98dM5xRW qauw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=LGv9DZLsLql8R0RI6uFoY3WPJO94bAE/bq+K0Di3JjU=; b=z91gG89QKRBNrhqdysGL2hpojpp7PwyMOfkKjpX6QWa/HmeJ12zKL/w3bSPHZ2EUSh Y0pvzHod0y8bHPqRN6zY9m0P2DMW6Z+GiUvrDuVN8LqlPkGzRI91hlfovBs3NQ/ct5CT IUwaivbFq0TsLRsmzdRb5DSy9d83o/2oQlmiWeRBhonMtmReU3Wd5dIHbWscu9l+S4Nd h3oXI911GVhtQEzm+hgtVFRkmTXTrRyy2LE9qpvZS01VEoeJjcQw2cTLU10lwBwC1tss Mb8E6aOcDpyGVGhF29Z7AF/XSevUkg0USblWXqYRSWjdr8bFT8Yr8DrruC8D5ms7lrJG DE0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=U4wBRIWk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id w11si7803372edi.442.2019.09.23.11.05.24; Mon, 23 Sep 2019 11:05:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=U4wBRIWk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2394268AbfIUPEf (ORCPT + 99 others); Sat, 21 Sep 2019 11:04:35 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:34208 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394261AbfIUPEe (ORCPT ); Sat, 21 Sep 2019 11:04:34 -0400 Received: by mail-wm1-f67.google.com with SMTP id y135so11620319wmc.1; Sat, 21 Sep 2019 08:04:33 -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:mime-version :content-transfer-encoding; bh=LGv9DZLsLql8R0RI6uFoY3WPJO94bAE/bq+K0Di3JjU=; b=U4wBRIWkDsI4icvUsrtiriqteXBT0yMa+Xqw/3INETjgirlcoMtLUbdTCSP/DZ1ZQ5 21NjqIWk1uACxeE90JxDe/JQtX/5AJS2ZBTdwW3Hh2d1YyXU37iLuTPWkHV/wW2yxqN8 SuKZ2PkqY6F97Z0iSvzZRzGLw4aBw+f6y1ndSn6NHGGEmy59WJqlmOE84SXbrgFZKjOL WKi5zMpjOjVQJA6pwb6INga0YJ1/wIhO8Vu88eNkS4mB6LZZd1CiqWWxOav2KD2rHvx3 V+GroTZC78nbo6KpCUinANLvJ0Gih6krhAtwkot15FwCBluKGKarVySBPS762dMsV6KA Uh1Q== 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:mime-version :content-transfer-encoding; bh=LGv9DZLsLql8R0RI6uFoY3WPJO94bAE/bq+K0Di3JjU=; b=UI5JILsZS0b2W2FN8zgihEJOlR8WhWpLnUB1F2LHBAPtLY1+Dlq8zoXi5L1KB+9AyA Ei3/c1GCB8kp1qIQSQFZxdIWSuF4bRpBC+zh2KGFxWLxH+NOQBlEbKhEvBILK2KQ591m v2hoBogaAziFM/xsKE7WvUHhBb/xDA+UueBQn7ytniQPnH5T0VTj5W9kqTUAHyGONv7w XxHZgRNOgd6/izUfeyHGLIIlbRqZmmWkEJdU4xLeC85wUxSvhd3ejnw6fVBkAZTRD9M3 NYvPLtmoIeEHSW910mUD2cMoy0g+sAjRqTj0IXFHhNOq0HZsFSyNbrbkKOEPt7lKFInl 3OgQ== X-Gm-Message-State: APjAAAXcUyvlQKDOBLDqw5Bwhzl3THAAfBjnjZZkCJSrj2Cx3aAW1alr 9yWEDTrZgd3CK7XeUps/S8k= X-Received: by 2002:a1c:c789:: with SMTP id x131mr7235719wmf.20.1569078272512; Sat, 21 Sep 2019 08:04:32 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133CE0B0028BAA8C744A6F562.dip0.t-ipconnect.de. [2003:f1:33ce:b00:28ba:a8c7:44a6:f562]) by smtp.googlemail.com with ESMTPSA id r20sm10987422wrg.61.2019.09.21.08.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Sep 2019 08:04:31 -0700 (PDT) From: Martin Blumenstingl To: narmstrong@baylibre.com, jbrunet@baylibre.com, linux-amlogic@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, Martin Blumenstingl Subject: [PATCH 1/1] clk: meson: gxbb: let sar_adc_clk_div set the parent clock rate Date: Sat, 21 Sep 2019 17:04:11 +0200 Message-Id: <20190921150411.767290-1-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The meson-saradc driver manually sets the input clock for sar_adc_clk_sel. Update the GXBB clock driver (which is used on GXBB, GXL and GXM) so the rate settings on sar_adc_clk_div are propagated up to sar_adc_clk_sel which will let the common clock framework select the best matching parent clock if we want that. This makes sar_adc_clk_div consistent with the axg-aoclk and g12a-aoclk drivers, which both also specify CLK_SET_RATE_PARENT. Fixes: 33d0fcdfe0e870 ("clk: gxbb: add the SAR ADC clocks and expose them") Signed-off-by: Martin Blumenstingl --- This is a small consistency fix which I found while debugging an unrelated problem. drivers/clk/meson/gxbb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index 7cfb998eeb3e..1f9c056e684c 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -935,6 +935,7 @@ static struct clk_regmap gxbb_sar_adc_clk_div = { &gxbb_sar_adc_clk_sel.hw }, .num_parents = 1, + .flags = CLK_SET_RATE_PARENT, }, }; -- 2.23.0