summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2017-06-08 04:16:35 +0300
committerKever Yang <kever.yang@rock-chips.com>2017-07-21 05:28:51 +0300
commit9785aaa5b8621d15cc02f554df525fa7a0f0c275 (patch)
tree7e12f416e9e54421937c266a2400272b289c0114
parentd2842e85c5c282d075958598d634fefb5185d6ca (diff)
downloadu-boot-9785aaa5b8621d15cc02f554df525fa7a0f0c275.tar.xz
mmc: rpmb: update size format for write_counter
According to MMC spec, the write_counter is 4-byte length, use 'int' instead of 'long' type for the 'long' is not 4-byte in 64 bit CPU. Change-Id: Id7581a5248b29bd98c7207afa2993990ff0f4660 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
-rw-r--r--drivers/mmc/rpmb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/rpmb.c b/drivers/mmc/rpmb.c
index 1c6888fc48..0b6b6222bd 100644
--- a/drivers/mmc/rpmb.c
+++ b/drivers/mmc/rpmb.c
@@ -67,7 +67,7 @@ struct s_rpmb {
unsigned char mac[RPMB_SZ_MAC];
unsigned char data[RPMB_SZ_DATA];
unsigned char nonce[RPMB_SZ_NONCE];
- unsigned long write_counter;
+ unsigned int write_counter;
unsigned short address;
unsigned short block_count;
unsigned short result;