Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2131290yba; Wed, 3 Apr 2019 01:50:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLE215bjV7/K9J9jLT+MbAxyFxNeHkeGHVL6SjHLIjjMdUxF0t70uLUP61LVuRRQoNMGTC X-Received: by 2002:a63:e14e:: with SMTP id h14mr70205296pgk.184.1554281416998; Wed, 03 Apr 2019 01:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554281416; cv=none; d=google.com; s=arc-20160816; b=oQj/z4g6WPP8Z/QDR6eKHq1Q/NW76bHqYdNKaVIJZf0J3zMVVfvnrOiU3NtWDHjh9Y 5eIvoco/Pou5x+8chUT+/2BTVupgmWdAcr4V+FWc8VPVu8QxdQFckEiaMatHEVzNPoIU eCNDaIsWrdrk62wl39XGsKPRbnbWlcZ4bfgptkvY7ba6qJ1LvbLXrFIenV0pZEuE4JKn OIFXYBEtmj4KRy1FRCtZlsMJ+kuOGbVhNKo4perdB4b6nQqUV/Wv9bzAs/St+JKyjndh bKBa5HafRHwTmBeEnnmx/Z1c/wlNjgVIx2dxT8Vc3YqmtH8Zss5NF1Hat4PXO/cbhwCw DT5A== 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:dkim-signature; bh=lI8CZHlJwwNjKjJV8h8Paz9JeF+xKmqhh6HvJtEFESI=; b=OXFVisHrVo5JdOhndSTDyTJicsK4q6L65RAdWLSuGZUnZPiKvJ6xXOwTAxOHYhStbm Xvywme0kd3OdTRDHzVqBpsqW9QC8ni3U9EiHCS8vvWtpkCI+vG8xrPca72621dwQ00IW vF4d6VKlDr9gVwwng53J6FEDpb8yUpz5taNjLFe/9HhWR+OIZlQWPdOIVAmHV3E6/i7U wXr+OULCW+j6XNESU+cJuIka6jPDqMD2j6/PYpvgmRcZ/Er8DaMqDMhpLPERr1DFCyFR TM1VWwyoQSdv7XKJo/Mv2BhK03oPecQfJrXZz2x7kSzHTNGCwg3B8D9LQK/M9PVe0D3Q RI4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="lFH1d6N/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3si2554568plp.260.2019.04.03.01.50.02; Wed, 03 Apr 2019 01:50:16 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="lFH1d6N/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729051AbfDCIt0 (ORCPT + 99 others); Wed, 3 Apr 2019 04:49:26 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43112 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725822AbfDCIt0 (ORCPT ); Wed, 3 Apr 2019 04:49:26 -0400 Received: by mail-wr1-f65.google.com with SMTP id k17so20154341wrx.10; Wed, 03 Apr 2019 01:49:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=lI8CZHlJwwNjKjJV8h8Paz9JeF+xKmqhh6HvJtEFESI=; b=lFH1d6N/ffRTt1ZzUTh43q/D+ivWxHenZX9otUgk7hl1cK+R+r49+kLtmirDxypim8 bdDAhwv0Y7cIH6I9+mjiLz9mBDuOra82K5qF670dOrtxiIDnn6mlNQ2pc8IRF1gXU9pI ooIvBMHIHZthpfTZqpjcLP/RTt9KslUIW7KxJJKwBcuXxt3gS23Ph/llsIe7oIhEk0l/ jnR8q8GkB7W6wvYzCv4Ex59nB6eYEGDhzBqIBPDigqJSJhc+gnLoIox6/inBhpOieUku 7pEF/NKchHWQihOB4Kt/mdqsiZSBdLTJIuYeXrW0T7pE1ak/z5y+SeqciS7CWHw1IrD0 kt+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=lI8CZHlJwwNjKjJV8h8Paz9JeF+xKmqhh6HvJtEFESI=; b=t1xH4/Yv9e46S6A2fpid1kecVB16AT5Db7OapGOrjBGtJw1rsbval6ZHku5uEme7xS Kpty+XUb5FTntpyBNgK9e6qiNPqbBo1dZ8v0+Rf33xcJAE5xCa+arupGuJFRXs6UqAeM Zw7/SVp52AJwvHm/FsOzEvj/0RSd8L3A7cBPFu6gJ+MnnfSLEb3+nF7nCyObdQpWfuZs MUV5B6HOw1n9AcXORYhEWOHcY8UYHCOdsgqI+61rHJt4kQZDclzpT8WVx0av9BLtGE9l 4m7dzxJXE2VdxfGsOqC4kHk+WHYB2y4awBZKqtqOZhIUlrmSbWj29rWwfHhJKfbZxCc2 vusQ== X-Gm-Message-State: APjAAAVpQtfTok41v9zWsc5FME4P3SawW68ghhFw35JWhk42Oya0BXUC 0Oum4+y18sHYXHQgYhs98ZA= X-Received: by 2002:adf:eb0b:: with SMTP id s11mr25430736wrn.140.1554281364263; Wed, 03 Apr 2019 01:49:24 -0700 (PDT) Received: from localhost (pD9E51B25.dip0.t-ipconnect.de. [217.229.27.37]) by smtp.gmail.com with ESMTPSA id x5sm24248672wmi.37.2019.04.03.01.49.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Apr 2019 01:49:23 -0700 (PDT) Date: Wed, 3 Apr 2019 10:49:22 +0200 From: Thierry Reding To: Sowjanya Komatineni Cc: adrian.hunter@intel.com, ulf.hansson@linaro.org, jonathanh@nvidia.com, anrao@nvidia.com, talho@nvidia.com, bbiswas@nvidia.com, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Subject: Re: [PATCH V2] mmc: tegra: add sdhci tegra suspend and resume Message-ID: <20190403084922.GE5238@ulmo> References: <1554226641-22612-1-git-send-email-skomatineni@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uCPdOCrL+PnN2Vxy" Content-Disposition: inline In-Reply-To: <1554226641-22612-1-git-send-email-skomatineni@nvidia.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --uCPdOCrL+PnN2Vxy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 02, 2019 at 10:37:21AM -0700, Sowjanya Komatineni wrote: > This patch adds suspend and resume PM ops for tegra SDHCI. >=20 > Signed-off-by: Sowjanya Komatineni > --- > drivers/mmc/host/sdhci-tegra.c | 56 ++++++++++++++++++++++++++++++++++++= +++++- > 1 file changed, 55 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegr= a.c > index eafaaefab4a6..6c91926a012c 100644 > --- a/drivers/mmc/host/sdhci-tegra.c > +++ b/drivers/mmc/host/sdhci-tegra.c > @@ -1611,11 +1611,65 @@ static int sdhci_tegra_remove(struct platform_dev= ice *pdev) > return 0; > } > =20 > +#ifdef CONFIG_PM_SLEEP > +static int sdhci_tegra_suspend(struct device *dev) > +{ > + struct sdhci_host *host =3D dev_get_drvdata(dev); > + struct sdhci_pltfm_host *pltfm_host =3D sdhci_priv(host); > + int ret; > + > + if (host->mmc->caps2 & MMC_CAP2_CQE) { > + ret =3D cqhci_suspend(host->mmc); > + if (ret) > + return ret; > + } > + > + ret =3D sdhci_suspend_host(host); > + if (ret) > + return ret; I didn't spot this earlier, but I think we'd need cqhci_resume() here in case of failure. With that fixed: Acked-by: Thierry Reding --uCPdOCrL+PnN2Vxy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlykc5IACgkQ3SOs138+ s6EszQ//TkWf17Qu1wTq8l/vUCpn4kks/qsOMfrv83+b38TJwqGCem6T1Q8fEqj5 WiDAd29Vqv8UFvmHLqsGG+wgik9wgJn5kWXvwgachk0eN5nvx7F3NqyB9f+pCng9 ODq3JE5k01716y3t7iIBpXiYrENk9qdwZYlKYtCFY7cQxGvJJeHyXXwRj4tuM39f qyOU2EU+zkf+rjhSLKdJNwKz4MIJ63NAdwz6q4TKgf/aip8RWa2FNtxcpXNVyAcq Y8UubY2PWt/wqm9RF+B7G800W6wrsXUH6anDm2bs9hX2KHfgTyblQVarwV5s+1X8 X9eAIV8rk5BuznqLd2QD+5grOPa8lhmZd76vJDUIvrU2gIJl0eVB40CY/j1olgdU fIpAC4Py1TNF4qMXbvKJoJXY9fxOUuFeMHwDOjeRqTA6ZzTAao8wXPPWf+I1v+LH Z/cgkGR2Cuu55TP5cWMzwaOMaAlOitke2pCqBbbRVmwIEvh/gmhtWSsPHSqZHnH2 9ac6O+VZ4Spz6BqXBCc7Mn94jBB1As/GvgZG7t5Qxxf4HdzXDmkI+so8dlW7JUZn lKgOJi/iGwVO2k+P/IFfDSo/kVTRY1kYDxX2kfB0tTe0Z1bDqj4kbgaNN8KsbyyQ YGS9VWA0TGVArpM9o5J21P6NjCXFJ5SHfsJaoC8u/vbR4SGpecQ= =J/FS -----END PGP SIGNATURE----- --uCPdOCrL+PnN2Vxy--