summaryrefslogtreecommitdiff
path: root/include/hw_sha.h
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2019-09-25 20:40:56 +0200
committerKever Yang <kever.yang@rock-chips.com>2019-09-28 22:26:32 +0800
commit03f98b75e47ef9df890d92b4989fdd209ba55734 (patch)
treeb8a877876bae5332bf9233806a784a34365d6373 /include/hw_sha.h
parentdfd590075ca263d6b3ed22465a94d33a8ee93e07 (diff)
rockchip: misc: read the correct number of bytes from the efuse
Originally the cpuid var the value gets read into was defined as u8 cpuid[RK3399_CPUID_LEN]; hence the sizeof(cpuid) would return the correct the correct number of array elements. With the move to a separate function cpuid becomes a pointer and sizeof(cpuid) hence returns the pointer size - 8 in the arm64 case. We do have the actual id length available as function param so use it for actual amount of bytes to read. Fixes: 04825384999f ("rockchip: rk3399: derive ethaddr from cpuid") Signed-off-by: Heiko Stuebner <heiko@sntech.de> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Kever Yang<kever.yang@rock-chips.com>
Diffstat (limited to 'include/hw_sha.h')
0 files changed, 0 insertions, 0 deletions