From patchwork Mon May 7 16:21:41 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: 135107 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp3355943lji; Mon, 7 May 2018 09:22:38 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpmb04wtWjYXPl5ARTceyeKDP+dg5D439Zlr+/G5lzQr4biJXWT1Yifxss6P5twHInSf/L7 X-Received: by 2002:a24:a90d:: with SMTP id r13-v6mr1885010ite.119.1525710158537; Mon, 07 May 2018 09:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525710158; cv=none; d=google.com; s=arc-20160816; b=dzQ9+1QR14bdgI2nXXR4uj0pHyPsPjb18EExN8ly0SKiUrQ33zfF19c63lu9uDGUwf 6khaWHvz2fujHLAPVBwt2OnMr+L90YlvgKSB171CiWRzbmGamdaodWPrVyBBsRlAzeMr ZSKLnBGVgJrdwXumggnIWZS6FNVJQbrTc+GaYgZJwH90CWoef/5HugrmqtZBzpcQ5Y25 N390uDeNF4NmGVTMeuaqFq5qnf3/IzB7vezA9CdfCp4IXIcP7Dy1g5G+n+IFwELZ6whm Ye+3+xOqmGut0mDj31uq5FVvqIPmqrRMxQ8CZ3D4Aj0kJRACmZAtd8Cx5TUDij6kJoSQ +agA== 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=PkmCvIFXTbBjkDS1P2WeyKJijywoczuYatT47bWnfTw=; b=J+/mDRX589OBBEKrzBw9HfK7MHrFNQ4pIK2OUTZL9JEvEx3IzuCjGeTkwmfh5Wu83K eMcyKMICY8VVo0CkBDBQ8wmRYORwSff1DDIxmUkEV3GiYyxAEeNXXjqH8W31DYiJTPSM TFfeU4vyf/PUlYTvGXqbWKS0x/iWh7I+RoJfjVDE0UoeYreOdiNa3HG4pAEzSmiwtHNn jAVjReU0tcBGXYtiKRMZf2Y/cUgq3V14wSeF9Xh0000pICdsfq3CNj6AyZSu56fbLmlj 9pHH37AGeFl7XORdxm63EiasaeOw/TA+3vN8afhhiFnC+fVhTpPDf5r2bVCXEYH/VrmD 6Z0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VjxpbVrB; 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 k124-v6si7484127ith.131.2018.05.07.09.22.38; Mon, 07 May 2018 09:22:38 -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=VjxpbVrB; 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 S1752389AbeEGQWh (ORCPT + 5 others); Mon, 7 May 2018 12:22:37 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38577 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751931AbeEGQWe (ORCPT ); Mon, 7 May 2018 12:22:34 -0400 Received: by mail-wm0-f67.google.com with SMTP id m198-v6so15661704wmg.3 for ; Mon, 07 May 2018 09:22:34 -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=PkmCvIFXTbBjkDS1P2WeyKJijywoczuYatT47bWnfTw=; b=VjxpbVrBxYG1KlfGWrd3Qp5FvylhuEeMvbmUjSRBZA6Dk7TI0mhGUQKCgSMhPxtKO+ 5m8ircL1yrkUOM5ajvuYpycxX+P3bBDbgcNBZ0e4SC51nBpxk1lDldHLSaR6Roi6Z2Ut 6ybUCbfUUcumBZUJPYKBh8APTVzWdnrwuVSyI= 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=PkmCvIFXTbBjkDS1P2WeyKJijywoczuYatT47bWnfTw=; b=nz693CSuNKhe+OTs7f4qoElxqaYqeCIpBr+GrOal2A3VKKmpsh96nustaZ0axXntkI PgNyDAW7Ofcm8vop/NyhTAslGMc3+E0NvqK3CBinP9O17A2mIruM8Mj6JL1iGAPoyJqK VVM7MJYSqL0TvrNUs+zPHc+KbVRQ6tj9B/iQGyQseDYNgDDgukhSRvzHw2BN2S/B2Rzv mm4UPnuReDMa3fG5QKht5gHEhxBkNkiJcAaw520QYme+PG4batkZnqKhVuOxa7ZqJrGR QkAQQCCx66bW2oHQuZbWN2psS7KY2J5GcHmb2ljF216M014K2vVFsxojVP/l6k9Drv3Q 3ijA== X-Gm-Message-State: ALKqPwfx0TgGrpoYOpR//qceXkmQh+MVb3xhRQ/kkd5v5Ooslj6poaDB VLgS5l1y02X66Wwnu2zhIN+2GQ== X-Received: by 2002:a1c:8444:: with SMTP id g65-v6mr1359891wmd.114.1525710153793; Mon, 07 May 2018 09:22:33 -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 b11-v6sm26410251wrf.50.2018.05.07.09.22.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 May 2018 09:22:33 -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 , Rui Miguel Silva , linux-clk@vger.kernel.org Subject: [PATCH v3 03/14] clk: imx7d: fix mipi dphy div parent Date: Mon, 7 May 2018 17:21:41 +0100 Message-Id: <20180507162152.2545-4-rui.silva@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180507162152.2545-1-rui.silva@linaro.org> References: <20180507162152.2545-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") Cc: linux-clk@vger.kernel.org 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);