From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E517E48A2A4; Sat, 28 Feb 2026 17:41:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300481; cv=none; b=bu3nipAl3KHS4PT3PKlezbY+JTUyn6O37F/6m1k/HTANLxJi5ZtClWfSEeBja0c0+YdWIKB+3KpsFzIWD+9gTReb4VfO6VTshHVk0L6dJ1y5WDw9FpXzW/Vbp5mFxETS4OuHQtksDcRZgTG4HN0dbKdFOUK6najpoMrYLPVTTO4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300481; c=relaxed/simple; bh=gFiBiJN5gHtn8/5nUyXBJeb3LWUklhye6VF7SCOesm4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ssgvTBdKnRXScY5UDeRHMBhHfxuXcdAVOpoGOTWNnHTaGo01LEH+Rg3GtCIxKSfA9dFLO/YUwwipQR7q7knb7ha4XNZgVJw1NNt3FQepFws3OS4KiJfr/qvQ/hy8IymS1fQVy1WXtcX/aGfiOurivLrFyLlOA3c18BTHcRNe2hk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SKMzxnU1; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SKMzxnU1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14518C19423; Sat, 28 Feb 2026 17:41:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772300480; bh=gFiBiJN5gHtn8/5nUyXBJeb3LWUklhye6VF7SCOesm4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SKMzxnU1YVnRW2bDJS/7BayCW/03mVlEOMyIIecCkJftC4ajDehUoTHOAgvVbfzDo nldFvswg5wvr5Q8mtvM4SDmc1SZliPCSCj7HVXs11oH/A7gGwUTeTfBNBhYnzUjCj9 rG/m5QAAh7M5UG4ysnr86wg5cNQX1/7pNCf2OYOSSY9U3m1MSh3IhRJQdLp808XOGH NrriJ2kO9/+ZAxU6Z73iweY7Vhn3BtYcql2203lm11rnceDP58A1MfCAJ5aqVkKTa4 9ujIC9NQ+RiT2di6iPoNeINeIBVoPKZGOOQjmY3Se6Jckh7GdIKTgyDtjUyhSEtmjN l/LILz85GgFZA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Thadeu Lima de Souza Cascardo , Xu Yilun , Xu Yilun , Sasha Levin Subject: [PATCH 6.19 518/844] fpga: dfl: use subsys_initcall to allow built-in drivers to be added Date: Sat, 28 Feb 2026 12:27:11 -0500 Message-ID: <20260228173244.1509663-519-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228173244.1509663-1-sashal@kernel.org> References: <20260228173244.1509663-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Thadeu Lima de Souza Cascardo [ Upstream commit 267f53140c9d0bf270bbe0148082e9b8e5011273 ] The dfl code adds a bus. If it is built-in and there is a built-in driver as well, the dfl module_init may be called after the driver module_init, leading to a failure to register the driver as the bus has not been added yet. Use subsys_initcall, which guarantees it will be called before the drivers init code. Without the fix, we see failures like this: [ 0.479475] Driver 'intel-m10-bmc' was unable to register with bus_type 'dfl' because the bus was not initialized. Cc: stable@vger.kernel.org Fixes: 9ba3a0aa09fe ("fpga: dfl: create a dfl bus type to support DFL devices") Signed-off-by: Thadeu Lima de Souza Cascardo Link: https://lore.kernel.org/r/20251215-dfl_subsys-v1-1-21807bad6b10@igalia.com Reviewed-by: Xu Yilun Signed-off-by: Xu Yilun Signed-off-by: Sasha Levin --- drivers/fpga/dfl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fpga/dfl.c b/drivers/fpga/dfl.c index 7022657243c0a..449c3a082e232 100644 --- a/drivers/fpga/dfl.c +++ b/drivers/fpga/dfl.c @@ -2018,7 +2018,7 @@ static void __exit dfl_fpga_exit(void) bus_unregister(&dfl_bus_type); } -module_init(dfl_fpga_init); +subsys_initcall(dfl_fpga_init); module_exit(dfl_fpga_exit); MODULE_DESCRIPTION("FPGA Device Feature List (DFL) Support"); -- 2.51.0