Re: [PATCH v2 3/3] drivers: crypto: add the Virtual Function driver for OcteonTX2 CPT

2020-08-12 Thread Herbert Xu
On Fri, Aug 07, 2020 at 07:39:20PM +0530, Srujana Challa wrote: > > +static inline int is_any_alg_used(void) > +{ > + int i; > + > + for (i = 0; i < ARRAY_SIZE(otx2_cpt_skciphers); i++) > + if (refcount_read(&otx2_cpt_skciphers[i].base.cra_refcnt) != 1) > + r

[PATCH v2 3/3] drivers: crypto: add the Virtual Function driver for OcteonTX2 CPT

2020-08-07 Thread Srujana Challa
Add support for the cryptographic accelerator unit virtual functions on OcteonTX2 96XX SoC. Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig |4 + drivers/crypto/marvell/octeontx2/Makefile |5 +- .../crypto/marvell/octeontx2/otx2_cpt_hw_types.