]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
mmc: fix data type of timer variables
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 13 Mar 2017 10:19:51 +0000 (11:19 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 13 Mar 2017 15:36:34 +0000 (16:36 +0100)
commita1a8fe69668f5bf537941dd04647206a3f0af266
treece53f9be1f5b8e51a0003c589edcf7dc1f8be613
parente59fa8752f58a4742308b28870ebf19c9112745d
mmc: fix data type of timer variables

get_timer() returns an unsigned long value. This may be 64bit wide on
64bit archs. Storing this value in an unsigned int will cut off the
upper half of the value leading to miscalculation of the elapsed time,
if the upper 32bits of the current timestamp are non-zero.
drivers/mmc/mmc.c
drivers/mmc/sdhci.c