From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 C320542C4F3 for ; Thu, 30 Jul 2026 12:29:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785414583; cv=none; b=Awfa29WFJW1wBFFbwOZnpQYRCSpgAy0YaCu0sKztYlUxwvUQ5bKyjMwvnYooLpkEXyDSwD56LUaZyDmP3dM4EJb7M1re0/FMa+QvOAg1fu7jNBDlHzCE/5e52I8nOkOWIRI49CcshomTCwdg37zioAxSj6nA9j7PQGCDtjWDa0U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785414583; c=relaxed/simple; bh=NMDDFmRLn2ji8YodQkBFhcITCr9QFapEu4TNHWLKe2M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kGI95w/6H2ZJ77c16XNvnMbnwkaKgf7zyDOT1kOMyypY803tCvmetdHviB7UVlGAOzuijdfuzx2K8LgPFtD0UgIruTKwwJza1b4vjcLiZMLRbu+rzHESjSt0Fmgv1NJ1BFcTOYsN/yqZM0Jekb7pZ8NBoDTDA2jnLfKesdcE4/Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oZ6omnuY; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oZ6omnuY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DB331F000E9; Thu, 30 Jul 2026 12:29:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1785414582; bh=yrGZUILR/Wznyx7GjKoYB3FNEjyAnbdcouYLB2K4DOM=; h=From:To:Cc:Subject:Date; b=oZ6omnuYaaPVJph/8aNubaZUbqRB9sNViXWI/peGzrmT42iBUgCOgMxZL+XD86Fmk wzxpMP+cnOXs40uO0p2/WXrnkXBmtfps6UkSHV19rZ/dUS4Lcx61qldgB7zZrgZnfA /SifWtwBKqLGvv6Cmdcqkz2Pmvoc+3s8eGF3abRIJiBbfUip9BG26KGLzWE5OH7Zgw IyhLp1ovVGOh/3goBNj4jcEFyr8Yw3oHyCt8vrZH4kJvyDI3e8Pf1oXpvXb+YqRxJa KXEWBxePvzWYp2TIcLeRerbEwBfcr8ek3B0HzHqW5d1UgYQ3lhGOP8Xc1KKutr7zCX jO74PgJVlpeEA== From: "Christophe Leroy (CS GROUP)" To: Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Herve Codina , Paul Louvel , Krzysztof Kozlowski Subject: [PATCH v2] soc: fsl: qe: properly scan GPIO nodes at startup Date: Thu, 30 Jul 2026 14:29:36 +0200 Message-ID: X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1513; i=chleroy@kernel.org; h=from:subject:message-id; bh=NMDDFmRLn2ji8YodQkBFhcITCr9QFapEu4TNHWLKe2M=; b=owGbwMvMwCV2d0KB2p7V54MZT6slMWRlO290uJFhuSzLIzP43g0DtulzRATNLjJ//efy733zP 7d/ldmXOkpZGMS4GGTFFFmO/+feNaPrS2r+1F36MHNYmUCGMHBxCsBEeH4x/Hf6tC403eRHoNN1 7oCdt25YMRbvOmup90WJ+ZLW/wJv0zKGvwISf+4yZG3+oGVhOM8gcv1DKd2DbaeTTBoLTzyfYfY 9nxkA X-Developer-Key: i=chleroy@kernel.org; a=openpgp; fpr=10FFE6F8B390DE17ACC2632368A92FEB01B8DD78 Content-Transfer-Encoding: 8bit Before commit 156460811def ("soc: fsl: qe: Change GPIO driver to a proper platform driver") qe_add_gpiochips() was walking the device tree to find all nodes with compatible "fsl,mpc8323-qe-pario-bank". After that commit the discovery is handled by the platform core, therefore it is necessary to call of_platform_default_populate() on the par_io node. Fixes: 156460811def ("soc: fsl: qe: Change GPIO driver to a proper platform driver") Signed-off-by: Christophe Leroy (CS GROUP) --- v2: Use of_find_node_by_type() instead of of_find_node_by_name() as the "par_io" type is documented while the "par_io" name is not. --- drivers/soc/fsl/qe/qe_io.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/soc/fsl/qe/qe_io.c b/drivers/soc/fsl/qe/qe_io.c index a5e2d0e5ab51..150913fce981 100644 --- a/drivers/soc/fsl/qe/qe_io.c +++ b/drivers/soc/fsl/qe/qe_io.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -184,3 +185,17 @@ int par_io_of_config(struct device_node *np) return 0; } EXPORT_SYMBOL(par_io_of_config); + +static int __init par_io_populate(void) +{ + struct device_node *np = of_find_node_by_type(NULL, "par_io"); + + if (!np) + return 0; + + of_platform_default_populate(np, NULL, NULL); + of_node_put(np); + + return 0; +} +arch_initcall(par_io_populate); -- 2.54.0