Co-authored-by: Alberto Solavagione <albertosolavagione30@xxxxxxxxx> Co-developed-by: Alberto Solavagione <albertosolavagione30@xxxxxxxxx> Signed-off-by: Alberto Solavagione <albertosolavagione30@xxxxxxxxx> Signed-off-by: Davide Scovotto <scovottodavide@xxxxxxxxx> --- drivers/char/tpm/tpm_tis_spi_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/char/tpm/tpm_tis_spi_main.c b/drivers/char/tpm/tpm_tis_spi_main.c index aaa59a00eeae..b6cf04812078 100644 --- a/drivers/char/tpm/tpm_tis_spi_main.c +++ b/drivers/char/tpm/tpm_tis_spi_main.c @@ -294,7 +294,11 @@ static struct spi_driver tpm_tis_spi_driver = { .pm = &tpm_tis_pm, .of_match_table = of_match_ptr(of_tis_spi_match), .acpi_match_table = ACPI_PTR(acpi_tis_spi_match), +#ifdef CONFIG_IMA + .probe_type = PROBE_FORCE_SYNCHRONOUS, +#else .probe_type = PROBE_PREFER_ASYNCHRONOUS, +#endif }, .probe = tpm_tis_spi_driver_probe, .remove = tpm_tis_spi_remove, -- 2.33.0