Re: [PATCH v3] tpm: Apply a sane minimum adapterlimit value for retransmission.

From: Andrew Lunn
Date: Tue Mar 28 2017 - 12:21:07 EST


On Tue, Mar 28, 2017 at 05:29:38PM +0200, Enric Balletbo i Serra wrote:
> From: Bryan Freed <bfreed@xxxxxxxxxxxx>
>
> When the I2C Infineon part is attached to an I2C adapter that imposes
> a size limitation, large requests will fail with -EOPNOTSUPP. Retry
> them with a sane minimum size without re-issuing the 0x05 command
> as this appears to occasionally put the TPM in a bad state.
>
> Signed-off-by: Bryan Freed <bfreed@xxxxxxxxxxxx>
> [rework the patch to adapt to the feedback received]
> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@xxxxxxxxxxxxx>

This looks O.K. now. Thanks for remembering the adaptor limit.

Acked-by: Andrew Lunn <andrew@xxxxxxx>

Andrew