aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-mul.c
diff options
context:
space:
mode:
authorJacky Bai <[email protected]>2024-07-25 19:33:55 +0000
committerDaniel Lezcano <[email protected]>2024-09-02 08:04:15 +0000
commit3d5c2f8e75a55cfb11a85086c71996af0354a1fb (patch)
tree44a9a8aa6910907014bca41bc6272aa27d0e9b50 /lib/crypto/mpi/mpi-mul.c
parentclocksource/drivers/imx-tpm: Fix return -ETIME when delta exceeds INT_MAX (diff)
downloadkernel-3d5c2f8e75a55cfb11a85086c71996af0354a1fb.tar.gz
kernel-3d5c2f8e75a55cfb11a85086c71996af0354a1fb.zip
clocksource/drivers/imx-tpm: Fix next event not taking effect sometime
The value written into the TPM CnV can only be updated into the hardware when the counter increases. Additional writes to the CnV write buffer are ignored until the register has been updated. Therefore, we need to check if the CnV has been updated before continuing. This may require waiting for 1 counter cycle in the worst case. Cc: [email protected] Fixes: 059ab7b82eec ("clocksource/drivers/imx-tpm: Add imx tpm timer support") Signed-off-by: Jacky Bai <[email protected]> Reviewed-by: Peng Fan <[email protected]> Reviewed-by: Ye Li <[email protected]> Reviewed-by: Jason Liu <[email protected]> Signed-off-by: Frank Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions