]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tpm_tis_spi: add missing attpm20p SPI device ID entry
authorVitor Soares <vitor.soares@toradex.com>
Fri, 21 Jun 2024 09:50:45 +0000 (10:50 +0100)
committerJarkko Sakkinen <jarkko@kernel.org>
Mon, 1 Jul 2024 15:50:02 +0000 (15:50 +0000)
"atmel,attpm20p" DT compatible is missing its SPI device ID entry, not
allowing module autoloading and leading to the following message:

  "SPI driver tpm_tis_spi has no spi_device_id for atmel,attpm20p"

Based on:
  commit 7eba41fe8c7b ("tpm_tis_spi: Add missing SPI ID")

Fix this by adding the corresponding "attpm20p" spi_device_id entry.

Fixes: 3c45308c44ed ("tpm_tis_spi: Add compatible string atmel,attpm20p")
Cc: stable@vger.kernel.org # +v6.9
Signed-off-by: Vitor Soares <vitor.soares@toradex.com>
Reviewed-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_tis_spi_main.c

index c9eca24bbad478ada329f8c1e1eec3fa6d1ab232..61b42c83ced817db5a9c7193c9b9c4d32b12afa6 100644 (file)
@@ -318,6 +318,7 @@ static void tpm_tis_spi_remove(struct spi_device *dev)
 }
 
 static const struct spi_device_id tpm_tis_spi_id[] = {
+       { "attpm20p", (unsigned long)tpm_tis_spi_probe },
        { "st33htpm-spi", (unsigned long)tpm_tis_spi_probe },
        { "slb9670", (unsigned long)tpm_tis_spi_probe },
        { "tpm_tis_spi", (unsigned long)tpm_tis_spi_probe },