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: 10384471 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C148860548 for ; Mon, 7 May 2018 16:22:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD78427FAE for ; Mon, 7 May 2018 16:22:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A26E528917; Mon, 7 May 2018 16:22:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47F602895A for ; Mon, 7 May 2018 16:22:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752389AbeEGQWh (ORCPT ); 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-Google-Smtp-Source: AB8JxZoe9hnif6CzNilOypfiJPRetcRhUB0or7fNfm6lARTKOuYa6w/nuRiQC8e4s9mdc2VQicmrkQ== 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 X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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);