[tpmdd-devel] [PATCH v4 RESEND 2/2] tpm: do not suspend/resume if power stays on

2017-06-27 Thread Enric Balletbo i Serra
The suspend/resume behavior of the TPM can be controlled by setting "powered-while-suspended" in the DTS. This is useful for the cases when hardware does not power-off the TPM. Signed-off-by: Sonny Rao <sonny...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.bal

[tpmdd-devel] [PATCH v4 RESEND 1/2] Documentation: tpm: add powered-while-suspended binding documentation

2017-06-27 Thread Enric Balletbo i Serra
Add a new powered-while-suspended property to control the behavior of the TPM suspend/resume. Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> Signed-off-by: Sonny Rao <sonny...@chromium.org> Reviewed-by: Jason Gunthorpe <jguntho...@obsidianresearch.com> R

[tpmdd-devel] [PATCH v4 2/2] tpm: do not suspend/resume if power stays on

2017-05-29 Thread Enric Balletbo i Serra
The suspend/resume behavior of the TPM can be controlled by setting "powered-while-suspended" in the DTS. This is useful for the cases when hardware does not power-off the TPM. Signed-off-by: Sonny Rao <sonny...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.bal

[tpmdd-devel] [PATCH RESEND v2] tpm: Apply a sane minimum adapterlimit value for retransmission.

2017-05-22 Thread Enric Balletbo i Serra
a bad state. Signed-off-by: Bryan Freed <bfr...@chromium.org> [rework the patch to adapt to the feedback received] Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> Acked-by: Andrew Lunn <and...@lunn.ch> Reviewed-by: Jarkko Sakkinen <jarkko.sakki...@linux.int

[tpmdd-devel] [PATCH v3] tpm: Apply a sane minimum adapterlimit value for retransmission.

2017-03-28 Thread Enric Balletbo i Serra
a bad state. Signed-off-by: Bryan Freed <bfr...@chromium.org> [rework the patch to adapt to the feedback received] Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- This is a reworked version of the original patch based on the suggestion made by Wolfram Sang t

[tpmdd-devel] [PATCH v3] tpm: do not suspend/resume if power stays on

2017-03-03 Thread Enric Balletbo i Serra
From: Sonny Rao <sonny...@chromium.org> The suspend/resume behavior of the TPM can be controlled by setting "powered-while-suspended" in the DTS. This is useful for the cases when hardware does not power-off the TPM. Signed-off-by: Sonny Rao <sonny...@chromium.org> Signed-

Re: [tpmdd-devel] [PATCH v2] tpm: do not suspend/resume if power stays on

2017-03-03 Thread Enric Balletbo i Serra
Hi Jarkko, Thanks for the review On 03/03/17 16:12, Jarkko Sakkinen wrote: > On Thu, Mar 02, 2017 at 04:42:57PM +0100, Enric Balletbo i Serra wrote: >> From: Sonny Rao <sonny...@chromium.org> >> >> The suspend/resume behavior of the TPM can be controlled by setting

Re: [tpmdd-devel] [PATCH v2] tpm: Apply a sane minimum adapterlimit value for retransmission.

2017-03-02 Thread Enric Balletbo i Serra
Hi Andrew, On 02/03/17 18:24, Andrew Lunn wrote: Hi Enric Maybe you should remember that you need to use smaller transfers? If you don't remember, but use the full size message every time and only drop back on error, the i2c core is going to log rate limited

[tpmdd-devel] [PATCH v2] tpm: do not suspend/resume if power stays on

2017-03-02 Thread Enric Balletbo i Serra
From: Sonny Rao <sonny...@chromium.org> The suspend/resume behavior of the TPM can be controlled by setting "powered-while-suspended" in the DTS. This is useful for the cases when hardware does not power-off the TPM. Signed-off-by: Sonny Rao <sonny...@chromium.org> Signed-

[tpmdd-devel] [PATCH v2] tpm: Apply a sane minimum adapterlimit value for retransmission.

2017-03-01 Thread Enric Balletbo i Serra
a bad state. Signed-off-by: Bryan Freed <bfr...@chromium.org> [rework the patch to adapt to the feedback received] Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- This is a reworked version of the original patch based on the suggestion made by Wolfram Sang t

Re: [tpmdd-devel] [PATCH] tpm: do not suspend/resume if power stays on

2017-03-01 Thread Enric Balletbo i Serra
Hi Peter, On 01/03/17 13:00, Peter Huewe wrote: > > > Am 1. März 2017 12:51:16 MEZ schrieb Enric Balletbo i Serra > <enric.balle...@collabora.com>: >> From: Sonny Rao <sonny...@chromium.org> >> >> The suspend/resume behavior of the TPM can be control

[tpmdd-devel] [PATCH] tpm: do not suspend/resume if power stays on

2017-03-01 Thread Enric Balletbo i Serra
From: Sonny Rao <sonny...@chromium.org> The suspend/resume behavior of the TPM can be controlled by setting "powered-while-suspended" in the DTS. Signed-off-by: Sonny Rao <sonny...@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balle...@collabora.com> -

Re: [tpmdd-devel] [PATCH 1/2] tpm: Apply an adapterlimit for retransmission.

2017-02-22 Thread Enric Balletbo i Serra
Hi Andrew, Removing Bryan Freed from the loop as seems his email is not valid anymore. I already CC'ied Andrey which is doing the TPM bit in chromeos kernel. On 21/02/17 17:29, Andrew Lunn wrote: > On Tue, Feb 21, 2017 at 03:44:59PM +0100, Enric Balletbo i Serra wrote: >> From: Bryan F

[tpmdd-devel] [PATCH 2/2] tpm: Do not assume an i2c adapter preserves the msg len

2017-02-21 Thread Enric Balletbo i Serra
From: Bryan Freed <bfr...@chromium.org> Prevent a possible infinite loop by using a local variable to advance len down to 0. This is safer than trusting the I2C and adapter drivers to preserve msg2.len. Signed-off-by: Bryan Freed <bfr...@chromium.org> Signed-off-by: Enric Ball