[PATCH v3 1/2] crypto: sun4i-ss: simplify enable/disable of the device

2019-09-24 Thread Corentin Labbe
This patch regroups resource enabling/disabling in dedicated function. This simplify error handling and will permit to support power management. Signed-off-by: Corentin Labbe Acked-by: Maxime Ripard --- drivers/crypto/sunxi-ss/sun4i-ss-core.c | 77 +++-- 1 file changed, 46 i

[PATCH v3 2/2] crypto: sun4i-ss: enable pm_runtime

2019-09-24 Thread Corentin Labbe
This patch enables power management on the Security System. sun4i-ss now depends on PM because it simplify code and prevent some ifdef. But this is not a problem since arch maintainer want ARCH_SUNXI to depend on PM in the future. Signed-off-by: Corentin Labbe --- drivers/crypto/Kconfig

[PATCH v3 0/2] crypto: sun4i-ss: Enable power management

2019-09-24 Thread Corentin Labbe
Hello This serie enables power management in the sun4i-ss driver. Regards Changes since v2 ( https://lore.kernel.org/linux-arm-kernel/20190919051035.4111-2-clabbe.montj...@gmail.com/T/ ): - depends on PM - fusioned suspend/resume functions with sun4i_ssenable/disable - fixed style problem Cha

Re: [PATCH v6 02/12] tpm-buf: add handling for TPM2B types

2019-09-24 Thread James Bottomley
On Fri, 2019-09-20 at 17:18 +0300, Jarkko Sakkinen wrote: > On Mon, Sep 09, 2019 at 01:18:35PM +0100, James Bottomley wrote: > > Most complex TPM commands require appending TPM2B buffers to the > > command body. Since TPM2B types are essentially variable size > > arrays,it makes it impossible to r

Re: [PATCH v6 05/12] tpm2-sessions: Add full HMAC and encrypt/decrypt session handling

2019-09-24 Thread James Bottomley
On Fri, 2019-09-20 at 17:35 +0300, Jarkko Sakkinen wrote: > On Fri, Sep 20, 2019 at 05:34:00PM +0300, Jarkko Sakkinen wrote: > > On Mon, Sep 09, 2019 at 01:20:57PM +0100, James Bottomley wrote: > > Forgot to ask: what is the new field handles? You mean for the null seed or for the virtual handles

Re: [Patch v6 4/4] KEYS: trusted: Move TPM2 trusted keys code

2019-09-24 Thread Jarkko Sakkinen
On Wed, Sep 18, 2019 at 11:53:08AM +0530, Sumit Garg wrote: > No worries :). I will send next version of patch-set. > > FYI, I will be travelling for Linaro Connect next week so you could > expect some delays in my responses. These patches will go to v5.5. There is nothing to rush. /Jarkko