Patch 1: Uses DEFINE_MUTEX() and LIST_HEAD() to automatically
initialize locks and list heads instead of runtime initialization.
Patch 2: Supports multiple tfms sharing the device to avoid
tfm creation failure.
Weili Qian (2):
crypto: hisilicon/trng - use DEFINE_MUTEX() and LIST_HEAD()
crypto: hisilicon/trng - support tfms sharing the device
drivers/crypto/hisilicon/trng/trng.c | 200 ++++++++++++++++-----------
1 file changed, 116 insertions(+), 84 deletions(-)
--
2.33.0