Received: by 10.223.185.116 with SMTP id b49csp718941wrg; Wed, 21 Feb 2018 05:55:46 -0800 (PST) X-Google-Smtp-Source: AH8x225lKkftM7bfHbp9JoBcvpeOy3VeV24mTvdABmBTLbsdRstd0loMCSaIFtBagqo7tploNj30 X-Received: by 10.101.76.143 with SMTP id m15mr2847292pgt.445.1519221345903; Wed, 21 Feb 2018 05:55:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519221345; cv=none; d=google.com; s=arc-20160816; b=OCeIoqY1nmBQ54L7JrR4ysjXFcWUXC6r8pFID8XaLdaA9JLMJyvhbvaP0LyCrbwODr v5GyLfgLJngnZYiPOsEiR6TZCbd41URSFBRwX5DNAOBJUTEmcQqtETTgVGQrCW1V3lou iRu2+fh5MFxIyBEXQ+Gm0XS7u1ii0Cm9tmylPWGvnomah57c18Ryv1TiWk0XBnE1n90P u9GzXso6mSnVtFsy5hv0aq4cXL4PSbwBHKa0zfASb42pW8X+7l62i4fRYD0nz9IxP1Fx bKtkMfddn3nzdBmZiLso19pYBudfL50OzcC/9riyTiFCNYR2xRVOKok8GTgrGXLFpXiz gn+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=E1Eww8a1R/dyKhHIm6Eby4DQFf+volLNkgHYJD1SUb0=; b=zfChrhwuLbT2bbTQlyydoPDIdse1n4yxcmvryQlZOoHNCcUslWzbqkJfwR7qCA4EDz 9xpD+QvS6X/dGAvDrZCaSQWiGYNCNLF5gtRfG4Ox57RzNRNcQDH3QohBsw4NhoU6IbmN ElGi36WfToBxXWo/R3R4cb3nRr5iwStoboSjSQzvRETvnH0iXc2GsqbSl5YLXPcIW9KY V37EAvVyn/f1JCp8TjOPi1MMBH3/EkOKKKzbcxPSWvjHl7hWhHkORHWG6cPPLwJ0uVAd OOIVVoliVjwG3AyAYqrncQ/fpf4e4eW6aoLpsP0MeM8xWraIK9Ie4Yw4KR0avF31Ty6L TM2Q== 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 y125si1224721pgb.120.2018.02.21.05.55.31; Wed, 21 Feb 2018 05:55:45 -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 S964939AbeBUNmo (ORCPT + 99 others); Wed, 21 Feb 2018 08:42:44 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:57664 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937100AbeBUNmm (ORCPT ); Wed, 21 Feb 2018 08:42:42 -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 334BB1011; Wed, 21 Feb 2018 13:42:42 +0000 (UTC) Date: Wed, 21 Feb 2018 14:42:44 +0100 From: Greg Kroah-Hartman To: Naresh Kamboju Cc: linux-kernel@vger.kernel.org, linux- stable , "yinbo.zhu" , Yangbo Lu , Adrian Hunter , Ulf Hansson , Rasmus Villemoes , Arnd Bergmann Subject: Re: [PATCH 4.9 77/77] mmc: sdhci-of-esdhc: fix the mmc error after sleep on ls1046ardb Message-ID: <20180221134244.GA22041@kroah.com> References: <20180221124432.172390020@linuxfoundation.org> <20180221124435.417056678@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 21, 2018 at 06:51:07PM +0530, Naresh Kamboju wrote: > On 21 February 2018 at 18:19, Greg Kroah-Hartman > wrote: > > 4.9-stable review patch. If anyone has any objections, please let me know. > > > > ------------------ > > > > From: yinbo.zhu > > > > commit f2bc600008bd6f7f5d0b6b56238d14f95cd454d2 upstream. > > > > When system wakes up from sleep on ls1046ardb, the SD operation fails > > with mmc error messages since ESDHC_TB_EN bit couldn't be cleaned by > > eSDHC_SYSCTL[RSTA]. It's proper to clean this bit in esdhc_reset() > > rather than in probe. > > > > Signed-off-by: yinbo.zhu > > Acked-by: Yangbo Lu > > 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 | 12 ++++++++---- > > 1 file changed, 8 insertions(+), 4 deletions(-) > > > > --- a/drivers/mmc/host/sdhci-of-esdhc.c > > +++ b/drivers/mmc/host/sdhci-of-esdhc.c > > @@ -489,10 +489,18 @@ static void esdhc_pltfm_set_bus_width(st > > > > static void esdhc_reset(struct sdhci_host *host, u8 mask) > > { > > + u32 val; > > + > > sdhci_reset(host, mask); > > > > sdhci_writel(host, host->ier, SDHCI_INT_ENABLE); > > sdhci_writel(host, host->ier, SDHCI_SIGNAL_ENABLE); > > + > > + if (mask & SDHCI_RESET_ALL) { > > + val = sdhci_readl(host, ESDHC_TBCTL); > > + val &= ~ESDHC_TB_EN; > > + sdhci_writel(host, val, ESDHC_TBCTL); > > + } > > } > > > > #ifdef CONFIG_PM_SLEEP > > @@ -584,10 +592,6 @@ 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; > > > > > > Found build failure on 4.9 > Please take a look > > CC net/sunrpc/svcauth.o > drivers/mmc/host/sdhci-of-esdhc.c: In function 'esdhc_reset': > drivers/mmc/host/sdhci-of-esdhc.c:500:27: error: 'ESDHC_TBCTL' > undeclared (first use in this function) > val = sdhci_readl(host, ESDHC_TBCTL); > ^~~~~~~~~~~ > drivers/mmc/host/sdhci-of-esdhc.c:500:27: note: each undeclared > identifier is reported only once for each function it appears in > drivers/mmc/host/sdhci-of-esdhc.c:501:11: error: 'ESDHC_TB_EN' > undeclared (first use in this function) > val &= ~ESDHC_TB_EN; > ^~~~~~~~~~~ > scripts/Makefile.build:293: recipe for target > 'drivers/mmc/host/sdhci-of-esdhc.o' failed > make[5]: *** [drivers/mmc/host/sdhci-of-esdhc.o] Error 1 > make[5]: *** Waiting for unfinished jobs.... > CC net/sunrpc/svcauth_unix.o > CC drivers/pci/host-bridge.o > CC net/sunrpc/addr.o > CC net/compat.o > CC drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.o > scripts/Makefile.build:544: recipe for target 'drivers/mmc/host' failed > make[4]: *** [drivers/mmc/host] Error 2 > scripts/Makefile.build:544: recipe for target 'drivers/mmc' failed > make[3]: *** [drivers/mmc] Error 2 > make[3]: *** Waiting for unfinished jobs.... Ugh, you are right, I wonder how this passed my build tests... Anyway, this and the next mmc patch are now dropped from the 4.9.y tree, thanks. greg k-h