diff options
| author | Jarkko Sakkinen <[email protected]> | 2023-04-26 17:29:28 +0000 |
|---|---|---|
| committer | Jarkko Sakkinen <[email protected]> | 2023-05-15 23:43:12 +0000 |
| commit | 99d46450625590d410f86fe4660a5eff7d3b8343 (patch) | |
| tree | 446c3d6a59c7a4a8762954ee3e527ff0b257d686 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | tpm_tis: Use tpm_chip_{start,stop} decoration inside tpm_tis_resume (diff) | |
| download | kernel-99d46450625590d410f86fe4660a5eff7d3b8343.tar.gz kernel-99d46450625590d410f86fe4660a5eff7d3b8343.zip | |
tpm: Prevent hwrng from activating during resume
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: [email protected]
Fixes: 6e592a065d51 ("tpm: Move Linux RNG connection to hwrng")
Reviewed-by: Jerry Snitselaar <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
