Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp60844lqb; Tue, 28 May 2024 08:51:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXFEO8mz26VghmCbTc9BN6U7ZWFiOIZGIcTuRYXWeUO9P16LJ+XrOsJm9yYqo5QVWGHUojR0eHrJgowtm3b9YAYDsendUKYTJ8azU4fGQ== X-Google-Smtp-Source: AGHT+IGH7UvSIi5UcT016Ay3FWsWLWQ8FfegpKh5onk4sexOmhjIvBTxqzfewYYqMvEiYoxrfDJr X-Received: by 2002:a05:6359:5f88:b0:18f:9dda:502d with SMTP id e5c5f4694b2df-197e5466abdmr1582429155d.22.1716911495360; Tue, 28 May 2024 08:51:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716911495; cv=pass; d=google.com; s=arc-20160816; b=h+8/13f3zrMSRpD8ElbkbFIQfJRJXk7Ti0wWKTC0qoO8+vHi3h+61WyCDCBb+ZZGi9 OHBNMQVYzdX+ORXI1InukEgzoPV5S6wmAvWyVz5JNPl9P++Zu71ugWT3irmef8xVLUfg zoTDL5v2C8ySpY9hOHHgijMlVAZ42L8tTfIkBMpVzZfPDLl6SQyaq9btZG5tj98cJuNc fPTUbp/X2Qyynp/FezTTkbs1tB008iGTno3UzablBEFd7YUyZ8ooYLkCVLJ9hnj+bYnp a9QQY5Ba5MGMcNQAbieZIaSXlxXQXg8v3FNk86lkeCEBHNQAiiNp5VCzDVzoSEu1LERo Zn4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=3bUxCMue09hBn28f4SiBpgvkHgQHBTwNx6pE/uKig6Y=; fh=xgN9aXx/s2tAeYY49ReQNQ55BZ9GCAnG8YYsDcCGfws=; b=XUcvkPGtlTaekcXDC72VAEcrbfsJVJR0yE0oge32uAiOxodO4sn4JhVnFF11bD0WGQ BVpdNG/SQZhWV9z5svyv8UHR/az2PtlP5RKHikQE/8j1r9+gNYnF6j+2mfue7gSTLGKI K086yG+ZPthKSRMfBYst/CAXujNj4PEicvCKIEJEAed3+pKZL6NtzIMPYkcGsZnzAiRa drvhUnuXioNSlBDXd5F0yrjpg5kVkXOf/oi2k+PdZipjQW0icWDVBGyWvzzEScktVFRi UC/C6wLSDE6sxl2T9JMN9vLV+ukob5K/8GmiSc/bI0RkvZW7U23dIlId7UYxvYe6GCPy vF6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@smartandconnective.com header.s=20191114 header.b=kza+oIZP; arc=pass (i=1 spf=pass spfdomain=smartandconnective.com dkim=pass dkdomain=smartandconnective.com); spf=pass (google.com: domain of linux-kernel+bounces-192691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192691-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-68221c6aeecsi8373460a12.157.2024.05.28.08.51.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 08:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@smartandconnective.com header.s=20191114 header.b=kza+oIZP; arc=pass (i=1 spf=pass spfdomain=smartandconnective.com dkim=pass dkdomain=smartandconnective.com); spf=pass (google.com: domain of linux-kernel+bounces-192691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192691-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8993C283ED3 for ; Tue, 28 May 2024 15:50:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3989171657; Tue, 28 May 2024 15:50:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=smartandconnective.com header.i=@smartandconnective.com header.b="kza+oIZP" Received: from smtp-42ad.mail.infomaniak.ch (smtp-42ad.mail.infomaniak.ch [84.16.66.173]) (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 42DD916DED4 for ; Tue, 28 May 2024 15:50:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=84.16.66.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716911448; cv=none; b=A65CaI0fmuLz6e1eE5M7SjknoJXm1vVoh6IgzKtWT3GxcKkJ37AooHI18xmhB19t/LOLq9FHLOzRJFR6GPVreX34SiGSuUAWhNdhlQ6hOcn1KFk15Qpt2wVF58fq9jZbADhwBw9CZpmCmns/u70cBp05zQ1CqfTtu++rZitacxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716911448; c=relaxed/simple; bh=MEpI9cbiuyp4XqZwjDIfCb+8/tqlEMab6Gbx7NbkZgU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=sVcf07vqMrzUlxt/VLYm/igoZUzF3mnVyGLkJJblYtxXhFh5YSWXJ5qGbUQkiqi9q+t17Vs0DhNknLL9jrQHlPu2lFyF/J0YBsG0lyILQarrp36diT/Xuz9FayWdgII+tL1kG5BJWYiTnmgaH/9gjt4tK9YLgKG0/Ah8T8TKNQ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=smartandconnective.com; spf=pass smtp.mailfrom=smartandconnective.com; dkim=pass (1024-bit key) header.d=smartandconnective.com header.i=@smartandconnective.com header.b=kza+oIZP; arc=none smtp.client-ip=84.16.66.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=smartandconnective.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=smartandconnective.com Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Vpbf94QnDz7nG; Tue, 28 May 2024 17:14:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smartandconnective.com; s=20191114; t=1716909281; bh=3bUxCMue09hBn28f4SiBpgvkHgQHBTwNx6pE/uKig6Y=; h=From:To:Cc:Subject:Date:From; b=kza+oIZPTVXxTlz1ZM527xyVxTPuxb24dIH12C62NsMEr607xEiPUZK5N/0uLvg2I aY5B53xN9B1qGCLHD06MGeXb0NirMpTrwHbuYeTp32wF4S97bEvcVYeUlN6F7Qi05A X4VdQMGMIkID7DIJjJyyaOzQBH4QaWHt+PShHhc8= Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4Vpbf83S5Qzw36; Tue, 28 May 2024 17:14:40 +0200 (CEST) From: Sebastien Laveze To: Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Oleksij Rempel , Lee Jones Cc: Sebastien Laveze , Abel Vesa , linux-clk@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: imx: imx6ul: fix default parent for enet*_ref_sel Date: Tue, 28 May 2024 17:14:33 +0200 Message-Id: <20240528151434.227602-1-slaveze@smartandconnective.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Infomaniak-Routing: alpha 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 --- 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