Skip to contentSkip to conversation

chcr: Print the chcr driver information while module load.

Crypto Devulapally Shiva Krishna 2 participants 2 messages Feb 5, 2020 – Feb 13, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

No logs are recorded in dmesg during chcr module load, hence adding the print and also appending -ko to driver version.

---
 drivers/crypto/chelsio/chcr_core.c | 1 +
 drivers/crypto/chelsio/chcr_core.h | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/crypto/chelsio/chcr_core.c +1 -0
index e937605670ac..507ba20f0874 100644
@@ -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);
 
drivers/crypto/chelsio/chcr_core.h +2 -1
index ad874d548aa5..b41ef1abfe74 100644
@@ -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
Signature · 1 line
2.18.1
maintainer
#1 lore raw
Quoted 8 lines · Devulapally Shiva Krishna

No logs are recorded in dmesg during chcr module load, hence adding the print and also appending -ko to driver version.

---
 drivers/crypto/chelsio/chcr_core.c | 1 +
 drivers/crypto/chelsio/chcr_core.h | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt