crypto/dpaa2_sec: fix close and uninit functions
authorHemant Agrawal <hemant.agrawal@nxp.com>
Wed, 5 May 2021 12:16:52 +0000 (17:46 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 5 May 2021 15:16:25 +0000 (17:16 +0200)
commit394b4e118e503e80ba86388d5f59f89331cf53c5
tree4972e0a3ed204c103190233bcd3e6324190e671b
parent22629f05f8832358d01872414e0e30c2c81e43d4
crypto/dpaa2_sec: fix close and uninit functions

The init function was calling the dpseci_open
while dpseci_close was called by the open function.
This is a mismatch un-init shall clean the init configurations and
close shall clear the configure function settings.

This was causing issue with recent changes in test framework, where
the close was being called and causing DPAA2 SEC to fail in configure

Fixes: e5cbdfc53765 ("crypto/dpaa2_sec: add basic operations")
Cc: stable@dpdk.org
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c