From: niuyongwen <niuyongwen(a)hygon.cn>
During the process of developing TDM, we find that we need to obtain the measurement
counts for some tasks, but at present, the variable of one byte will soon be
exhausted, which can not meet the use requirements. Therefore, we extend the variable
to eight bytes to support the application;
At the same time, the TDM driver version is upgraded from 0.1 to 0.2.
Signed-off-by: niuyongwen <niuyongwen(a)hygon.cn>
Change-Id: I4c6eea01eb1f217049597cfac531f38c0d415dbd
---
drivers/crypto/ccp/tdm_hygon.c | 2 +-
drivers/crypto/ccp/tdm_hygon.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/crypto/ccp/tdm_hygon.c b/drivers/crypto/ccp/tdm_hygon.c
index fda129cd7353..24fc5ef8f451 100644
--- a/drivers/crypto/ccp/tdm_hygon.c
+++ b/drivers/crypto/ccp/tdm_hygon.c
@@ -997,7 +997,7 @@ static void __exit _module_exit(void)
MODULE_AUTHOR("niuyongwen(a)hygon.cn").cn");
MODULE_LICENSE("GPL");
-MODULE_VERSION("0.1");
+MODULE_VERSION("0.2");
MODULE_DESCRIPTION("The dynamic measure driver");
module_init(_module_init);
diff --git a/drivers/crypto/ccp/tdm_hygon.h b/drivers/crypto/ccp/tdm_hygon.h
index 80d9c34e0fd9..86f923f115bb 100644
--- a/drivers/crypto/ccp/tdm_hygon.h
+++ b/drivers/crypto/ccp/tdm_hygon.h
@@ -81,7 +81,7 @@ struct authcode_2b {
struct measure_status {
uint8_t status;
uint8_t error;
- uint8_t count;
+ uint64_t count;
} __attribute__((packed));
struct measure_update_data {
--
2.17.1