aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccree/cc_debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/crypto/ccree/cc_debugfs.c')
-rw-r--r--drivers/crypto/ccree/cc_debugfs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/crypto/ccree/cc_debugfs.c b/drivers/crypto/ccree/cc_debugfs.c
index 08f8db489cf0..5ca184e42483 100644
--- a/drivers/crypto/ccree/cc_debugfs.c
+++ b/drivers/crypto/ccree/cc_debugfs.c
@@ -26,7 +26,8 @@ struct cc_debugfs_ctx {
26static struct dentry *cc_debugfs_dir; 26static struct dentry *cc_debugfs_dir;
27 27
28static struct debugfs_reg32 debug_regs[] = { 28static struct debugfs_reg32 debug_regs[] = {
29 CC_DEBUG_REG(HOST_SIGNATURE), 29 { .name = "SIGNATURE" }, /* Must be 0th */
30 { .name = "VERSION" }, /* Must be 1st */
30 CC_DEBUG_REG(HOST_IRR), 31 CC_DEBUG_REG(HOST_IRR),
31 CC_DEBUG_REG(HOST_POWER_DOWN_EN), 32 CC_DEBUG_REG(HOST_POWER_DOWN_EN),
32 CC_DEBUG_REG(AXIM_MON_ERR), 33 CC_DEBUG_REG(AXIM_MON_ERR),
@@ -34,7 +35,6 @@ static struct debugfs_reg32 debug_regs[] = {
34 CC_DEBUG_REG(HOST_IMR), 35 CC_DEBUG_REG(HOST_IMR),
35 CC_DEBUG_REG(AXIM_CFG), 36 CC_DEBUG_REG(AXIM_CFG),
36 CC_DEBUG_REG(AXIM_CACHE_PARAMS), 37 CC_DEBUG_REG(AXIM_CACHE_PARAMS),
37 CC_DEBUG_REG(HOST_VERSION),
38 CC_DEBUG_REG(GPR_HOST), 38 CC_DEBUG_REG(GPR_HOST),
39 CC_DEBUG_REG(AXIM_MON_COMP), 39 CC_DEBUG_REG(AXIM_MON_COMP),
40}; 40};
@@ -58,6 +58,9 @@ int cc_debugfs_init(struct cc_drvdata *drvdata)
58 struct debugfs_regset32 *regset; 58 struct debugfs_regset32 *regset;
59 struct dentry *file; 59 struct dentry *file;
60 60
61 debug_regs[0].offset = drvdata->sig_offset;
62 debug_regs[1].offset = drvdata->ver_offset;
63
61 ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); 64 ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
62 if (!ctx) 65 if (!ctx)
63 return -ENOMEM; 66 return -ENOMEM;