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 B00D327FB05; Sun, 1 Mar 2026 01:58:59 +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=1772330339; cv=none; b=YDWYVvgCy3i1Yeivu8PELJ6wxKjT5UB2xZt90s/Uqya6Uo+ZKLB2USlIl8wbNEKC6tbSjTtRvmTWYnyK2qJEPSOg/Rp3FvWLuuAxcXd3Ka587Dr1/J1wJKm8dGvylHR0Uz1Yxj2vPJD65tUdXN8Z5kFSDtv47k+kjocpmwZ5QXo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772330339; c=relaxed/simple; bh=wXEYtTF5Gpo9KXQ+ERMkD9KipF8f/DU99wWBJsMGljI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iEIVRAz7JVmvwhCN7wlQrw4b0uloi327gippANYde0bsNQh0/bNfSgo0B0mVGcm28V0F4v/u32i4+rzl8Bb2B2lrxfYOrZgJ/AXTdPL+uSOpoYg/4kWO9S4zZSxCDaqHSQi7/AbBQBvZhqNxCpBK7rcWZl0s6yE0S8mvyy/bXm4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jZWNz02R; 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="jZWNz02R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B78EC19421; Sun, 1 Mar 2026 01:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772330339; bh=wXEYtTF5Gpo9KXQ+ERMkD9KipF8f/DU99wWBJsMGljI=; h=From:To:Cc:Subject:Date:From; b=jZWNz02RVBdBur3NB9Uu+LopMkHExf5xUkY094rG6qyuZkyNChiY90qz++J/4Mnfk GFXNCaxMjXARAogEHCENcY+eizbfMiRuBWqM0dN33tVSyjWHd+c/XkH0hLYnM4exgi VzOo3V7v1Jz6Az80EgikOvLj43wajYM8udirNY0On1/GlKdiL7OpNQoqtS+oqe9W0+ CHWImHkqvuDIcVVcGrLnpS1dxJ90etvExuj02SvFotsINhXlnTM/N+5twwhzgrTOAl J7r3VEiHCuwkK4T8DAOxVQ5IQVxN7liYIYRqlWmOreXMoX7j8P56EX2ygC15JVzj/M w0P4Yg+8Gm7Qg== From: Sasha Levin To: stable@vger.kernel.org, cascardo@igalia.com Cc: Xu Yilun , Xu Yilun , linux-fpga@vger.kernel.org Subject: FAILED: Patch "fpga: dfl: use subsys_initcall to allow built-in drivers to be added" failed to apply to 5.10-stable tree Date: Sat, 28 Feb 2026 20:58:57 -0500 Message-ID: <20260301015857.1724595-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-fpga@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.10-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . Thanks, Sasha ------------------ original commit in Linus's tree ------------------ >From 267f53140c9d0bf270bbe0148082e9b8e5011273 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Mon, 15 Dec 2025 16:05:50 -0300 Subject: [PATCH] fpga: dfl: use subsys_initcall to allow built-in drivers to be added 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 --- 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