Skip to content

Commit 27b984a

Browse files
committed
Merge tag 'tpmdd-v6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd
Pull tpm updates from Jarkko Sakkinen: "Small bug fixes and device tree updates. No new features" * tag 'tpmdd-v6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd: tpm: tis_i2c: Add compatible string nuvoton,npct75x tpm_tis: Add compatible string atmel,at97sc3204 tpm_tis_spi: Add compatible string atmel,attpm20p dt-bindings: tpm: Add compatible string atmel,attpm20p tpm,tpm_tis: Avoid warning splat at shutdown tpm/tpm_ftpm_tee: fix all kernel-doc warnings
2 parents 9687d4a + 6fa6b79 commit 27b984a

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

Documentation/devicetree/bindings/tpm/tcg,tpm_tis-spi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ properties:
2020
compatible:
2121
items:
2222
- enum:
23+
- atmel,attpm20p
2324
- infineon,slb9670
2425
- st,st33htpm-spi
2526
- st,st33zp24-spi

drivers/char/tpm/tpm_ftpm_tee.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ static int ftpm_tee_match(struct tee_ioctl_version_data *ver, const void *data)
208208

209209
/**
210210
* ftpm_tee_probe() - initialize the fTPM
211-
* @pdev: the platform_device description.
211+
* @dev: the device description.
212212
*
213213
* Return:
214214
* On success, 0. On failure, -errno.
@@ -304,7 +304,7 @@ static int ftpm_plat_tee_probe(struct platform_device *pdev)
304304

305305
/**
306306
* ftpm_tee_remove() - remove the TPM device
307-
* @pdev: the platform_device description.
307+
* @dev: the device description.
308308
*
309309
* Return:
310310
* 0 always.
@@ -341,7 +341,7 @@ static void ftpm_plat_tee_remove(struct platform_device *pdev)
341341
}
342342

343343
/**
344-
* ftpm_tee_shutdown() - shutdown the TPM device
344+
* ftpm_plat_tee_shutdown() - shutdown the TPM device
345345
* @pdev: the platform_device description.
346346
*/
347347
static void ftpm_plat_tee_shutdown(struct platform_device *pdev)

drivers/char/tpm/tpm_tis.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ static void tpm_tis_plat_remove(struct platform_device *pdev)
347347

348348
#ifdef CONFIG_OF
349349
static const struct of_device_id tis_of_platform_match[] = {
350+
{.compatible = "atmel,at97sc3204"},
350351
{.compatible = "tcg,tpm-tis-mmio"},
351352
{},
352353
};

drivers/char/tpm/tpm_tis_core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,8 +919,6 @@ static int tpm_tis_probe_irq_single(struct tpm_chip *chip, u32 intmask,
919919
int rc;
920920
u32 int_status;
921921

922-
INIT_WORK(&priv->free_irq_work, tpm_tis_free_irq_func);
923-
924922
rc = devm_request_threaded_irq(chip->dev.parent, irq, NULL,
925923
tis_int_handler, IRQF_ONESHOT | flags,
926924
dev_name(&chip->dev), chip);
@@ -1132,6 +1130,7 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq,
11321130
priv->phy_ops = phy_ops;
11331131
priv->locality_count = 0;
11341132
mutex_init(&priv->locality_count_mutex);
1133+
INIT_WORK(&priv->free_irq_work, tpm_tis_free_irq_func);
11351134

11361135
dev_set_drvdata(&chip->dev, priv);
11371136

drivers/char/tpm/tpm_tis_i2c.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id);
383383
#ifdef CONFIG_OF
384384
static const struct of_device_id of_tis_i2c_match[] = {
385385
{ .compatible = "infineon,slb9673", },
386+
{ .compatible = "nuvoton,npct75x", },
387+
{ .compatible = "tcg,tpm-tis-i2c", },
386388
{}
387389
};
388390
MODULE_DEVICE_TABLE(of, of_tis_i2c_match);

drivers/char/tpm/tpm_tis_spi_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ static const struct spi_device_id tpm_tis_spi_id[] = {
327327
MODULE_DEVICE_TABLE(spi, tpm_tis_spi_id);
328328

329329
static const struct of_device_id of_tis_spi_match[] __maybe_unused = {
330+
{ .compatible = "atmel,attpm20p", .data = tpm_tis_spi_probe },
330331
{ .compatible = "st,st33htpm-spi", .data = tpm_tis_spi_probe },
331332
{ .compatible = "infineon,slb9670", .data = tpm_tis_spi_probe },
332333
{ .compatible = "tcg,tpm_tis-spi", .data = tpm_tis_spi_probe },

0 commit comments

Comments
 (0)