Skip to content

Commit 66265ec

Browse files
davinat0rAlbertoSvg
authored andcommitted
tpm_tis_spi_main: Force probe routine to run synchronously with driver and device registration when IMA is enabled
Co-authored-by: Alberto Solavagione <[email protected]> Co-developed-by: Alberto Solavagione <[email protected]> Signed-off-by: Alberto Solavagione <[email protected]> Signed-off-by: Davide Scovotto <[email protected]>
1 parent e01c1e0 commit 66265ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/char/tpm/tpm_tis_spi_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,11 @@ static struct spi_driver tpm_tis_spi_driver = {
294294
.pm = &tpm_tis_pm,
295295
.of_match_table = of_match_ptr(of_tis_spi_match),
296296
.acpi_match_table = ACPI_PTR(acpi_tis_spi_match),
297+
#ifdef CONFIG_IMA
298+
.probe_type = PROBE_FORCE_SYNCHRONOUS,
299+
#else
297300
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
301+
#endif
298302
},
299303
.probe = tpm_tis_spi_driver_probe,
300304
.remove = tpm_tis_spi_remove,

0 commit comments

Comments
 (0)