crypto/dpaa_sec: move mempool allocation to config
authorAkhil Goyal <akhil.goyal@nxp.com>
Mon, 2 Apr 2018 15:33:20 +0000 (21:03 +0530)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 23 Apr 2018 17:20:09 +0000 (18:20 +0100)
commit7e3e2954e0013e93c1831ec339fcc390592e2791
treefdb2ed2694fbf68f172e4c248b7fb24fd06e9823
parentdebef417a0e3609485473e135c5f2fbc541cfc4b
crypto/dpaa_sec: move mempool allocation to config

Currently, the context mempools are allocated during device probe. Thus,
even if the DPAA SEC devices are not used, any application would still
allocate the memory required for working with the contexts.

This patch moves the allocation to configuration time so that when the
CAAM devices are configured, this allocation would be done.

Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>
Signed-off-by: Ashish Jain <ashish.jain@nxp.com>
Tested-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/crypto/dpaa_sec/dpaa_sec.c