Re: [PATCH] crypto: caam - use the same jr for rng init/exit

2019-09-20 Thread Horia Geanta
On 9/18/2019 9:01 AM, Andrey Smirnov wrote: > On Wed, Sep 11, 2019 at 2:35 AM Horia Geanta wrote: >> >> On 9/4/2019 5:35 AM, Andrey Smirnov wrote: >>> In order to allow caam_jr_enqueue() to lock underlying JR's >>> device (via device_lock(), see commit that follows) we need to make >>> sure that n

Re: [PATCH] crypto: caam - use the same jr for rng init/exit

2019-09-17 Thread Andrey Smirnov
On Wed, Sep 11, 2019 at 2:35 AM Horia Geanta wrote: > > On 9/4/2019 5:35 AM, Andrey Smirnov wrote: > > In order to allow caam_jr_enqueue() to lock underlying JR's > > device (via device_lock(), see commit that follows) we need to make > > sure that no code calls caam_jr_enqueue() as a part of caam

[PATCH] crypto: caam - use the same jr for rng init/exit

2019-09-11 Thread Horia Geanta
On 9/4/2019 5:35 AM, Andrey Smirnov wrote: > In order to allow caam_jr_enqueue() to lock underlying JR's > device (via device_lock(), see commit that follows) we need to make > sure that no code calls caam_jr_enqueue() as a part of caam_jr_probe() > to avoid a deadlock. Unfortunately, current imple