mbox series

[RESEND,0/2] crypto: caam - Support deferred probing of JR dependend drivers

Message ID 20180807080026.17039-1-m.niestroj@grinn-global.com (mailing list archive)
Headers show
Series crypto: caam - Support deferred probing of JR dependend drivers | expand

Message

Marcin Niestroj Aug. 7, 2018, 8 a.m. UTC
Hi,

I'm resending patch series, as I forgot to CC linux-crypto list.
This patch series fixes/improves CAAM JR dependent drivers initialization.
So far successful initialization depended on link and device-tree nodes
order. These changes make sure all drivers that use JRs (i.e. call
caam_jr_alloc() function) return -EPROBE_DEFER whem JRs are not yet
available (initialized).

Patches were developed and tested on v4.18-rc8.

Marcin Niestroj (2):
  crypto: caam/jr - Fix race by statically initializing global data
  crypto: caam - Support deferred probing in JR dependent drivers

 drivers/crypto/caam/caamalg.c    |  3 +++
 drivers/crypto/caam/caamalg_qi.c |  3 +++
 drivers/crypto/caam/caamhash.c   |  3 +++
 drivers/crypto/caam/caampkc.c    |  3 +++
 drivers/crypto/caam/caamrng.c    |  3 +++
 drivers/crypto/caam/jr.c         | 20 +++++---------------
 6 files changed, 20 insertions(+), 15 deletions(-)