RE: [PATCH v3 2/3] crypto: inside-secure: add SafeXcel EIP197 crypto engine driver

2017-05-08 Thread Igal Liberman
Haklai > Subject: Re: [PATCH v3 2/3] crypto: inside-secure: add SafeXcel EIP197 > crypto engine driver > > On 24/04/17 09:57, Antoine Tenart wrote: > > Hi Igal, > > > > On Mon, Apr 24, 2017 at 08:50:32AM +, Igal Liberman wrote: > >> [...] > >&g

Re: [PATCH v3 2/3] crypto: inside-secure: add SafeXcel EIP197 crypto engine driver

2017-05-03 Thread Robin Murphy
On 24/04/17 09:57, Antoine Tenart wrote: > Hi Igal, > > On Mon, Apr 24, 2017 at 08:50:32AM +, Igal Liberman wrote: >> [...] >> >>> + priv->clk = of_clk_get(dev->of_node, 0); >>> + if (!IS_ERR(priv->clk)) { >>> + ret = clk_prepare_enable(priv->clk); >>> + if (ret) { >>>

Re: [PATCH v3 2/3] crypto: inside-secure: add SafeXcel EIP197 crypto engine driver

2017-05-03 Thread Antoine Tenart
Hi Robin, On Wed, May 03, 2017 at 12:57:25PM +0100, Robin Murphy wrote: > On 24/04/17 08:54, Antoine Tenart wrote: > > + > > +#include > > everywhere, please. > > Other than that, the DMA aspects all look much nicer now, thanks. I'll update and resend a series when the next -rc1 is out. Than

Re: [PATCH v3 2/3] crypto: inside-secure: add SafeXcel EIP197 crypto engine driver

2017-05-03 Thread Robin Murphy
Hi Antoine, On 24/04/17 08:54, Antoine Tenart wrote: > Add support for Inside Secure SafeXcel EIP197 cryptographic engine, > which can be found on Marvell Armada 7k and 8k boards. This driver > currently implements: ecb(aes), cbc(aes), sha1, sha224, sha256 and > hmac(sah1) algorithms. > > Two fir

Re: [PATCH v3 2/3] crypto: inside-secure: add SafeXcel EIP197 crypto engine driver

2017-04-24 Thread Antoine Tenart
Hi Stephan, On Mon, Apr 24, 2017 at 02:59:05PM +0200, Stephan Müller wrote: > Am Montag, 24. April 2017, 09:54:06 CEST schrieb Antoine Tenart: > > > +struct safexcel_cipher_ctx { > > + struct safexcel_context base; > > + struct safexcel_crypto_priv *priv; > > + > > + enum safexcel_cipher_di

Re: [PATCH v3 2/3] crypto: inside-secure: add SafeXcel EIP197 crypto engine driver

2017-04-24 Thread Stephan Müller
Am Montag, 24. April 2017, 09:54:06 CEST schrieb Antoine Tenart: Hi Antoine, > +struct safexcel_cipher_ctx { > + struct safexcel_context base; > + struct safexcel_crypto_priv *priv; > + > + enum safexcel_cipher_direction direction; > + u32 mode; > + > + __le32 key[8]; Can you

Re: [PATCH v3 2/3] crypto: inside-secure: add SafeXcel EIP197 crypto engine driver

2017-04-24 Thread Antoine Tenart
Hi Igal, On Mon, Apr 24, 2017 at 08:50:32AM +, Igal Liberman wrote: > [...] > > > + priv->clk = of_clk_get(dev->of_node, 0); > > + if (!IS_ERR(priv->clk)) { > > + ret = clk_prepare_enable(priv->clk); > > + if (ret) { > > + dev_err(dev, "unable to enab

RE: [PATCH v3 2/3] crypto: inside-secure: add SafeXcel EIP197 crypto engine driver

2017-04-24 Thread Igal Liberman
[...] > + priv->clk = of_clk_get(dev->of_node, 0); > + if (!IS_ERR(priv->clk)) { > + ret = clk_prepare_enable(priv->clk); > + if (ret) { > + dev_err(dev, "unable to enable clk (%d)\n", ret); > + return ret; > + } >