mirror-linux/drivers/char/tpm
Lino Sanfilippo 4ecd704a4c tpm, tpm_tis: correct tpm_tis_flags enumeration values
With commit 858e8b792d ("tpm, tpm_tis: Avoid cache incoherency in test
for interrupts") bit accessor functions are used to access flags in
tpm_tis_data->flags.

However these functions expect bit numbers, while the flags are defined
as bit masks in enum tpm_tis_flag.

Fix this inconsistency by using numbers instead of masks also for the
flags in the enum.

Reported-by: Pavel Machek <pavel@denx.de>
Fixes: 858e8b792d ("tpm, tpm_tis: Avoid cache incoherency in test for interrupts")
Signed-off-by: Lino Sanfilippo <l.sanfilippo@kunbus.com>
Cc: stable@vger.kernel.org
Reviewed-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2023-06-02 17:35:22 -04:00
..
eventlog tpm: remove unnecessary (void*) conversions 2023-04-24 16:15:52 +03:00
st33zp24 tpm: st33zp24: Mark ACPI and OF related data as maybe unused 2023-04-24 16:15:53 +03:00
Kconfig
Makefile
tpm-chip.c tpm: Prevent hwrng from activating during resume 2023-05-16 02:43:12 +03:00
tpm-dev-common.c
tpm-dev.c
tpm-dev.h
tpm-interface.c tpm: Prevent hwrng from activating during resume 2023-05-16 02:43:12 +03:00
tpm-sysfs.c
tpm.h This PR fixes a critical bug in my first pull request. I fixed the 2023-05-01 10:37:37 -07:00
tpm1-cmd.c
tpm2-cmd.c tpm: add vendor flag to command code validation 2023-02-13 10:11:20 +02:00
tpm2-space.c
tpm_atmel.c
tpm_atmel.h tpm: atmel: Add explicit include for of.h 2023-04-06 20:36:27 +02:00
tpm_crb.c tpm_crb: Add support for CRB devices based on Pluton 2023-02-13 10:10:52 +02:00
tpm_ftpm_tee.c tpm/tpm_ftpm_tee: Convert to platform remove callback returning void 2023-04-24 16:15:53 +03:00
tpm_ftpm_tee.h
tpm_i2c_atmel.c tpm: tpm_i2c_atmel: Convert to i2c's .probe_new() 2023-02-13 10:11:20 +02:00
tpm_i2c_infineon.c tpm: tpm_i2c_infineon: Convert to i2c's .probe_new() 2023-02-13 10:11:20 +02:00
tpm_i2c_nuvoton.c tpm: tpm_i2c_nuvoton: Convert to i2c's .probe_new() 2023-02-13 10:11:20 +02:00
tpm_ibmvtpm.c
tpm_ibmvtpm.h
tpm_infineon.c
tpm_nsc.c
tpm_ppi.c
tpm_tis.c tpm: tpm_tis: Disable interrupts for AEON UPX-i11 2023-05-24 02:50:23 +03:00
tpm_tis_core.c tpm_tis: Use tpm_chip_{start,stop} decoration inside tpm_tis_resume 2023-05-16 02:43:12 +03:00
tpm_tis_core.h tpm, tpm_tis: correct tpm_tis_flags enumeration values 2023-06-02 17:35:22 -04:00
tpm_tis_i2c.c tpm: tis_i2c: Convert to i2c's .probe_new() 2023-02-13 10:11:20 +02:00
tpm_tis_i2c_cr50.c tpm: cr50: i2c: use jiffies to wait for tpm ready irq 2023-04-24 16:15:52 +03:00
tpm_tis_spi.h
tpm_tis_spi_cr50.c
tpm_tis_spi_main.c tpm: tpm_tis_spi: Mark ACPI and OF related data as maybe unused 2023-04-24 16:15:53 +03:00
tpm_tis_synquacer.c tpm/tpm_tis_synquacer: Convert to platform remove callback returning void 2023-04-24 16:15:53 +03:00
tpm_vtpm_proxy.c
tpmrm-dev.c
xen-tpmfront.c xen: make remove callback of xen driver void returned 2022-12-15 16:06:10 +01:00