Re: [PATCH v4 3/4] tpm: reduce tpm polling delay in tpm_tis_core

2017-10-19 Thread Jarkko Sakkinen
On Wed, Oct 18, 2017 at 06:24:47PM +0300, Jarkko Sakkinen wrote: > On Tue, Oct 17, 2017 at 04:32:31PM -0400, Nayna Jain wrote: > > The existing wait_for_tpm_stat() polls for the chip status after > > 5msec sleep. As per TCG ddwg input, it is expected that tpm might > > return status in few usec. So

Re: [PATCH v4 3/4] tpm: reduce tpm polling delay in tpm_tis_core

2017-10-18 Thread Jarkko Sakkinen
On Tue, Oct 17, 2017 at 04:32:31PM -0400, Nayna Jain wrote: > The existing wait_for_tpm_stat() polls for the chip status after > 5msec sleep. As per TCG ddwg input, it is expected that tpm might > return status in few usec. So, reducing the delay in polling to > 1msec. > Similarly, get_burstcount()

[PATCH v4 3/4] tpm: reduce tpm polling delay in tpm_tis_core

2017-10-17 Thread Nayna Jain
The existing wait_for_tpm_stat() polls for the chip status after 5msec sleep. As per TCG ddwg input, it is expected that tpm might return status in few usec. So, reducing the delay in polling to 1msec. Similarly, get_burstcount() function sleeps for 5msec before retrying for next query to burstcoun