Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4328406rwb; Mon, 16 Jan 2023 22:26:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXt+hmhztUfLhMC5oKcOLpNRVrFoq5n/70xRWZeoSEoAhE88SbC4ImQFjBFsHffd/3k5OXN+ X-Received: by 2002:a62:6302:0:b0:582:848c:6281 with SMTP id x2-20020a626302000000b00582848c6281mr2444285pfb.2.1673936780882; Mon, 16 Jan 2023 22:26:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673936780; cv=none; d=google.com; s=arc-20160816; b=yJ5qbEGczDlHtfqDI8IHghVkKciNSRzCbiPyrgbL/NolTcE8NxllG9td6CJlJue/Yi E8gthHkbT4Ydyp+HkK5Pu+aAp7/D/JfNUqYfzWpZvG/dhq5S9/oYBIIQRTCvyLSQ1aSp JLcKWaP4pFsdbRwVSF5+ACST/DXbz+sckza7hqglZxouWiJyoXqzh624ATF8KcGeJGKv jEbdspbBUFllTC2YQRCbusgvIy/uLAmID09Zo3ZlOs7hDM8ueqHo5xmstcxqPOZBh6UR jHef3tp3JccSUB0GN+OuyWw8rJ9UdLVP/roP/cIlxjREqEXn8J0RVJp6+rxHn3mvPIhW DZAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=wCqmKtCW5CIm6g0ejG4ulpk+/E/aeiiISJz82a0Pqr4=; b=gAhsHtT2Ie8YfELEwPSPHOFpqyP9WkyH9w/TtZL0w6rRSeocvDrjzt93/WEd42LPxs 9EXRtlNWxB/A7ZGWuYosrask6I+l5oDgZZh2Oq+VjA+e/nYPfe7Gn90iZzd52lPd1S4x SXRQNA/VudFo79lE+d3KSv7uSO0ZNCMWWRBclcmOFy2FsLZsi9k2iG2wrdxl8HnpZCa3 NVY6e7ExSS/Z7WwoLcNEGQIMl2LfgOo5Q5FNIs9wv/+I4BT/3ENuJuqOfv/l2YVh8RBO vgXHVnUnmKQlH2+r7mIt08OgiNbKBgBwdTeIjABCvnWNStq3xLI7Wi7v969lsjwRl8T5 Sukw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020a056a0024c200b00574277cb38bsi6402178pfv.375.2023.01.16.22.26.14; Mon, 16 Jan 2023 22:26:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235765AbjAQGQw (ORCPT + 52 others); Tue, 17 Jan 2023 01:16:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235737AbjAQGPw (ORCPT ); Tue, 17 Jan 2023 01:15:52 -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 0E0A025E26 for ; Mon, 16 Jan 2023 22:15:44 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pHfFb-0002TQ-Do; Tue, 17 Jan 2023 07:15:15 +0100 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pHfFZ-006c09-Gj; Tue, 17 Jan 2023 07:15:13 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pHfFX-00Fckj-53; Tue, 17 Jan 2023 07:15:11 +0100 From: Oleksij Rempel To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Abel Vesa , Michael Turquette , Stephen Boyd , Richard Cochran Cc: Oleksij Rempel , kernel@pengutronix.de, Fabio Estevam , NXP Linux Team , Russell King , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v2 18/19] ARM: mach-imx: imx6ul: remove not optional ethernet refclock overwrite Date: Tue, 17 Jan 2023 07:14:52 +0100 Message-Id: <20230117061453.3723649-19-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230117061453.3723649-1-o.rempel@pengutronix.de> References: <20230117061453.3723649-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ethernet refclock direction is board specific and should be configurable by devicetree. In fact there are board not working with this defaults, which will be fixed by separate patch. Signed-off-by: Oleksij Rempel --- arch/arm/mach-imx/mach-imx6ul.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/arch/arm/mach-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c index 35e81201cb5d..9208a2d6a9da 100644 --- a/arch/arm/mach-imx/mach-imx6ul.c +++ b/arch/arm/mach-imx/mach-imx6ul.c @@ -4,8 +4,6 @@ */ #include #include -#include -#include #include #include #include @@ -16,30 +14,12 @@ #include "cpuidle.h" #include "hardware.h" -static void __init imx6ul_enet_clk_init(void) -{ - struct regmap *gpr; - - gpr = syscon_regmap_lookup_by_compatible("fsl,imx6ul-iomuxc-gpr"); - if (!IS_ERR(gpr)) - regmap_update_bits(gpr, IOMUXC_GPR1, IMX6UL_GPR1_ENET_CLK_DIR, - IMX6UL_GPR1_ENET_CLK_OUTPUT); - else - pr_err("failed to find fsl,imx6ul-iomux-gpr regmap\n"); -} - -static inline void imx6ul_enet_init(void) -{ - imx6ul_enet_clk_init(); -} - static void __init imx6ul_init_machine(void) { imx_print_silicon_rev(cpu_is_imx6ull() ? "i.MX6ULL" : "i.MX6UL", imx_get_soc_revision()); of_platform_default_populate(NULL, NULL, NULL); - imx6ul_enet_init(); imx_anatop_init(); imx6ul_pm_init(); } -- 2.30.2