Re: [PATCH v2] hwrng: histb - Move driver to drivers/char/hw_random/histb-rng.c

From: Herbert Xu
Date: Fri May 12 2023 - 07:00:23 EST


On Sat, Apr 22, 2023 at 12:56:49AM +0800, David Yang wrote:
> Move to drivers/char/hw_random since histb-(t)rng does not provide
> cryptography pseudo rng.
>
> histb-rng is pretty like hisi-rng, but after investigation, we confirm
> there is no RNG_PHY_SEED register on histb-rng so a separate driver is
> needed.
>
> Still we rename relevant function names to match those in hisi-rng.
>
> Link: https://lore.kernel.org/r/20230401164448.1393336-1-mmyangfl@xxxxxxxxx
> Signed-off-by: David Yang <mmyangfl@xxxxxxxxx>
> ---
> v2: drop the dependency on HW_RANDOM
> drivers/char/hw_random/Kconfig | 11 +++
> drivers/char/hw_random/Makefile | 1 +
> .../trng-stb.c => char/hw_random/histb-rng.c} | 83 +++++++++----------
> drivers/crypto/hisilicon/Kconfig | 7 --
> drivers/crypto/hisilicon/Makefile | 2 +-
> drivers/crypto/hisilicon/trng/Makefile | 3 -
> 6 files changed, 53 insertions(+), 54 deletions(-)
> rename drivers/{crypto/hisilicon/trng/trng-stb.c => char/hw_random/histb-rng.c} (53%)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt