lkml.org 
[lkml]   [2018]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 76/77] mmc: sdhci-of-esdhc: fix eMMC couldnt work after kexec
    Date
    4.9-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: yinbo.zhu <yinbo.zhu@nxp.com>

    commit 97618aca1440b5addc5c3d78659d3e176be23b80 upstream.

    The bit eSDHC_TBCTL[TB_EN] couldn't be reset by eSDHC_SYSCTL[RSTA] which is
    used to reset for all. The driver should make sure it's cleared before card
    initialization, otherwise the initialization would fail.

    Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
    Acked-by: Adrian Hunter <adrian.hunter@intel.com>
    Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
    Cc: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/mmc/host/sdhci-of-esdhc.c | 4 ++++
    1 file changed, 4 insertions(+)

    --- a/drivers/mmc/host/sdhci-of-esdhc.c
    +++ b/drivers/mmc/host/sdhci-of-esdhc.c
    @@ -584,6 +584,10 @@ static void esdhc_init(struct platform_d
    pltfm_host = sdhci_priv(host);
    esdhc = sdhci_pltfm_priv(pltfm_host);

    + val = sdhci_readl(host, ESDHC_TBCTL);
    + val &= ~ESDHC_TB_EN;
    + sdhci_writel(host, val, ESDHC_TBCTL);
    +
    host_ver = sdhci_readw(host, SDHCI_HOST_VERSION);
    esdhc->vendor_ver = (host_ver & SDHCI_VENDOR_VER_MASK) >>
    SDHCI_VENDOR_VER_SHIFT;

    \
     
     \ /
      Last update: 2018-02-21 15:27    [W:2.513 / U:0.452 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site