From patchwork Thu Apr 19 10:18:00 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: 10349501 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 0D6836023A for ; Thu, 19 Apr 2018 10:18:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1760287FD for ; Thu, 19 Apr 2018 10:18:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5ABA28807; Thu, 19 Apr 2018 10:18:43 +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=ham 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 8B1C1287FD for ; Thu, 19 Apr 2018 10:18:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751042AbeDSKSj (ORCPT ); Thu, 19 Apr 2018 06:18:39 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:34061 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751271AbeDSKSh (ORCPT ); Thu, 19 Apr 2018 06:18:37 -0400 Received: by mail-wr0-f193.google.com with SMTP id d19-v6so12536896wre.1 for ; Thu, 19 Apr 2018 03:18:37 -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=bb1fCFf0ki5H17noo2ZaVo2H95O0YhcEXjLy7xMYLLk=; b=aSdX2o0o4B4/CiU21y9pit/IljbNveH0ESGhG1qE3eIOVaowFprpkbXyNZyW20hJGb bPrVGq33ACJHIBQusPw1CqMWQdZLuAGp6y7LO4YME41GLrHeTpR1Cjv4LRp5JrQWWAgP xhZiSRPCdzET/FjF8C9j+YRXkPC49pEJoAxXc= 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=bb1fCFf0ki5H17noo2ZaVo2H95O0YhcEXjLy7xMYLLk=; b=q9AzyN5NjqfdtN/B4SMcKgAbsJCZHd5/Y1136kNNBkPC8iJF3UWzNI6lieooKYWDD8 0uD0TiTZzZ1ZWVSFdWpujFvHXzwq8//Ojry7RYvNGVYMVPtUBIrdiPQLXryhI791q7E5 S4aGXrL0fN+GcMTHp5FvJTHPkIfwhPYVmqnVGiv8LrerHCFPWSB9X1iMJK7RocdIwWTJ FRuvVcqdNMyc2MjtSwDkpJW+ipC6VTy0BhmFH6GKOt53etdHEBhVBFs1LkUL0ZzN1ugD TMA0KNL+DWZ0Hl3Iwssf9k5yweBoJBz+HuD6bb/LDTP85ItanZfgBbhe6skT/YbkyTFl NGHg== X-Gm-Message-State: ALQs6tAuuVosqEH0Kn1YTqd02gq7tH0Mn2/zNBwJsY2AQIRW6L/DsHLt vOkZzhGsfOEqrp5ibUZvzznCeg== X-Google-Smtp-Source: AIpwx49vqBCxXWgP8sLiZMAew5Q5ntUTq2FMlt0LcfTd9frq/mXN1Uf+IfROUKnf5HC5AfYkKF0voA== X-Received: by 2002:adf:b8b0:: with SMTP id i45-v6mr3851134wrf.105.1524133116663; Thu, 19 Apr 2018 03:18:36 -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 v66sm5220937wmd.41.2018.04.19.03.18.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 03:18:35 -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 Subject: [PATCH 03/15] clk: imx7d: fix mipi dphy div parent Date: Thu, 19 Apr 2018 11:18:00 +0100 Message-Id: <20180419101812.30688-4-rui.silva@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180419101812.30688-1-rui.silva@linaro.org> References: <20180419101812.30688-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 Signed-off-by: Rui Miguel Silva 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);