firmware: turris-mox-rwtm: show message about HWRNG registration
authorPali Rohár <pali@kernel.org>
Thu, 20 May 2021 11:35:20 +0000 (13:35 +0200)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Thu, 17 Jun 2021 12:55:09 +0000 (14:55 +0200)
Currently it is hard to determinate if on Armada 3720 device is HWRNG
by running kernel accessible or not. So print information message into
dmesg when HWRNG is available and registration was successful.

Fixes: 389711b37493 ("firmware: Add Turris Mox rWTM firmware driver")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
drivers/firmware/turris-mox-rwtm.c

index 3ef9687..1cf4f10 100644 (file)
@@ -542,6 +542,8 @@ static int turris_mox_rwtm_probe(struct platform_device *pdev)
                goto free_channel;
        }
 
+       dev_info(dev, "HWRNG successfully registered\n");
+
        return 0;
 
 free_channel: