]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: google: Init coreboot bus with subsys_initcall()
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 Feb 2026 15:56:16 +0000 (16:56 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 20 Feb 2026 13:38:20 +0000 (14:38 +0100)
commitb44308c864b86ebcc03d73ae74bb9ac3ce1c5d4b
treeda47789acfb7d6dd9be7bb38cebb95f873fcdca5
parent73d8aa63b22b1e49f3f025da394bbe339e7a880f
firmware: google: Init coreboot bus with subsys_initcall()

Using module_init()/device_initcall() is too late to initialize
the coreboot bus, as there might already be drivers that depend
on it.

So far this hasn't been a problem, as coreboot controls all device
creation. Initializing the coreboot bus earlier in subsys_initcall()
will allow for external coreboot drivers to register themselves
with device_initcall(). Prepares coreboot to support additional
coreboot drivers from other subsystems.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Tzung-Bi Shih <tzungbi@kernel.org>
Acked-by: Julius Werner <jwerner@chromium.org>
Link: https://patch.msgid.link/20260217155836.96267-7-tzimmermann@suse.de
drivers/firmware/google/coreboot_table.c