diff options
| author | Thadeu Lima de Souza Cascardo <cascardo@igalia.com> | 2025-12-15 16:05:50 -0300 |
|---|---|---|
| committer | Xu Yilun <yilun.xu@linux.intel.com> | 2025-12-19 23:45:17 +0800 |
| commit | 267f53140c9d0bf270bbe0148082e9b8e5011273 (patch) | |
| tree | 19522ae94623c765176eda81e5f363db2735e011 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 996a590dc6905db52e4f70569134ec479e2a9ac4 (diff) | |
| download | linux-267f53140c9d0bf270bbe0148082e9b8e5011273.tar.gz linux-267f53140c9d0bf270bbe0148082e9b8e5011273.zip | |
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 <cascardo@igalia.com>
Link: https://lore.kernel.org/r/20251215-dfl_subsys-v1-1-21807bad6b10@igalia.com
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
