Skip to content
Commit dbdea70f authored by Eugen Hristev's avatar Eugen Hristev Committed by Ulf Hansson
Browse files

mmc: sdhci-of-at91: fix CALCR register being rewritten



When enabling calibration at reset, the CALCR register was completely
rewritten. This may cause certain bits being deleted unintentedly.
Fix by issuing a read-modify-write operation.

Fixes: 727d836a ("mmc: sdhci-of-at91: add DT property to enable calibration on full reset")
Signed-off-by: default avatarEugen Hristev <eugen.hristev@microchip.com>
Link: https://lore.kernel.org/r/20200527105659.142560-1-eugen.hristev@microchip.com


Cc: stable@vger.kernel.org
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 16e40e5b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment