Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tpm_tis_spi: add missing attpm20p SPI device ID entry

"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>

authored by

Vitor Soares and committed by
Jarkko Sakkinen
0543f294 5d8e2971

+1
+1
drivers/char/tpm/tpm_tis_spi_main.c
··· 318 318 } 319 319 320 320 static const struct spi_device_id tpm_tis_spi_id[] = { 321 + { "attpm20p", (unsigned long)tpm_tis_spi_probe }, 321 322 { "st33htpm-spi", (unsigned long)tpm_tis_spi_probe }, 322 323 { "slb9670", (unsigned long)tpm_tis_spi_probe }, 323 324 { "tpm_tis_spi", (unsigned long)tpm_tis_spi_probe },