]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: fix card threshold control configuration
authorx00270170 <xiaqing17@hisilicon.com>
Tue, 3 Jul 2018 07:06:27 +0000 (15:06 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 3 Jul 2018 08:57:16 +0000 (10:57 +0200)
commit90b7abe935cc51ae65bba9dbb5dd77e8564a0f3d
tree63f57ea8ceeea61859bc3f795c4a9aa86d42d790
parentf5adf2befb8aef4cd0e0f93658a6f895460ab2e0
mmc: dw_mmc: fix card threshold control configuration

Card write threshold control is supposed to be set since controller
version 2.80a for data write in HS400 mode and data read in
HS200/HS400/SDR104 mode. However the current code returns without
configuring it in the case of data writing in HS400 mode.
Meanwhile the patch fixes that the current code goes to
'disable' when doing data reading in HS400 mode.

Fixes: 79e6bdd8f3ac ("mmc: dw_mmc: add the card write threshold for HS400 mode")
Signed-off-by: Qing Xia <xiaqing17@hisilicon.com>
Cc: stable@vger.kernel.org # v4.8+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c