Re: [PATCH v2 3/4] tpm_tis: Use responseRetry to recover from data transfer errors
From: Jarkko Sakkinen
Date: Tue Jun 06 2023 - 17:18:35 EST
On Mon Jun 5, 2023 at 8:59 PM EEST, Alexander Steffen wrote:
> +static int tpm_tis_recv_with_retries(struct tpm_chip *chip, u8 *buf, size_t count)
> +{
> + struct tpm_tis_data *priv = dev_get_drvdata(&chip->dev);
> + unsigned int try;
> + int rc = 0;
> +
> + if (count < TPM_HEADER_SIZE) {
> + rc = -EIO;
> + goto out;
> + }
if (count < TPM_HEADER_SIZE)
return -EIO;
BR, Jarkko