Message ID | 20171030075852.7695-1-yinbo.zhu@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 491006039A for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 Oct 2017 08:17:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36123285CE for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 Oct 2017 08:17:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A3F22874A; Mon, 30 Oct 2017 08:17:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 95CF0285CE for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 Oct 2017 08:17:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=hkt/N029OIQ/OomvWHuVFfjq5tRtYUUyHUpmzXnk0FA=; b=TpUtPkn0XFQ9vq YmSLjxQf7t/EDTkC+Jo+NrWzeSeQ2n/OZdLz9Kwx4pXoZzcxUunpaGU05PVh6JOgHlbNlwEZhj27W id9BPdl3BD1+pGtBI1Vol466jbDpXjL972/h+OPnMXP8YOPyK0Uds9HlfMuM9S0djgHgrqxuThOm6 IJgtfqpCOwEI3W10gaRaIs0PO8OkO2h8ELXy6B2EBPIAxs52kX87FF1MVyqkGoSkgw9QeZQ6J5iJp DLto23PiJuG9tUBp6zybu+h3dRgr1p/EhbiswLhnrum1KjFhaRHEcr2XhBN1w6+I9gq7nM1Sw5L9D 3dMI3x9q1DvtINNaHpag==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e95GM-0000ZJ-6W; Mon, 30 Oct 2017 08:17:38 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e95GK-0000Yz-2A for linux-arm-kernel@bombadil.infradead.org; Mon, 30 Oct 2017 08:17:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nUaBI1D5SYFBx+chRpbBq0/K3udALp5I525WCAGf0q0=; b=ZuGxPxfjPPje4FlatesHGtDZow pmgHdHMHwlqp1vP6z/ht72SEodeQK4S2UNUIZ7WvqJhYMT8a3hU8QiMjgBXHoq6L5U7f0U+VLd9LM 4GDMyrt3CbNyVP1DfBio+KvPpbrakCrpkfngpDIQeQBoPcp48jTvx28aIR8hmy0+fZ/1iHHuvoe6B uRw+1iZsgd5BJshhXGnjqkez3Pvu/sa610zGOP74kfj2r3Mj4LlNZE4n6A/c/XOJJJPPGXG+SSxId SyU1Bf0KwELn2EnbVJYEImglGfO4Qyoa1CJ6VehC8Z8Mr5ZnSSM9hr8eLbRqSH8dKYOdXzvy0mpp2 IGgME95w==; Received: from mail-sn1nam01on0048.outbound.protection.outlook.com ([104.47.32.48] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e95GG-0006zd-Tr for linux-arm-kernel@lists.infradead.org; Mon, 30 Oct 2017 08:17:34 +0000 Received: from CY4PR03CA0001.namprd03.prod.outlook.com (10.168.162.11) by MWHPR03MB2704.namprd03.prod.outlook.com (10.168.207.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4; Mon, 30 Oct 2017 08:16:59 +0000 Received: from BY2FFO11FD001.protection.gbl (2a01:111:f400:7c0c::150) by CY4PR03CA0001.outlook.office365.com (2603:10b6:903:33::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.178.6 via Frontend Transport; Mon, 30 Oct 2017 08:16:59 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD001.mail.protection.outlook.com (10.1.14.123) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.178.5 via Frontend Transport; Mon, 30 Oct 2017 08:16:58 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v9U8GsuS014268; Mon, 30 Oct 2017 01:16:55 -0700 From: <yinbo.zhu@nxp.com> To: <linux-devel@gforge.freescale.net> Subject: [PATCH] mmc: sdhci-of-esdhc: fix eMMC couldn't work after kexec Date: Mon, 30 Oct 2017 15:58:52 +0800 Message-ID: <20171030075852.7695-1-yinbo.zhu@nxp.com> X-Mailer: git-send-email 2.14.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131538250190402036; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39860400002)(39380400002)(376002)(346002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(86152003)(50986999)(305945005)(5660300001)(8676002)(77096006)(8936002)(33646002)(106466001)(81166006)(6666003)(2351001)(104016004)(1076002)(48376002)(81156014)(189998001)(36756003)(105606002)(230783001)(2906002)(356003)(498600001)(316002)(54906003)(16586007)(86362001)(575784001)(68736007)(5003940100001)(85426001)(50226002)(50466002)(4326008)(97736004)(8656006)(53936002)(47776003)(6862004)(2876002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2704; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD001; 1:bBhAkbzuuD9sPlv4hG/eiVIZ2HP5zwbUGYfDFD9sXL8FwuluEKEWqs4PlBQB03X+DariFcXrbg0rsSyrQLgYrga+N2beafuO4nvFrAjbDONSKqp8l7O+SiYsKVOjsfJP MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eaf9d3a9-c012-4dd4-a734-08d51f6e975d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603199); SRVR:MWHPR03MB2704; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 3:5kSsdHGhP4O677UWxJv7Of9jBjGsEeIwzifJSawDPEXu9ADWpmP2sg5Q6blWRVuVE7BbZnPgBdY59uou12I950g3HGivI4U4T6Q7NGpByCfLsomLFnCoBtqlutWfkKT12tboe2pKTSFPQRAtx5Yw/P4P3BVV8S9656HVc6tiq3CXoZrb60ZAfWcSpIvWHEZ+U5vQJehhvu51TDXYMF1JxqN/bChOMcLki9i6TAtqUBvhGovIh48mSkRlRSyNNjGlRHylMCuaY1ictkmYPVShAG4G7ITL5fe/m/0jvt9hXvoB0sHB3TofTNLj21NMrjs/7kD6TCIIn1krRaTZbQicWPAzslBYhxA7IF6qOxnGmb4=; 25:JJ67CRkcJ8pkl+w09vBQDvdZcPX52DS+7o3jbeDyNRBWKTTWn73arVpmfquPo9mJnRzRT2XWRMowxKnAxcyIrCAhALGN58WTfRAh8HlNNq8GGIcbFEfWrvxvzTerRJ0+LlmO902s/OKdG5sS2QlqZF4P6xvC/U+lIUb2dfhIyZe4HxrzGYJ8TOd2bVbk82HcCgdBuXnmv+t159qIHgknQKH4i9oDltjX7w7r6jpaMkkC3a2y2DKnG66WEcBPlmtH64HD+ROdPvSDjkA+P3w0rB0mE84l6KjgmvHuzOZaqBcsuh018L4LS5RWp1wr7pKLlcdUEXeWMH1MqjhwMrnhog== X-MS-TrafficTypeDiagnostic: MWHPR03MB2704: X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 31:ykWS6KT5cTTtGeDPuRZJ6PTNmxmPmV6EcHsHP70jCknkyT++TdlVzC1oqc5lBObYpE/pYlnt4g6YEb0eTvLvqukTFXHA28nWrAVJ5bQ6Ipl67s4VBsBo6czfvZi8/QMV55BFSsHqg4oa8vNSkkYyWGMNnwBx+PoBn4OXf66ehW3EZ8qTs/QLidMmS1slbs+YNCkLqrkhSXpkYS1FIg9eaJm/4YtFMaW8t/vHqVMjU/A=; 4:X/tXpuM6JDeHfrvgzEwTBeczX4h3vMvCVezEf0mtiTXEHOP0xfE+P7QG1hE6Xsro86+oe4mqQzCMQzZyIZxj5BRmllH7uqwN0ilwxRqIAJxcMm73GoHUiswvqEXpK3j6Cp2Y9Vb4VkakEG0sYLSyv8m/ZVW9ltL7xFMhccGdxZtCh0Eap423aztOKc12Yzs5i4tZ7R9LpQxFQmlK3IsU0G39Jk5E4WyeCWERZW2+Fygj9QN1eCsr+caZ10t2mjXzajNpmERzD2I2u0bZ3sbIVX/DsIIm05ZchFiak9HJiWI= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: <MWHPR03MB27044BA109C6D6DA892D7520E9590@MWHPR03MB2704.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(3231020)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123556025)(20161123563025)(20161123561025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123559100)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR03MB2704; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR03MB2704; X-Forefront-PRVS: 0476D4AB88 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2704; 23:zOArqjaQ2laiI5l9f631SWcTvWgGqrAjN37kJUrzg?= =?us-ascii?Q?f3gDDJK9Is/TNMfoGxcY+8y+vzjSdUpMFY3uASBQ2oB2mSk7WRpzrivXn7/D?= =?us-ascii?Q?4n3dMA3VRjF29ewugdo4FPOaqvMB56df8H3JlyCYiM3jcQ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R8pBEEwltKv/o2H0Rr+VT7s6CAxx8k3jIDfUTir2EuZi/vxWI6Lnm6grZPm73ZYD1yURW3I7ejSkzckLZ+sM20M= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2017 08:16:58.6814 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eaf9d3a9-c012-4dd4-a734-08d51f6e975d X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2704 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" <devicetree@vger.kernel.org>, Mathias Nyman <mathias.nyman@intel.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "open list:DESIGNWARE USB3 DRD IP DRIVER" <linux-usb@vger.kernel.org>, open list <linux-kernel@vger.kernel.org>, "yinbo.zhu" <yinbo.zhu@nxp.com>, "moderated list:ARM PORT" <linux-arm-kernel@lists.infradead.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/mmc/host/sdhci-esdhc.h b/drivers/mmc/host/sdhci-esdhc.h index 98898a309a36..800ffb3794ef 100644 --- a/drivers/mmc/host/sdhci-esdhc.h +++ b/drivers/mmc/host/sdhci-esdhc.h @@ -59,6 +59,7 @@ /* Tuning Block Control Register */ #define ESDHC_TBCTL 0x120 #define ESDHC_TB_EN 0x00000004 +#define ESDHC_TB_DIS (0x1 << 2) /* Control Register for DMA transfer */ #define ESDHC_DMA_SYSCTL 0x40c diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index 4b0f375bdfd8..77ac9dee32a2 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c @@ -784,6 +784,9 @@ static void esdhc_init(struct platform_device *pdev, struct sdhci_host *host) pltfm_host = sdhci_priv(host); esdhc = sdhci_pltfm_priv(pltfm_host); + val = sdhci_readl(host, ESDHC_TBCTL); + val &= ~ESDHC_TB_DIS; + 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;