From patchwork Fri Jun 2 22:16:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13265915 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6ED76C7EE2C for ; Fri, 2 Jun 2023 22:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SLyWicqykDmB/T8xVwowopRnSmx5vYtrRInKNIrhjMk=; b=WDF34lyOv+/XFC iaOxRp8FLJHPO+uWV6A4e6XLPmzVingQlo01yA/DRGcv17yBSvzqGbHY3bfVmGeOACH1hfBpLud2z O+YzOteEEW0NMZTtDn4bh/ofLlvUJ5m+leqnYQrEfpLzprn2yzzM9fgNzqkfEaZux0kCpG1NYA4Lg AoCUMjx34w80RKwJ5F7KZL5xCZmX+Vh0H/E/8PIcTEXAsZcnJQoxC+1TbNMTQ2C82808ZWFlU+C/z jIJWiziAYEOEy+NG92jO782ZKUtzApgQhJO2K/TsgXFkZzqjn9/gteUSW65f9K1yiEsHqd2606IXB yvdmuT5FINez4NNTaJ1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q5DB6-0083yR-2C; Fri, 02 Jun 2023 22:23:24 +0000 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q5DB4-0083xZ-0P for linux-arm-kernel@lists.infradead.org; Fri, 02 Jun 2023 22:23:23 +0000 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-64f48625615so313803b3a.0 for ; Fri, 02 Jun 2023 15:23:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685744599; x=1688336599; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2rErrTpHTVSZk1IodoNCi7TyWfBvMAj2ALKyW0WqhMw=; b=NPBAmaqsmd0W7VRlZNBXGhioB0AvwQU2N8U6fq25Xng4G/X2p1tVdueAHsHJWXprtn 5i6N5IgRM+ebyG3aTIk3Perx5wCvN4gEIUDSSUkuLla+sCRPxHkuaaJYpcJgxGBvyAFT dwEgZa4DqeJiXONHJbkmiBBuM6mjoS2KCDYJuVeiUvhmYkipFq/PQ77yi3krY5Zdu6jT cha24BqIYoAH0mLlT8P4c77/KLNCI+5QXsPphCzw9S/1PHXwtjBXEWkH7Z9y5JyGuxW4 q4QAqIC7+3CqLiCYURWxLbMD93n8Kb8PDY9EMRHyJVmXL0AIVUOZMRRmaFB41cVnjR7F GANA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685744599; x=1688336599; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2rErrTpHTVSZk1IodoNCi7TyWfBvMAj2ALKyW0WqhMw=; b=M44zyzbWDVdJVVYsZKdGQxaEpnvlmRf+iLJXPGAjEul5YsspXIULrju5KX77Sp/p07 3Ex4N38SjCqX2COor+68zCtGjooiRkH4p1L4otNSTf4bdYOGIj5hziO1g+z/zXWVXYPQ JrXc5nHo0XKv3O1P+PDqFfpLoBya7KkBr5vpe2C7qbS4D8wuIB7Ze3/wn+/aC2/QIeMs IJ3V4UuPO3tykArese0lNfkhkfaUywBJyS8BCl3HnW9TJfoz9aEi8Bjy6PKBSnkIUfjI HyQZGyJndLt3nd+VRXXTQlXIHCIQ8UUjJhShgtT2iWgUApA29yLStIfZ+iwCzubsP+K+ poZQ== X-Gm-Message-State: AC+VfDyEZsBZwA4LORgopI+YzArpvAQHndrpveBiX2fQaETspi+q/dzM m22UCEo76aqcRaLZ6kzp051VpQB+3Rs= X-Google-Smtp-Source: ACHHUZ4sxR8twVuVuqR45j0iedDkPDiMF8PknPV7ZyI4sX8skgaWe5xRXuzh3ossftDr0lRyOa3Fcg== X-Received: by 2002:a4a:ba8d:0:b0:547:50b4:9236 with SMTP id d13-20020a4aba8d000000b0054750b49236mr5707180oop.0.1685744182271; Fri, 02 Jun 2023 15:16:22 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:dad1:c980:e6de:3901]) by smtp.gmail.com with ESMTPSA id k4-20020a4a4304000000b005584e0c8f9csm951587ooj.3.2023.06.02.15.16.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jun 2023 15:16:21 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: hs@denx.de, abelvesa@kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH 3/3] clk: imx: imx6sx: Remove hardcoded LCDIF1 parent Date: Fri, 2 Jun 2023 19:16:04 -0300 Message-Id: <20230602221604.155027-3-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230602221604.155027-1-festevam@gmail.com> References: <20230602221604.155027-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230602_152322_162577_6491C8A5 X-CRM114-Status: GOOD ( 12.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Fabio Estevam It is not a good idea to hardcode the LCDIF1 parent inside the clock driver because some users may want to use a different clock parent for LCDIF1. One of the reasons could be related to EMI tests. Remove the harcoded LCDIF1 parent as this is better described via devicetree. Signed-off-by: Fabio Estevam --- drivers/clk/imx/clk-imx6sx.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx6sx.c b/drivers/clk/imx/clk-imx6sx.c index 3f1502933e59..b110258b9036 100644 --- a/drivers/clk/imx/clk-imx6sx.c +++ b/drivers/clk/imx/clk-imx6sx.c @@ -498,10 +498,6 @@ static void __init imx6sx_clocks_init(struct device_node *ccm_node) clk_set_parent(hws[IMX6SX_CLK_EIM_SLOW_SEL]->clk, hws[IMX6SX_CLK_PLL2_PFD2]->clk); clk_set_rate(hws[IMX6SX_CLK_EIM_SLOW]->clk, 132000000); - /* set parent clock for LCDIF1 pixel clock */ - clk_set_parent(hws[IMX6SX_CLK_LCDIF1_PRE_SEL]->clk, hws[IMX6SX_CLK_PLL5_VIDEO_DIV]->clk); - clk_set_parent(hws[IMX6SX_CLK_LCDIF1_SEL]->clk, hws[IMX6SX_CLK_LCDIF1_PODF]->clk); - /* Set the parent clks of PCIe lvds1 and pcie_axi to be pcie ref, axi */ if (clk_set_parent(hws[IMX6SX_CLK_LVDS1_SEL]->clk, hws[IMX6SX_CLK_PCIE_REF_125M]->clk)) pr_err("Failed to set pcie bus parent clk.\n");