Re: [PATCH] tpm/tpm_tis: Fix variable reset during IRQ probing

2021-01-19 Thread Tianjia Zhang
On 1/15/21 5:23 PM, Jarkko Sakkinen wrote: On Thu, Jan 14, 2021 at 12:12:16PM +0800, Tianjia Zhang wrote: On 1/14/21 10:51 AM, Jarkko Sakkinen wrote: On Wed, Jan 13, 2021 at 08:00:21PM +0800, Tianjia Zhang wrote: In tpm_tis_core_init(), tpm2_probe() will be called first, this function wil

Re: [PATCH] tpm/tpm_tis: Fix variable reset during IRQ probing

2021-01-15 Thread Jarkko Sakkinen
On Thu, Jan 14, 2021 at 12:12:16PM +0800, Tianjia Zhang wrote: > > > On 1/14/21 10:51 AM, Jarkko Sakkinen wrote: > > On Wed, Jan 13, 2021 at 08:00:21PM +0800, Tianjia Zhang wrote: > > > In tpm_tis_core_init(), tpm2_probe() will be called first, this > > > function will eventually call tpm_tis_sen

Re: [PATCH] tpm/tpm_tis: Fix variable reset during IRQ probing

2021-01-13 Thread Tianjia Zhang
On 1/14/21 10:51 AM, Jarkko Sakkinen wrote: On Wed, Jan 13, 2021 at 08:00:21PM +0800, Tianjia Zhang wrote: In tpm_tis_core_init(), tpm2_probe() will be called first, this function will eventually call tpm_tis_send(), and then tpm_tis_probe_irq_single() will detect whether the interrupt is nor

Re: [PATCH] tpm/tpm_tis: Fix variable reset during IRQ probing

2021-01-13 Thread Jarkko Sakkinen
On Wed, Jan 13, 2021 at 08:00:21PM +0800, Tianjia Zhang wrote: > In tpm_tis_core_init(), tpm2_probe() will be called first, this > function will eventually call tpm_tis_send(), and then > tpm_tis_probe_irq_single() will detect whether the interrupt is > normal, mainly the installation interrupted,

[PATCH] tpm/tpm_tis: Fix variable reset during IRQ probing

2021-01-13 Thread Tianjia Zhang
In tpm_tis_core_init(), tpm2_probe() will be called first, this function will eventually call tpm_tis_send(), and then tpm_tis_probe_irq_single() will detect whether the interrupt is normal, mainly the installation interrupted, set `priv->irq_tested` to false. The logic will eventually be executed