Skip to content

Commit 04b8b28

Browse files
lukehindsPhil Elwell
authored andcommitted
Initialise rpi-firmware before clk-bcm2835
The IMA (Integrity Measurement Architecture) looks for a TPM (Trusted Platform Module) having been registered when it initialises; otherwise it assumes there is no TPM. It has been observed on BCM2835 that IMA is initialised before TPM, and that initialising the BCM2835 clock driver before the firmware driver has the effect of reversing this order. Change the firmware driver to initialise at core_initcall, delaying the BCM2835 clock driver to postcore_initcall. See: raspberrypi#3291 raspberrypi#3297 Signed-off-by: Luke Hinds <lhinds@redhat.com> Co-authored-by: Phil Elwell <phil@raspberrypi.org>
1 parent 4cc918e commit 04b8b28

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/clk/bcm/clk-bcm2835.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2397,7 +2397,7 @@ static int __init __bcm2835_clk_driver_init(void)
23972397
{
23982398
return platform_driver_register(&bcm2835_clk_driver);
23992399
}
2400-
core_initcall(__bcm2835_clk_driver_init);
2400+
postcore_initcall(__bcm2835_clk_driver_init);
24012401

24022402
MODULE_AUTHOR("Eric Anholt <eric@anholt.net>");
24032403
MODULE_DESCRIPTION("BCM2835 clock driver");

‎drivers/firmware/raspberrypi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ static int __init rpi_firmware_init(void)
416416
out1:
417417
return ret;
418418
}
419-
subsys_initcall(rpi_firmware_init);
419+
core_initcall(rpi_firmware_init);
420420

421421
static void __init rpi_firmware_exit(void)
422422
{

0 commit comments

Comments
 (0)