Re: [PATCH v2 5/6] tpm: add driver for cr50 on SPI

From: Stephen Boyd
Date: Wed Jul 17 2019 - 18:17:15 EST


Quoting Stephen Boyd (2019-07-17 14:38:36)
> @@ -131,6 +303,8 @@ static int tpm_tis_spi_transfer(struct tpm_tis_data *data, u32 addr, u16 len,
>
> exit:
> spi_bus_unlock(phy->spi_device->master);
> + phy->last_access = jiffies;
> + mutex_lock(&phy->time_track_mutex);

This should be mutex_unlock().