Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp338800lqp; Wed, 12 Jun 2024 03:10:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUoj6LobD6oYajlnJqLclkEVNFt1z7jZ/HPJNRoZ6O9YvFOk42EP/0gQQ6PnNSTBG+l7W2TkkRjr1U1HCtrMuALdYtoT2+Jd7OJQqCJYw== X-Google-Smtp-Source: AGHT+IE12AtQaDRtvNpCuQ8+WplH7On0hXoSca4nhWE2Q99w2fq6mMCzVfgAn4S+Roh7K5LK2XlN X-Received: by 2002:a05:6871:7a3:b0:254:b4b5:f84b with SMTP id 586e51a60fabf-25514e63007mr1438743fac.46.1718187015117; Wed, 12 Jun 2024 03:10:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718187015; cv=pass; d=google.com; s=arc-20160816; b=Sq0+p2upI5+mGb0cPzY4RdvRV0XqZiOrY/Lx6TpJ3PEK38jIgs5hY83t1c8xbTDTDm DQ4SdzdSXjuthMGSOFmUoCPbmEHuNMGFGYbHnuNEOq/dDGU5jNzc1dPQGMeaD3SjbasY O1Ytw9QWU8WtHdU5aCs155np8BJldv0Z3vt1IsVzItZoTodWuYtIs2kPVq/XWyzgRbFT YvEONeh69pjqESepa1qnrtFBYMAAbMT0xi4fMaYfPJx/Te5dYLi6CNbtau3xwqkHxck4 K63kOBkqTO3KdrpDEq/pGaGo6Fi/xu3ExGbOmdy4dZwAm4axF75mTaFSC0wWSwNbc/gU dCSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:feedback-id:dkim-signature:dkim-signature; bh=wLj493SWdo5j4DBwjfdHV9ZZ5JW4G8Z6NpCIOJtkW64=; fh=qiNtu2cWk68hYivofTHRibE3jmi7UziuUm6soyA9tIU=; b=uB7LHNIPKZfiyt2At9SmB4z5ZMzRhfH4RX7kQ+FF92DPcoEfNrOLw/5kgt0O8Y6WfC VPkSRJluiZ2zoWLBje8KNK1rOX5jMzG6FazNxkZxKsvfVPKycuxK+DogHCKt/+AsFMO7 MJHTFFxiqkUQD9VanWLhIgQ7/SBzvn22RHriosMBDFajTyWRxOrXtf9BTTOKLA33Jh4E lNUW7jXWe2ovZXu/2rPnHc7szKpmw8gXY6BryfCGa01u4B7G3mlZPLnhsEmXP28tuadI vtzOOcu3+Zml/zPfB3rBt0jPJVlNWTJ5NqrVLOwEbYq1B0IZwp57HmTG5YmQ+YcaXc+J 0mgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b="yN8eyLO/"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=fGd6rxNx; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-211332-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211332-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-705bec1fe31si995986b3a.61.2024.06.12.03.10.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 03:10:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211332-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=@flygoat.com header.s=fm2 header.b="yN8eyLO/"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=fGd6rxNx; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-211332-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211332-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com 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 93D8B281EBD for ; Wed, 12 Jun 2024 10:10:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B12CD16F820; Wed, 12 Jun 2024 10:09:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="yN8eyLO/"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="fGd6rxNx" Received: from fhigh4-smtp.messagingengine.com (fhigh4-smtp.messagingengine.com [103.168.172.155]) (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 42BEF16F0F3; Wed, 12 Jun 2024 10:09:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.155 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718186944; cv=none; b=rTPwx7YTDDoNyhn+DG4FDHMCcppz0V6lZS31fufYdhWNQQr7PX5mjFDjYmT7bnsvnAmh7qs/0Nyd1V8gNPt395uXTZXxXg687OQxO0JftxTtCAjkXYUZVQxf/iY1POPi8rk6CGtND4VpHxwNk2s/nc5HPgHsOReSxS6JX5aNxP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718186944; c=relaxed/simple; bh=KuQOrkXjo/A7IZ7qIqgIRj2Axa7d+P9UF5/rZtbi+pw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GBmCxto4DzSpjc4mgys/fawapYu/IfPIhK5nHfjhExdnKL3+vV4cJmeXHgRYomSzYfeIShoqVRCgG98NMxTjORz2Dgm0g5nLV3aydmkn/qbK3aPhD3Jjuv5cM9KFxZINR37mRIUt+VxHZIUtrbRtDVwvG4YVLCZE4gah+er7mdo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com; spf=pass smtp.mailfrom=flygoat.com; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b=yN8eyLO/; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=fGd6rxNx; arc=none smtp.client-ip=103.168.172.155 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flygoat.com Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 67FEA11401D4; Wed, 12 Jun 2024 06:09:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 12 Jun 2024 06:09:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1718186942; x=1718273342; bh=wLj493SWdo5j4DBwjfdHV9ZZ5JW4G8Z6NpCIOJtkW64=; b= yN8eyLO/NbnG3Z+NMqb5uKHGfW7XJDSGBTYD3290xXm7poEYfwI3wUI4UIQ5Rpff ALJkTZquILyjt1I6SoTGv5CfY7v0dtb99kxyYT/FIzK1m6tU25rhsn3LpacyCtDX LUqw3pIkwEsvu5emfJ/Zv2oBVNeDp85314KuBq9PLFQ1JLKf73UBdW/0ZA25Zypd D6mX6ch8zfklselPjwxD5b8vl/EVE67Ia5h3U8gDFLr0/u/gV7USR49kGS+8QJgw 8d9BasJqmVtHcp7MqeyrFFiijETClMaDkFxG5Yf8SsXQ0TqddtlVhYoQW0Rzv/Ib qFevkuEZ10uKat0Rypx14Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1718186942; x= 1718273342; bh=wLj493SWdo5j4DBwjfdHV9ZZ5JW4G8Z6NpCIOJtkW64=; b=f Gd6rxNxUwsOJGMeLs0uDUM8wi2EbE6ShnpUZbMSW/DyBTREAGxezeOGiBiykryVj 12FXpPMgIpBae8yH5ze9q6TjwjEdZ3QXdDWTbJnRjF0mGuBHNsZIVWrm4ALlkp5J wfnMVh2KR03VA5+QkXgnZvqKs6ka+b4VuZL89YdHzoppFHf3z9C5flClMOQq8JTc GM/cY2AXViLpRh1aVwixaWH9ka6cM7NqECF92/lU9cB/xdw1mH1rH7id/cE9zqr/ fdr02Bx+2kY/ISBpVnCSwufVXRrKkumFIPDhdstGUoIPH6Y2zY8LIXjgxWSrhIB3 4Eb9FzrHGLCFWH8nbMxaQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedugedgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdejnecuhfhrohhmpeflihgr gihunhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqne cuggftrfgrthhtvghrnhepvdekiefhfeevkeeuveetfeelffekgedugefhtdduudeghfeu veegffegudekjeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Jun 2024 06:09:00 -0400 (EDT) From: Jiaxun Yang Date: Wed, 12 Jun 2024 11:08:56 +0100 Subject: [PATCH v2 4/6] MIPS: Move mips_cm_probe after prom_init 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-Transfer-Encoding: 7bit Message-Id: <20240612-cm_probe-v2-4-a5b55440563c@flygoat.com> References: <20240612-cm_probe-v2-0-a5b55440563c@flygoat.com> In-Reply-To: <20240612-cm_probe-v2-0-a5b55440563c@flygoat.com> To: Paul Burton , Thomas Bogendoerfer , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Serge Semin , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jiaxun Yang X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=968; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=KuQOrkXjo/A7IZ7qIqgIRj2Axa7d+P9UF5/rZtbi+pw=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhrTM4m3lm1pM3RVNhW0Wd16zVvn5/cg06cglNVN+H2VXy 2c6+Le/o5SFQYyLQVZMkSVEQKlvQ+PFBdcfZP2BmcPKBDKEgYtTACZSMp/hf9mhlJzG6eq6gi9z Ww26ZReed5vr8edfpOMUMUaDVyviTzH8D1vo+OZzmeZrLt4AkXuTDtQuiMitc7AR8Fj70WhtBfc RJgA= X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 Move mips_cm_probe after prom_init so we can use fdt functions in mips_cm_probe to obtain essential information. Impat for all systems that may have CM in system: - geneirc: Adjusted code to accommodate this change - Lantiq: No impact, CM configuration won't be changed at all - ralink: Called mips_cm_probe on it's own, in prom_init->prom_soc_init - malta: Addressed in previous patch Signed-off-by: Jiaxun Yang --- arch/mips/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 12a1a4ffb602..732579c8f4f8 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -773,8 +773,8 @@ static void __init setup_rng_seed(void) void __init setup_arch(char **cmdline_p) { cpu_probe(); - mips_cm_probe(); prom_init(); + mips_cm_probe(); setup_early_fdc_console(); #ifdef CONFIG_EARLY_PRINTK -- 2.43.0