Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp59139lqb; Tue, 28 May 2024 08:48:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVP+R66BKHkXi92KCrDc7rr/OvtNbje3FG8Z2ejLbiblYiEqtAepM2Ho54WGjdxzI2o50fHTv5XqBa7IZbrRE9wQAZQcCeDI7xKmpKfmQ== X-Google-Smtp-Source: AGHT+IFbX1N7zhhJ3NzWGsC08q/4AgtjRbICOWWB5uwdhLuTwFxuE6HE12ymynzzmHqiEcQgizRS X-Received: by 2002:ac2:4a9a:0:b0:51d:8882:cd69 with SMTP id 2adb3069b0e04-529664dae34mr7745132e87.53.1716911314314; Tue, 28 May 2024 08:48:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716911314; cv=pass; d=google.com; s=arc-20160816; b=grXJb/h+DxJMpm8DTKVCL3XuzCwO2Tp9vZN43CV1kjmNPOWklU6urTktOcYqGto+/G KkSzhwqe3gL1jHP7BiF2W0wEaK8SbEoS0gRWtIrJfpEOkXUeI6Gj/KXb3fz3HS5XGROz 5Dy1E8NSsAVgrkht+kEzTE/4w37PxzFU5Q35bifvhwbvKSWDdLpTSknOYijMkmiuXFQN Qq6wsANTd5TEntbWvyuLfG8zdWLi8XlmQA3oLxAb+l/YrBMXUE9K660U4toPNyTKQvma hCuRDhunpo0z66qWBI86371Qky0Z1jnoCjzAKB+fH412f344aDaCAA5oqhi0vQ2Tel/d fLwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=O+EUTI5jCRj+oeJN6NnYz0kaaefbEzeTqCU0QhIQFyw=; fh=K4q4uSN3Mll9mPCVa82oFo7/sHZOq8pRpycaXNqGUkk=; b=WYbMbiXwGHKTJkZRonoSiZ6gnHZ/gsZNDj7NblUpNqQEHIOjRDxC4n9YOpmTu3EnoV 2XdWw7XXvhJxSC99XjHWytN2AYz6dCpPycqsQiuacJTeuu56e+AxWGUuSqoB3TBjzrd2 pelg3uD8eruFTyteNlErih7mlpVKzKFCw5DihK1ngWjAsCnP3Gel9pvNIpT/WRfKDU7+ GCZRqoDI04aZavdoNqrR6oV37JNIwkqvC6oGEh4GP2w27eXCxmz738qOFHSuWrdt/V05 lVcLBi0mvw5g+OmqmaER/XWKAsVeMNR4NCjPJC/CfCIy/lUrYDJPDOu69Nz2rfC1fmy4 m/vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-192689-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192689-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5785245f5ddsi5185916a12.308.2024.05.28.08.48.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 08:48:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192689-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-192689-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192689-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 086141F2274D for ; Tue, 28 May 2024 15:48:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0050171647; Tue, 28 May 2024 15:48:28 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4965E10A2A for ; Tue, 28 May 2024 15:48:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716911308; cv=none; b=mNYXYsYe/dPGqpp3U+AHog4U4V8AXZxGt9WifylldnkJf1rFrS2wtwSLZzUBsY8i91MK0vqBnT1mdV8L3SoHXeo4Gcvsxzi9UzJVqe9Uip9Wb9neNuGazLdM3Vk7g8xm8qYJEBWLTS8fi3PtpfFWYn+8c5EjkEaClVGLnCC4I5o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716911308; c=relaxed/simple; bh=WqG9sZYchyys4D5XzM/xFNcQEPLv6PSK1vKnXJvpQVA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZRJ57bfYJE0FJWJLvryIHcl4Oz6lSt9m5cuGelFU9NFu/mnupgcLUsRqZVMbc2VBzyjXI25tnK4LQhC+3FjW/6rADxweqE03w2qyx5muYjlQK9nraWDkyjPiQx7GrpkFleGiJ9FZOBeDykvEq6wB2j2lv7sCWDrIELb8rGIpfeM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sBz3c-0003Cq-9A; Tue, 28 May 2024 17:48:12 +0200 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sBz3b-003LZF-G9; Tue, 28 May 2024 17:48:11 +0200 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sBz3b-001P6V-1I; Tue, 28 May 2024 17:48:11 +0200 Date: Tue, 28 May 2024 17:48:11 +0200 From: Oleksij Rempel To: Sebastien Laveze Cc: Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Lee Jones , imx@lists.linux.dev, linux-kernel@vger.kernel.org, Abel Vesa , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] clk: imx: imx6ul: fix default parent for enet*_ref_sel Message-ID: References: <20240528151434.227602-1-slaveze@smartandconnective.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240528151434.227602-1-slaveze@smartandconnective.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On Tue, May 28, 2024 at 05:14:33PM +0200, Sebastien Laveze wrote: > The clk_set_parent for "enet1_ref_sel" and "enet2_ref_sel" are > incorrect, therefore the original requirements to have "enet_clk_ref" as > output sourced by iMX ENET PLL as a default config is not met. > > Only "enet[1,2]_ref_125m" "enet[1,2]_ref_pad" are possible parents for > "enet1_ref_sel" and "enet2_ref_sel". > > This was observed as a regression using a custom device tree which was > expecting this default config. > > This can be fixed at the device tree level but having a default config > matching the original behavior (before refclock mux) will avoid breaking > existing configs. > > Fixes: 4e197ee880c2 ("clk: imx6ul: add ethernet refclock mux support") > Link: https://lore.kernel.org/lkml/20230306020226.GC143566@dragon/T/ > Signed-off-by: Sebastien Laveze Reviewed-by: Oleksij Rempel Thank you. > --- > drivers/clk/imx/clk-imx6ul.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/clk/imx/clk-imx6ul.c b/drivers/clk/imx/clk-imx6ul.c > index f9394e94f69d..05c7a82b751f 100644 > --- a/drivers/clk/imx/clk-imx6ul.c > +++ b/drivers/clk/imx/clk-imx6ul.c > @@ -542,8 +542,8 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node) > > clk_set_parent(hws[IMX6UL_CLK_ENFC_SEL]->clk, hws[IMX6UL_CLK_PLL2_PFD2]->clk); > > - clk_set_parent(hws[IMX6UL_CLK_ENET1_REF_SEL]->clk, hws[IMX6UL_CLK_ENET_REF]->clk); > - clk_set_parent(hws[IMX6UL_CLK_ENET2_REF_SEL]->clk, hws[IMX6UL_CLK_ENET2_REF]->clk); > + clk_set_parent(hws[IMX6UL_CLK_ENET1_REF_SEL]->clk, hws[IMX6UL_CLK_ENET1_REF_125M]->clk); > + clk_set_parent(hws[IMX6UL_CLK_ENET2_REF_SEL]->clk, hws[IMX6UL_CLK_ENET2_REF_125M]->clk); > > imx_register_uart_clocks(); > } > -- > 2.34.1 > > > -- 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 |