]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: stm32_sdmmc2: Fix r1b timeout issue
authorChristophe Kerello <christophe.kerello@st.com>
Thu, 6 Dec 2018 14:58:10 +0000 (15:58 +0100)
committerPatrice Chotard <patrice.chotard@st.com>
Tue, 23 Apr 2019 13:42:28 +0000 (15:42 +0200)
commitc5db6d94be7ea48f36ca72a1acf039f3bca02eba
treecc359f92aee13e7d61793f933f92a7b7aa5899be
parenta2dbb8c7cd3f042022dd54cc1e51aa5da153273d
mmc: stm32_sdmmc2: Fix r1b timeout issue

On response type r1b, if DTIME is not defined or too short,
the Datatimeout and DPSM flag occurs. Like the DPSM is
activated all next data transfer will be frozen.
To avoid this freeze:
    -The driver must define a DTIME on all r1b response type.
    -DTIME of SDMMC must be defined for alls stop transmission
     (for read and write request) even if MMC_RSP_BUSY is not set.
    -If busy timeout occur, an abort request must be sent to
     reinitialize the DPSM.

Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Tested-by: Patrick DELAUNAY <patrick.delaunay@st.com>
drivers/mmc/stm32_sdmmc2.c