crypto: chelsio - Print the chcr driver information while module load.
authorDevulapally Shiva Krishna <shiva@chelsio.com>
Wed, 5 Feb 2020 10:34:33 +0000 (16:04 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Feb 2020 09:05:26 +0000 (17:05 +0800)
No logs are recorded in dmesg during chcr module load, hence
adding the print and also appending -ko to driver version.

Signed-off-by: Devulapally Shiva Krishna <shiva@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_core.c
drivers/crypto/chelsio/chcr_core.h

index e937605670ac0453f81d5197f96e4fee4414ebfc..507ba20f0874419a4ae8c08d85eb29d39473cf8d 100644 (file)
@@ -190,6 +190,7 @@ static void *chcr_uld_add(const struct cxgb4_lld_info *lld)
        struct uld_ctx *u_ctx;
 
        /* Create the device and add it in the device list */
+       pr_info_once("%s - version %s\n", DRV_DESC, DRV_VERSION);
        if (!(lld->ulp_crypto & ULP_CRYPTO_LOOKASIDE))
                return ERR_PTR(-EOPNOTSUPP);
 
index ad874d548aa59b9559aa0d0427cabef555d4d31d..b41ef1abfe747b31b3213e0837fc1a16f3477074 100644 (file)
@@ -43,7 +43,8 @@
 #include "cxgb4_uld.h"
 
 #define DRV_MODULE_NAME "chcr"
-#define DRV_VERSION "1.0.0.0"
+#define DRV_VERSION "1.0.0.0-ko"
+#define DRV_DESC "Chelsio T6 Crypto Co-processor Driver"
 
 #define MAX_PENDING_REQ_TO_HW 20
 #define CHCR_TEST_RESPONSE_TIMEOUT 1000