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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70BAEC54EED for ; Mon, 30 Jan 2023 12:15:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235604AbjA3MPs (ORCPT ); Mon, 30 Jan 2023 07:15:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235876AbjA3MPo (ORCPT ); Mon, 30 Jan 2023 07:15:44 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D8BB59F2 for ; Mon, 30 Jan 2023 04:15:42 -0800 (PST) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pMT4N-0003qm-24; Mon, 30 Jan 2023 13:15:31 +0100 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1pMT4M-0002HO-A1; Mon, 30 Jan 2023 13:15:30 +0100 Date: Mon, 30 Jan 2023 13:15:30 +0100 From: Oleksij Rempel To: Abel Vesa Cc: Richard Cochran , devicetree@vger.kernel.org, kernel@pengutronix.de, Stephen Boyd , Fabio Estevam , Sascha Hauer , linux-clk@vger.kernel.org, Russell King , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Krzysztof Kozlowski , netdev@vger.kernel.org, Shawn Guo , Michael Turquette , Abel Vesa Subject: Re: [PATCH v2 15/19] clk: imx6ul: fix enet1 gate configuration Message-ID: <20230130121530.GA10978@pengutronix.de> References: <20230117061453.3723649-1-o.rempel@pengutronix.de> <20230117061453.3723649-16-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 29, 2023 at 07:32:31PM +0200, Abel Vesa wrote: > On 23-01-17 07:14:49, Oleksij Rempel wrote: > > According to the "i.MX 6UltraLite Applications Processor Reference Manual, > > Rev. 2, 03/2017", BIT(13) is ENET1_125M_EN which is not controlling root > > of PLL6. It is controlling ENET1 separately. > > > > So, instead of this picture (implementation before this patch): > > fec1 <- enet_ref (divider) <---------------------------, > > |- pll6_enet (gate) > > fec2 <- enet2_ref_125m (gate) <- enet2_ref (divider) <-´ > > > > we should have this one (after this patch): > > fec1 <- enet1_ref_125m (gate) <- enet1_ref (divider) <-, > > |- pll6_enet > > fec2 <- enet2_ref_125m (gate) <- enet2_ref (divider) <-´ > > > > With this fix, the RMII reference clock will be turned off, after > > setting network interface down on each separate interface > > (ip l s dev eth0 down). Which was not working before, on system with both > > FECs enabled. > > > > Signed-off-by: Oleksij Rempel > > I'm OK with this. Maybe a fixes tag ? Hm. Initial commit was: Fixes: 787b4271a6a0 ("clk: imx: add imx6ul clk tree support") but this patch will not apply on top of it. Next possible commit would be: Fixes: 1487b60dc2d2 ("clk: imx6ul: Switch to clk_hw based API") But this patch didn't introduce this issue, it was just refactoring. What do you prefer? Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |