Re: [PATCH] tpm, tpm_tis: correct tpm_tis_flags enumeration values

From: Pavel Machek
Date: Fri Jun 02 2023 - 15:21:27 EST


Hi!

> From: Lino Sanfilippo <l.sanfilippo@xxxxxxxxxx>
>
> With commit 858e8b792d06 ("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.
>

Reviewed-by: Pavel Machek <pavel@xxxxxxx>

Thank you!

Best regards,
Pavel
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

Attachment: signature.asc
Description: PGP signature