On Thu, Jul 14, 2016 at 05:29:40PM -0700, Andrey Pronin wrote:
> tpm_tis_core was missing conversion from msec when assigning
> max timeouts from constants.
> 
> Signed-off-by: Andrey Pronin <[email protected]>

Reviewed-by: Jarkko Sakkinen <[email protected]>
Fixes: 41a5e1cf1fe1

/Jarkko

> ---
>  drivers/char/tpm/tpm_tis_core.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/char/tpm/tpm_tis_core.c b/drivers/char/tpm/tpm_tis_core.c
> index 8110b52..fb8c3de 100644
> --- a/drivers/char/tpm/tpm_tis_core.c
> +++ b/drivers/char/tpm/tpm_tis_core.c
> @@ -666,10 +666,10 @@ int tpm_tis_core_init(struct device *dev, struct 
> tpm_tis_data *priv, int irq,
>  #endif
>  
>       /* Maximum timeouts */
> -     chip->timeout_a = TIS_TIMEOUT_A_MAX;
> -     chip->timeout_b = TIS_TIMEOUT_B_MAX;
> -     chip->timeout_c = TIS_TIMEOUT_C_MAX;
> -     chip->timeout_d = TIS_TIMEOUT_D_MAX;
> +     chip->timeout_a = msecs_to_jiffies(TIS_TIMEOUT_A_MAX);
> +     chip->timeout_b = msecs_to_jiffies(TIS_TIMEOUT_B_MAX);
> +     chip->timeout_c = msecs_to_jiffies(TIS_TIMEOUT_C_MAX);
> +     chip->timeout_d = msecs_to_jiffies(TIS_TIMEOUT_D_MAX);
>       priv->phy_ops = phy_ops;
>       dev_set_drvdata(&chip->dev, priv);
>  
> -- 
> 2.6.6
> 

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
tpmdd-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tpmdd-devel

Reply via email to