]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: hisilicon/trng - support tfms sharing the device
authorWeili Qian <qianweili@huawei.com>
Sat, 17 Jan 2026 07:18:21 +0000 (15:18 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 31 Jan 2026 02:52:31 +0000 (10:52 +0800)
commit3d3135057ff567d5c09fff4c9ef6391a684e8042
tree23d59595e98d13f932813d646095ef24e0ddec5d
parentea377793f41989e425498f50ec0c76c70567c1ae
crypto: hisilicon/trng - support tfms sharing the device

Since the number of devices is limited, and the number
of tfms may exceed the number of devices, to ensure that
tfms can be successfully allocated, support tfms
sharing the same device.

Fixes: e4d9d10ef4be ("crypto: hisilicon/trng - add support for PRNG")
Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/trng/trng.c