]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: mmci: add variant property to not read datacnt
authorLudovic Barre <ludovic.barre@st.com>
Mon, 8 Oct 2018 12:08:49 +0000 (14:08 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Oct 2018 07:13:04 +0000 (09:13 +0200)
commitb79220b3e0af5037b2ae90a5d2c32bc1a1e627fb
treeedb3d648868d3841cce4aa4ffd4988f246c30453
parentd2141547f594d396f85010ba0b37d0e9491943b6
mmc: mmci: add variant property to not read datacnt

This patch adds a boolean property to not read datacnt register.
Needed to support the STM32 sdmmc variant. MMCIDATACNT
register should be read only after the data transfer is completed.
When reading after an error event the read data count value may be
different from the real number of data bytes transferred.

Signed-off-by: Ludovic Barre <ludovic.barre@st.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmci.c
drivers/mmc/host/mmci.h