1 From a32b7559eb007f4e361fae63517e3e5c2ee1ef72 Mon Sep 17 00:00:00 2001
2 From: Scovotto Davide <scovottodavide@gmail.com>
3 Date: Wed, 20 Apr 2022 17:22:17 +0200
4 Subject: [PATCH] tpm_tis_spi_main: Force probe routine to run
5 synchronously with driver and device registration when IMA is enabled
7 Co-authored-by: Alberto Solavagione <albertosolavagione30@gmail.com>
8 Co-developed-by: Alberto Solavagione <albertosolavagione30@gmail.com>
9 Signed-off-by: Alberto Solavagione <albertosolavagione30@gmail.com>
10 Signed-off-by: Davide Scovotto <scovottodavide@gmail.com>
12 drivers/char/tpm/tpm_tis_spi_main.c | 4 ++++
13 1 file changed, 4 insertions(+)
15 --- a/drivers/char/tpm/tpm_tis_spi_main.c
16 +++ b/drivers/char/tpm/tpm_tis_spi_main.c
17 @@ -294,7 +294,11 @@ static struct spi_driver tpm_tis_spi_dri
19 .of_match_table = of_match_ptr(of_tis_spi_match),
20 .acpi_match_table = ACPI_PTR(acpi_tis_spi_match),
22 + .probe_type = PROBE_FORCE_SYNCHRONOUS,
24 .probe_type = PROBE_PREFER_ASYNCHRONOUS,
27 .probe = tpm_tis_spi_driver_probe,
28 .remove = tpm_tis_spi_remove,