mmc: sti_sdhci: Fix sdhci_setup_cfg() call.
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 24 Jul 2019 07:51:02 +0000 (09:51 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Tue, 27 Aug 2019 07:36:56 +0000 (09:36 +0200)
commit2e01fcf17c221cba2b54d0f238a39f12b0ef361a
tree4463066c46a5ac8c3278ddb771af5b3dac901c32
parent23441fbf2bc8c3c00355be0340137bda327a8ff4
mmc: sti_sdhci: Fix sdhci_setup_cfg() call.

host->mmc, host->mmc->dev and host->mmc->priv must be set
before calling sdhci_setup_cfg() to avoid hang during mmc
initialization.

Thanks to commit 3d296365e4e8
("mmc: sdhci: Add support for sdhci-caps-mask") which put
this issue into evidence.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/mmc/sti_sdhci.c