From patchwork Tue May 22 14:52:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 136561 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1734951lji; Tue, 22 May 2018 07:53:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp9RyNRPVTNlxX3B2tRHvV5JxR4TvSP3HQ0FmBietK6lySosDJzIFlkj6mUl6eZrcHqZ5OV X-Received: by 2002:a63:734f:: with SMTP id d15-v6mr8337981pgn.149.1527000795306; Tue, 22 May 2018 07:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527000795; cv=none; d=google.com; s=arc-20160816; b=F8JixpDUYKTzgdk40zmH9KbFL698oRlXXdHJMlwVIbTU0cct7i2BJoABjELvRWahg0 ntXq5fZgfHjK2z53NpNq5r5WfCEu8J58st4KcqWPhfCVCBjK92OgQ5yS4Uxy6PvfK2eX qQ2DXvQ0KGDkyWGUBf5q8be9dTS2x8KsfTzknAE0i3JrQ1f986Qm2xVAml3OGOEPGVZ/ YSWKWuJeGZCuxR0Jdf4EtQqb2wLi4K0dN4RoXpjr1dl10OCFhiBmddz5aQ/AiMxraia5 dSpYod0pLD8ferTUyJygQA6nw0/Snx62eaQqINF2ldJsI5HozK4LQKGbh+y7OffJgtnE bJzA== 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=Sxw46gnlz9mtv1XXl/Vo2KttgxadVIeBrluz36BuYaM=; b=viYyaHPzZszDEUDXT0nGbkZEwyw4o/rb+cc8A9qVgvamR4hNix/TFgItQmjfO4MrdK xnodanl0wgzNs9T4f+l/HC/3xAYJH4RMmQFrwRCo2720emWTe0Ww/yiof5OsdyHvXO6i XQtsJMZWyq4B2St1V0UL3gGhktWBLkZxu3RBbnF3PYfeO15HFSuVW6oft/Fh/qJDlY/h 8rqGpAh2TvWeQIiaok77oPqqqJmhBKVOhLx6/j1BackMdl8l+E+OnZ84PJnODzZhWbAs /z6xA3eEXJk38H/M031jxoQaAipJRqFhYAKaQ+jxrP3tiYSFlH76swmeZmRRGfFlwduA zb5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q8cA64d1; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q28-v6si16922041pfl.317.2018.05.22.07.53.15; Tue, 22 May 2018 07:53:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-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=@linaro.org header.s=google header.b=Q8cA64d1; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751579AbeEVOxN (ORCPT + 4 others); Tue, 22 May 2018 10:53:13 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:54893 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751544AbeEVOxI (ORCPT ); Tue, 22 May 2018 10:53:08 -0400 Received: by mail-wm0-f67.google.com with SMTP id f6-v6so538663wmc.4 for ; Tue, 22 May 2018 07:53:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Sxw46gnlz9mtv1XXl/Vo2KttgxadVIeBrluz36BuYaM=; b=Q8cA64d1yYk8sxmB3MFlZqFzZe9rWGq50B6Iw+O2FnF6o7L+PNEnnE2n/oMlwcOG7D w/7eyfogzbCCYmfEYi/CF0ck53tVJz4VdWLt8gG+RMSgLYuQ3f2iBUnlrdo9Tr2cIL/m uiEOcNdOTv8J0DQaua4OKEqbhDVdF1zan33zc= 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=Sxw46gnlz9mtv1XXl/Vo2KttgxadVIeBrluz36BuYaM=; b=E6ujgCQAJSVttCIUPuAgYjLM5r2ULTBEZQ+3E2uBvui3NhsjDYJP+p7bYNGUdL85Kw EgWVf9LVnbMAhSlVqBcydHGfXFKVhhAV7A/zIx9rjFbffztZwges7mUnsGQLLQv/fsE5 AlrimtXHLXqPSZ6g7vG61FS3Bctl6qJeJVAE4+uuEu+kVIkJlHbhBFtdBremu9sjrhz7 yje07zQV4quZUksTpHAcxd42/px+GpNi0eqf4eKy/k9FiC2pWHNQyIAiqC9vs1xg+NtZ 2mlyhZkQ/9Rw1xoOvza9r55Kw+nTh/91ZlZuPou4z40+Gcn3Rus1OFVhwrMupO0JlPbh 48sw== X-Gm-Message-State: ALKqPwcpCubY4Y2xvS+HerVYzc8MOlJiHfdxdY6L61TYxt7YMIBjtJjE comw5qUw2OOMi3qol3fcUsbwbw== X-Received: by 2002:a1c:8795:: with SMTP id j143-v6mr1604380wmd.149.1527000787191; Tue, 22 May 2018 07:53:07 -0700 (PDT) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id 75-v6sm76878wmw.37.2018.05.22.07.53.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 07:53:06 -0700 (PDT) From: Rui Miguel Silva To: mchehab@kernel.org, sakari.ailus@linux.intel.com, Steve Longerbeam , Philipp Zabel , Rob Herring Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, Shawn Guo , Fabio Estevam , devicetree@vger.kernel.org, Greg Kroah-Hartman , Ryan Harkin , linux-clk@vger.kernel.org, Rui Miguel Silva Subject: [PATCH v6 04/13] clk: imx7d: fix mipi dphy div parent Date: Tue, 22 May 2018 15:52:36 +0100 Message-Id: <20180522145245.3143-5-rui.silva@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180522145245.3143-1-rui.silva@linaro.org> References: <20180522145245.3143-1-rui.silva@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Fix the mipi dphy root divider to mipi_dphy_pre_div, this would remove a orphan clock and set the correct parent. before: cat clk_orphan_summary enable prepare protect clock count count count rate accuracy phase ---------------------------------------------------------------------------------------- mipi_dphy_post_div 1 1 0 0 0 0 mipi_dphy_root_clk 1 1 0 0 0 0 cat clk_dump | grep mipi_dphy mipi_dphy_post_div 1 1 0 0 0 0 mipi_dphy_root_clk 1 1 0 0 0 0 after: cat clk_dump | grep mipi_dphy mipi_dphy_src 1 1 0 24000000 0 0 mipi_dphy_cg 1 1 0 24000000 0 0 mipi_dphy_pre_div 1 1 0 24000000 0 0 mipi_dphy_post_div 1 1 0 24000000 0 0 mipi_dphy_root_clk 1 1 0 24000000 0 0 Fixes: 8f6d8094b215 ("ARM: imx: add imx7d clk tree support") Acked-by: Dong Aisheng Signed-off-by: Rui Miguel Silva --- drivers/clk/imx/clk-imx7d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 975a20d3cc94..f7f4db2e6fa6 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -729,7 +729,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) clks[IMX7D_LCDIF_PIXEL_ROOT_DIV] = imx_clk_divider2("lcdif_pixel_post_div", "lcdif_pixel_pre_div", base + 0xa300, 0, 6); clks[IMX7D_MIPI_DSI_ROOT_DIV] = imx_clk_divider2("mipi_dsi_post_div", "mipi_dsi_pre_div", base + 0xa380, 0, 6); clks[IMX7D_MIPI_CSI_ROOT_DIV] = imx_clk_divider2("mipi_csi_post_div", "mipi_csi_pre_div", base + 0xa400, 0, 6); - clks[IMX7D_MIPI_DPHY_ROOT_DIV] = imx_clk_divider2("mipi_dphy_post_div", "mipi_csi_dphy_div", base + 0xa480, 0, 6); + clks[IMX7D_MIPI_DPHY_ROOT_DIV] = imx_clk_divider2("mipi_dphy_post_div", "mipi_dphy_pre_div", base + 0xa480, 0, 6); clks[IMX7D_SAI1_ROOT_DIV] = imx_clk_divider2("sai1_post_div", "sai1_pre_div", base + 0xa500, 0, 6); clks[IMX7D_SAI2_ROOT_DIV] = imx_clk_divider2("sai2_post_div", "sai2_pre_div", base + 0xa580, 0, 6); clks[IMX7D_SAI3_ROOT_DIV] = imx_clk_divider2("sai3_post_div", "sai3_pre_div", base + 0xa600, 0, 6);