Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 208d9b6

Browse files
committed
Merge tag 'tpmdd-next-6.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd
Pull tpm fixes from Jarkko Sakkinen: "The bug fix for tpm_tis_core_init() is not that critical but still makes sense to get into release for the sake of better quality. I included the Intel CPU model define change mainly to help Tony just a bit, as for this subsystem it cannot realistically speaking cause any possible harm" * tag 'tpmdd-next-6.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd: tpm: Switch to new Intel CPU model defines tpm_tis: Do *not* flush uninitialized work
2 parents 71d7b52 + f071d02 commit 208d9b6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

drivers/char/tpm/tpm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <linux/tpm_eventlog.h>
2929

3030
#ifdef CONFIG_X86
31-
#include <asm/intel-family.h>
31+
#include <asm/cpu_device_id.h>
3232
#endif
3333

3434
#define TPM_MINOR 224 /* officially assigned */

drivers/char/tpm/tpm_tis_core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,8 @@ void tpm_tis_remove(struct tpm_chip *chip)
10201020
interrupt = 0;
10211021

10221022
tpm_tis_write32(priv, reg, ~TPM_GLOBAL_INT_ENABLE & interrupt);
1023-
flush_work(&priv->free_irq_work);
1023+
if (priv->free_irq_work.func)
1024+
flush_work(&priv->free_irq_work);
10241025

10251026
tpm_tis_clkrun_enable(chip, false);
10261027

drivers/char/tpm/tpm_tis_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static inline int tpm_tis_verify_crc(struct tpm_tis_data *data, size_t len,
210210
static inline bool is_bsw(void)
211211
{
212212
#ifdef CONFIG_X86
213-
return ((boot_cpu_data.x86_model == INTEL_FAM6_ATOM_AIRMONT) ? 1 : 0);
213+
return (boot_cpu_data.x86_vfm == INTEL_ATOM_AIRMONT) ? 1 : 0;
214214
#else
215215
return false;
216216
#endif

0 commit comments

Comments
 (0)