Devicetree
 help / color / mirror / Atom feed
From: Jiaxun Yang <jiaxun.yang@flygoat.com>
To: Paul Burton <paulburton@kernel.org>,
	 Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
	 Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>
Cc: Serge Semin <fancer.lancer@gmail.com>,
	linux-mips@vger.kernel.org,  linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org,
	 Jiaxun Yang <jiaxun.yang@flygoat.com>
Subject: [PATCH v2 2/6] MIPS: malta: Move SMP initialisation to device_tree_init
Date: Wed, 12 Jun 2024 11:08:54 +0100	[thread overview]
Message-ID: <20240612-cm_probe-v2-2-a5b55440563c@flygoat.com> (raw)
In-Reply-To: <20240612-cm_probe-v2-0-a5b55440563c@flygoat.com>

Move SMP initialisation to device_tree_init as what generic platform
did, this allows us to move mips_cm_probe to a later point, as CPC
needs to be probed after CM.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
v2: New patch
---
 arch/mips/mti-malta/malta-init.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/arch/mips/mti-malta/malta-init.c b/arch/mips/mti-malta/malta-init.c
index 000d6d50520a..f67247d7fc69 100644
--- a/arch/mips/mti-malta/malta-init.c
+++ b/arch/mips/mti-malta/malta-init.c
@@ -284,12 +284,18 @@ void __init prom_init(void)
 #ifdef CONFIG_SERIAL_8250_CONSOLE
 	console_config();
 #endif
-	/* Early detection of CMP support */
+}
+
+void __init device_tree_init(void)
+{
+	unflatten_and_copy_device_tree();
 	mips_cpc_probe();
 
 	if (!register_cps_smp_ops())
 		return;
 	if (!register_vsmp_smp_ops())
 		return;
+
 	register_up_smp_ops();
 }
+

-- 
2.43.0


  parent reply	other threads:[~2024-06-12 10:08 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-12 10:08 [PATCH v2 0/6] MIPS: cm: Probe GCR address from devicetree Jiaxun Yang
2024-06-12 10:08 ` [PATCH v2 1/6] MIPS: generic: Do __dt_setup_arch in prom_init Jiaxun Yang
2024-06-12 10:08 ` Jiaxun Yang [this message]
2024-06-12 10:08 ` [PATCH v2 3/6] MIPS: cm: Prefix probe functions with __init Jiaxun Yang
2024-06-12 10:08 ` [PATCH v2 4/6] MIPS: Move mips_cm_probe after prom_init Jiaxun Yang
2024-06-12 10:08 ` [PATCH v2 5/6] dt-bindings: mips: Document mti,mips-cm Jiaxun Yang
2024-06-12 17:01   ` Conor Dooley
2024-08-06 19:56   ` Serge Semin
2024-06-12 10:08 ` [PATCH v2 6/6] MIPS: cm: Probe GCR address from DeviceTree Jiaxun Yang
2024-09-10 12:36   ` Serge Semin
2024-09-10 19:23     ` Jiaxun Yang
2024-09-10 20:07       ` Serge Semin
2024-09-10 20:48         ` Jiaxun Yang
2024-09-10 22:16           ` Serge Semin
2024-07-06  5:13 ` [PATCH v2 0/6] MIPS: cm: Probe GCR address from devicetree Jiaxun Yang
2024-07-20  7:30 ` Jiaxun Yang
2024-08-06 19:49 ` Serge Semin
2024-09-09 13:32   ` Thomas Bogendoerfer
2024-09-10  8:06     ` Serge Semin
2024-09-10 12:20       ` Serge Semin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240612-cm_probe-v2-2-a5b55440563c@flygoat.com \
    --to=jiaxun.yang@flygoat.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=fancer.lancer@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=paulburton@kernel.org \
    --cc=robh@kernel.org \
    --cc=tsbogend@alpha.franken.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox