Received: by 10.223.185.116 with SMTP id b49csp699002wrg; Wed, 21 Feb 2018 05:36:05 -0800 (PST) X-Google-Smtp-Source: AH8x226/DWZeWFQXtdMNh+JAkO5tJQaplcJ9zRKvTCBilFQeI7hjm8lZYw3LjcQAZ6iMkKeh98HS X-Received: by 2002:a17:902:7045:: with SMTP id h5-v6mr3213750plt.217.1519220165690; Wed, 21 Feb 2018 05:36:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519220165; cv=none; d=google.com; s=arc-20160816; b=nT5cAINjBK2NiuFYSTdiRkJJ3bcIDtdHnYN6OjlL4HRAjweOS4FIOEcFNWuGTlQEiG stAcGaLYzPAJjoj9bc0q65i1JAjRyCBhLWksGmANBAZ3wxN5gsP8B25hU1kwwIIOuUjs wyB5cOdn/1ihKW+T/BOwRm6osh2DLyzEi+CKZiWCIpo6QZUulgVNPdm0Z6OFsrbLUra/ SgVOx3rfxdly2lwg1aSdSen7ExVBTdk35zegdFB06kY0ScTGPjITNfBunWuEPYYXdDGM o/7PN8bec+TsPA56robXLtxmR+RJatMKyLAvn+AnP794MZt6E4twuWIV+8MTUBa1oyj7 LN7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=peqgLBDz5ZZNEHjCiW/oZUGS6VhzxFZwFhKHj0iT8mA=; b=WNEpBuR1QgmUYtiyyhDg1pjwrUn+9H570SfSmETa1FZH5Mn2SqXxX3NtXkGy0ZTKJW IhebNqwbIa04WSPA6CO9i16L3Wu8fp3SYBOKOoR+tsMtVJKWg51OgOJggUFlraZy1NIU dAk6radB7F/v8z/7Vv7SFARnaXSWYoDx61NeufRd7sNIioHtez9WMFp7ilScClT1Cvtm zf7MNc7U7Bv/BEuJpPxSe0X9qG9O3qnxvveeaPzQRKVQJrtZyLPh+uu72pSTgGva/IKY 5AWj1Q9LEdi2+/SCt4HW48DcPDl8Kjt7YtijIlP+FWzWJ75pi1PYogx3nnRaGBhwQCjq hcxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s22-v6si9268729plk.550.2018.02.21.05.35.51; Wed, 21 Feb 2018 05:36:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754605AbeBUNQh (ORCPT + 99 others); Wed, 21 Feb 2018 08:16:37 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:45928 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754533AbeBUNNI (ORCPT ); Wed, 21 Feb 2018 08:13:08 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 907D2727; Wed, 21 Feb 2018 13:13:07 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "yinbo.zhu" , Adrian Hunter , Ulf Hansson , Rasmus Villemoes Subject: [PATCH 4.15 162/163] mmc: sdhci-of-esdhc: fix eMMC couldnt work after kexec Date: Wed, 21 Feb 2018 13:49:51 +0100 Message-Id: <20180221124538.870625428@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124529.931834518@linuxfoundation.org> References: <20180221124529.931834518@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: yinbo.zhu 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 Acked-by: Adrian Hunter Signed-off-by: Ulf Hansson Cc: Rasmus Villemoes Signed-off-by: Greg Kroah-Hartman --- 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 @@ -785,6 +785,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;