Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4467887pxb; Tue, 25 Jan 2022 10:56:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyf1FYZflpMIZlJkogzYxWV70O7aKkPNRPb8veV+tWq4yanFW+zM0j6n8LjRCXpFicb0zq9 X-Received: by 2002:a17:902:cec7:b0:14b:5198:9c8f with SMTP id d7-20020a170902cec700b0014b51989c8fmr10081237plg.151.1643136990354; Tue, 25 Jan 2022 10:56:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643136990; cv=none; d=google.com; s=arc-20160816; b=0jYeIYaPPZyRoX3NJmYDm3CrPieICdofqve9tWgfseVhbwiwjpu/TEOroLHdKRl35l Gn8p6pGSs4iKi+ngO3cpfsCpV7N9Y+dsaGKhYdqx8aYOBjoD0d9XvDJs986dqZ0msDwe ptMeOY2yI1293oARwWkJBQn0rYViif0q8P2qOIg51ujbBcct2EgwWsSgvbYEq4H+BYyO lJuZXXVFYuet+kh0Bu82gGUGEtBUPZJeDxVvlL50+U3DYi982S6gDhdUUlHTqm7bGla/ ME0khre0YQKW+2JtGkZMZSjRzEkKIVJZ6GqrpziTLtP1rzFRvFnsqaf/fOjp/Jkl8mdd veuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/8kXB8Jvsf5emlSsCDXGO/3PDa7GmKokwIjfKKGh1fM=; b=t6F3vA9biz9ky+2C8oExIbtz/ZsVllriRn+f/cwHjdflWMWDEhf9wUD8F9mtgZAdyS tRro+sIFkyrCQUyMg6qHRzcK/JDEoT7crPoqpHlf8irgNUUPeR5fcFPEUYztI9AfACJd +Y8dvBZ56sjXOSHL14ivycpE4lICuV9Dqz+vA2Qm35Ai1a2gUb49lghITmmg3zRre3jM C6CDJXxQKy6O8DSM/s8GnZatlrqHoq8YLz2aBEZR7/C+xbKZ27AJ+q+2C9esj8XolPEP cJh4oh7RYDjXgx/3rIhYStipG8r/DpffThadwMD+jGJEwwNgGUZbXGmiwjJhGq/qkUG8 Va2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aDip0h+8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si19225087pfc.227.2022.01.25.10.56.18; Tue, 25 Jan 2022 10:56:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aDip0h+8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1575861AbiAYNPA (ORCPT + 99 others); Tue, 25 Jan 2022 08:15:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1575767AbiAYNLn (ORCPT ); Tue, 25 Jan 2022 08:11:43 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 356FEC061772; Tue, 25 Jan 2022 05:11:30 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id w14so9642212edd.10; Tue, 25 Jan 2022 05:11:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/8kXB8Jvsf5emlSsCDXGO/3PDa7GmKokwIjfKKGh1fM=; b=aDip0h+8v8iAk9XjOinn9q6DgtgcwkxeyUxnDvg55aTDwwpgfJdyDDV9tFYidAIfJL lZcPo1O7Vhz2Zgwcd4r8YWeE/1ZWaSlcNbOYVf6SJsAWAc4zpnvOcQct5tVUGXOCRFOC JJtqf+XhAaIX4i4FtuQAtTNT4MSuU+/4FNqiPVYzB60Y7uLQAhmPli1OZsg9o//EUSkU Tz7MlT7bZojw/Z9uuUu0GVElMEtda0On0/QDVEKyYBfgoxJ/aCoct9FGzyQ2YpRu6mO9 ZfotZYk6KN4+fzA6NjJWZge4bU8mDr60VBg3HHYg9l9nRbFaWwOcN2aWBMmh1pVpIVk1 9uhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/8kXB8Jvsf5emlSsCDXGO/3PDa7GmKokwIjfKKGh1fM=; b=PJ5GLodum514Wb3No59CqjFb4XpFtIYhroSQT9dtfZyih1nG0bPqdFQRRRog7PL/3B JzLtTs+u7JGYXb+qDvrtF9eb5nyITDJoJxxqTQMQ9hihkHRgKxHdqVdATOD+kUL2S6KW GAetRihb8cssl3KULQYquU9DbYTSzTyMOSlVFEzz2LdYb4svukgCVMfzNwezTPRrJU5J wJ++twt9kbskO11IjQPEKT/5reAXmVL66qSdpBFBatGugttGkGqEVmZbtHcXnnv5nnuL lepnXR2rOxbePR+6BY227GEBt8cSDF5dikKqPW2yGs6sSD7I71get4XpNv9IdVPYRZdd KhHQ== X-Gm-Message-State: AOAM533rIxwD2uB6UFst/AjleDvQBXXxPTVZhXTga66Ey+hwNmxWvK4A 3Gg+G1out+ETi7PPZi3YEJhPtOq9eyOT2sm7O5uYK3dVF6A= X-Received: by 2002:a50:d709:: with SMTP id t9mr11768142edi.50.1643116288702; Tue, 25 Jan 2022 05:11:28 -0800 (PST) MIME-Version: 1.0 References: <20220125085206.8508-1-ceggers@arri.de> <20220125085206.8508-2-ceggers@arri.de> In-Reply-To: <20220125085206.8508-2-ceggers@arri.de> From: Fabio Estevam Date: Tue, 25 Jan 2022 10:11:17 -0300 Message-ID: Subject: Re: [PATCH 1/6] clk: imx6ul: disable gpmi_io clock before changing parent clock To: Christian Eggers Cc: Abel Vesa , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , linux-clk , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel , Stefan Riedmueller Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christian, On Tue, Jan 25, 2022 at 5:53 AM Christian Eggers wrote: > > gpmi_io clock may have been enabled by the boot loader. All children of > enfc_clk_root must be gated in order to prevent glitches during parent > change. > > Signed-off-by: Christian Eggers > --- > drivers/clk/imx/clk-imx6ul.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/clk/imx/clk-imx6ul.c b/drivers/clk/imx/clk-imx6ul.c > index 520b100bff4b..f599ae50dd9f 100644 > --- a/drivers/clk/imx/clk-imx6ul.c > +++ b/drivers/clk/imx/clk-imx6ul.c > @@ -514,6 +514,15 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node) > else if (clk_on_imx6ull()) > clk_set_parent(hws[IMX6ULL_CLK_EPDC_PRE_SEL]->clk, hws[IMX6UL_CLK_PLL3_PFD2]->clk); > > + /* > + * gpmi_io clock may have been enabled by the boot loader. All children of > + * enfc_clk_root must be gated in order to prevent glitches during parent > + * change. The task of re-enabling is left to the gpmi-nand driver. > + */ > + if (clk_hw_is_enabled(hws[IMX6UL_CLK_GPMI_IO])) { > + clk_prepare_enable(hws[IMX6UL_CLK_GPMI_IO]->clk); > + clk_disable_unprepare(hws[IMX6UL_CLK_GPMI_IO]->clk); > + } It seems your patch series was corrupted. Could you please try sending it via git send-mail?