Re: [tpmdd-devel] [PATCH v4 3/4] tpm: Allow TPM chip drivers to override reported command durations
From: Jason Gunthorpe
Date: Wed Jun 08 2016 - 15:05:42 EST
On Tue, Jun 07, 2016 at 05:45:39PM -0700, Ed Swierk wrote:
> + case 0x32041114: /* Atmel 3204 */
> + chip->vendor.timeout_a = TIS_SHORT_TIMEOUT * HZ / 1000;
> + chip->vendor.timeout_b = TIS_LONG_TIMEOUT * HZ / 1000;
> + chip->vendor.timeout_c = TIS_SHORT_TIMEOUT * HZ / 1000;
> + chip->vendor.timeout_d = TIS_SHORT_TIMEOUT * HZ / 1000;
Shouldn't these use msec_to_jiffies?
Jason