On Thu Apr 27, 2023 at 9:27 PM EEST, Jerry Snitselaar wrote: > On Wed, Apr 26, 2023 at 08:29:28PM +0300, Jarkko Sakkinen wrote: > > Set TPM_CHIP_FLAG_SUSPENDED in tpm_pm_suspend() and reset in > > tpm_pm_resume(). While the flag is set, tpm_hwrng() gives back zero bytes. > > This prevents hwrng from racing during resume. > > > > Cc: stable@xxxxxxxxxxxxxxx > > Fixes: 6e592a065d51 ("tpm: Move Linux RNG connection to hwrng") > > Signed-off-by: Jarkko Sakkinen <jarkko@xxxxxxxxxx> > > > Reviewed-by: Jerry Snitselaar <jsnitsel@xxxxxxxxxx Thanks Jerry! I'm planning to schedule these patches to rc2. So any tested-by's are welcome before that (I'll send it the following week of rc1 release). BR, Jarkko