summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorJonathan McDowell <noodles@meta.com>2025-03-12 08:31:57 +0300
committerJarkko Sakkinen <jarkko@kernel.org>2025-03-27 16:34:05 +0300
commit7146dffa875cd00e7a7f918e1fce79c7593ac1fa (patch)
tree789fc2ae4d231b5f1eb1b7108d48a7d90902e27b /scripts/generate_rust_analyzer.py
parent6359691b4fbcaf3ed86f53043a1f7c6cc54c09be (diff)
downloadlinux-7146dffa875cd00e7a7f918e1fce79c7593ac1fa.tar.xz
tpm, tpm_tis: Fix timeout handling when waiting for TPM status
The change to only use interrupts to handle supported status changes introduced an issue when it is necessary to poll for the status. Rather than checking for the status after sleeping the code now sleeps after the check. This means a correct, but slower, status change on the part of the TPM can be missed, resulting in a spurious timeout error, especially on a more loaded system. Switch back to sleeping *then* checking. An up front check of the status has been done at the start of the function, so this does not cause an additional delay when the status is already what we're looking for. Cc: stable@vger.kernel.org # v6.4+ Fixes: e87fcf0dc2b4 ("tpm, tpm_tis: Only handle supported interrupts") Signed-off-by: Jonathan McDowell <noodles@meta.com> Reviewed-by: Michal Suchánek <msuchanek@suse.de> Reviewed-by: Lino Sanfilippo <l.sanfilippo@kunbus.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions