Received: by 10.192.165.148 with SMTP id m20csp103620imm; Thu, 26 Apr 2018 17:01:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpARYYSDrzw0F2iiV7IGA9RjW//lE7bnCBEfncMOvudnJrVmLnNpL25iRBHMnonIlpJGoC/ X-Received: by 2002:a17:902:7405:: with SMTP id g5-v6mr132144pll.102.1524787261450; Thu, 26 Apr 2018 17:01:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524787261; cv=none; d=google.com; s=arc-20160816; b=GivFqYwn+Gm3NWgEKKINaIVus99GhsnotXanayp81B8CjHp0k1QpFyVxCcJUJkyQAx gZIKkqscUvvJeqr9oqD5uNp9bQ9n53XjMQ69BlMtoscJzlEtVndtb638AXJKrHi/39gL 8bOenPWktgnGBHiwVO56RNmorRnnoZ6WVBlUsL1eRwCwTGjOk1sCS/xQqNWxR14kKE6r oxhFqcj6DejRml+xly2g2OpwMSqQj1zqvRuAeIfzq+fWu2YHoI/fEP0EHWdUWpFxm9Gq 4nhc3Y4PKR0te38RsDc7XFdFpnvHjbuTbByWepHf6QpPAuHl+7p8GguWDwt6xKJx5Z+I T17w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=iMc0GyoZzOVU2w4gvEw67Q8mYSyLHZt76qc3oP/5zoo=; b=VGaNi+hJ5eC/Oi8PFA77XFZNIE918QsZv2OeDggxPJS5vcJ73EBBXX3ET7Rnl8seic 7eufW7anVmPkgnUnLz86zXQAxqM7J0yT2nC2JOitugOGYojKucm2rNLAJCxYOuU9IDAx KHgU41ESBD095PlTINMLY9vEXwZov6oZhjV9OkeoHFIjJh4pIPNJSUVofQZh+ZPaZAYN l00I97V7YwclsfG/zgKlmPPcqR4+poyNyI0AiBLYdNISxdRW/r659xHxiZHewaFglLXv 751cZsuM6EZBume/3RClSqEeIl5PzaXUlaRa4dvEhtA4O0/XSeDpCLK/vmOR+J6hNB+g /RSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S99LAc2J; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4-v6si41907pgr.457.2018.04.26.17.00.47; Thu, 26 Apr 2018 17:01:01 -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=@gmail.com header.s=20161025 header.b=S99LAc2J; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757226AbeDZX71 (ORCPT + 99 others); Thu, 26 Apr 2018 19:59:27 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:37259 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757142AbeDZX7A (ORCPT ); Thu, 26 Apr 2018 19:59:00 -0400 Received: by mail-lf0-f65.google.com with SMTP id b23-v6so144617lfg.4; Thu, 26 Apr 2018 16:58:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iMc0GyoZzOVU2w4gvEw67Q8mYSyLHZt76qc3oP/5zoo=; b=S99LAc2JYG2qPZsN06MtPrNk9RsnkTQ3GTn3U9zJomCh4JxxyGYSZnmEO/OazmOf7+ 3bl0oHsY86JOU09Y66m/VFD/x73IYRWWKnmbee8d3RcCSN+OdD2+YPdFzsJ2N+rkLFTB 1P+oIqZHB8XhftuzA6fwGFvq10igsa/aGNhg2ggePodR67BcFqi8+MKQkYbtWJMUPSPW xWOhNUAfKYnZAthD2kECU/Xp1OUvNwc87e2Lm+JA770ti1L6DfzuK6juHlnkWU5+F2kG XFGi+lATi10IttTMV2BGeAIT3A9kQ8PoPtJ9+YyCMxXQ/ejqSY7iwt65xfYahfSKcxn2 H0Sw== 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; bh=iMc0GyoZzOVU2w4gvEw67Q8mYSyLHZt76qc3oP/5zoo=; b=lBoKbDuvG+M1UYRmBFgIWOua9sjEerBZRDGdF0fcLq5lKXYfXc/fnosz67SKWhDyZZ h6p4NxD8HhoV+ULczTDERvdm3sWzoHbRubOGVIkFDP2WZDTd0GYKAIChcQfu5+Wi5DPP Ctg5QcyXwlwi7O68Cvc2soxFH4R/T8fr/L/CHskJmfPwuvxhzMyJLcgefZtuqKcKrWfc GdEHQPJ2w+U/czcbsIT5KUllQDYhuzlMYetwvCk1j4E32UtZWgDb9Q8LojRX6GXSpmmP VlGu6M/TUpNTDxI9kd9LhAmxO0ylJgoX+JGv7osmXvC4WoB+UA8M767LXK+divQuttX+ EJWQ== X-Gm-Message-State: ALQs6tDj2vgtormUcHUbtmpxOYhpGfTxB6g9ACyB1noO4zw8T+2F4+wu JuupqTKgPWFAPXOYeS2zIrU5AroL X-Received: by 2002:a2e:988f:: with SMTP id b15-v6mr55058ljj.65.1524787138108; Thu, 26 Apr 2018 16:58:58 -0700 (PDT) Received: from localhost.localdomain (ppp109-252-91-130.pppoe.spdop.ru. [109.252.91.130]) by smtp.gmail.com with ESMTPSA id o4-v6sm7420ljh.39.2018.04.26.16.58.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 16:58:57 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Peter De Schrijver , Prashant Gaikwad , Stephen Boyd , Michael Turquette , Linus Walleij , Marcel Ziswiler , Marc Dietrich Cc: linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 3/4] clk: tegra20: Set correct parents for CDEV1/2 clocks Date: Fri, 27 Apr 2018 02:58:17 +0300 Message-Id: <20180426235818.10018-4-digetx@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180426235818.10018-1-digetx@gmail.com> References: <20180426235818.10018-1-digetx@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Parents of CDEV1/2 clocks are determined by muxing of the corresponding pins. Pinctrl driver now provides the CDEV1/2 clock muxes and hence CDEV1/2 clocks could have correct parents. Set CDEV1/2 parents to the corresponding muxes to fix the parents. Signed-off-by: Dmitry Osipenko --- drivers/clk/tegra/clk-tegra20.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/clk/tegra/clk-tegra20.c b/drivers/clk/tegra/clk-tegra20.c index 16cf4108f2ff..7e8b6de86d89 100644 --- a/drivers/clk/tegra/clk-tegra20.c +++ b/drivers/clk/tegra/clk-tegra20.c @@ -844,14 +844,12 @@ static void __init tegra20_periph_clk_init(void) CLK_DIVIDER_POWER_OF_TWO, NULL); /* cdev1 */ - clk = clk_register_fixed_rate(NULL, "cdev1_fixed", NULL, 0, 26000000); - clk = tegra_clk_register_periph_gate("cdev1", "cdev1_fixed", 0, + clk = tegra_clk_register_periph_gate("cdev1", "cdev1_mux", 0, clk_base, 0, 94, periph_clk_enb_refcnt); clks[TEGRA20_CLK_CDEV1] = clk; /* cdev2 */ - clk = clk_register_fixed_rate(NULL, "cdev2_fixed", NULL, 0, 26000000); - clk = tegra_clk_register_periph_gate("cdev2", "cdev2_fixed", 0, + clk = tegra_clk_register_periph_gate("cdev2", "cdev2_mux", 0, clk_base, 0, 93, periph_clk_enb_refcnt); clks[TEGRA20_CLK_CDEV2] = clk; -- 2.17.0