Message ID | 1468309584-3591-4-git-send-email-aisheng.dong@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mmc-owner@kernel.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 6036D60868 for <patchwork-linux-mmc@patchwork.kernel.org>; Tue, 12 Jul 2016 08:27:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 511B127E63 for <patchwork-linux-mmc@patchwork.kernel.org>; Tue, 12 Jul 2016 08:27:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 458B727EED; Tue, 12 Jul 2016 08:27:15 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B627E27E63 for <patchwork-linux-mmc@patchwork.kernel.org>; Tue, 12 Jul 2016 08:27:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751559AbcGLI1N (ORCPT <rfc822;patchwork-linux-mmc@patchwork.kernel.org>); Tue, 12 Jul 2016 04:27:13 -0400 Received: from mail-co1nam03on0052.outbound.protection.outlook.com ([104.47.40.52]:1824 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750949AbcGLI1K (ORCPT <rfc822;linux-mmc@vger.kernel.org>); Tue, 12 Jul 2016 04:27:10 -0400 Received: from BLUPR0301CA0038.namprd03.prod.outlook.com (10.162.113.176) by BN1PR0301MB0770.namprd03.prod.outlook.com (10.160.78.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.534.14; Tue, 12 Jul 2016 07:54:14 +0000 Received: from BY2FFO11OLC006.protection.gbl (2a01:111:f400:7c0c::165) by BLUPR0301CA0038.outlook.office365.com (2a01:111:e400:5259::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16 via Frontend Transport; Tue, 12 Jul 2016 07:54:13 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; gmail.com; dkim=none (message not signed) header.d=none; gmail.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 BY2FFO11OLC006.mail.protection.outlook.com (10.1.14.199) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Tue, 12 Jul 2016 07:54:13 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u6C7rxta002725; Tue, 12 Jul 2016 00:54:10 -0700 From: Dong Aisheng <aisheng.dong@nxp.com> To: <linux-mmc@vger.kernel.org> CC: <ulf.hansson@linaro.org>, <chris@printf.net>, <shawnguo@kernel.org>, <adrian.hunter@intel.com>, <linux-arm-kernel@lists.infradead.org>, <aisheng.dong@nxp.com>, <haibo.chen@nxp.com>, <dongas86@gmail.com> Subject: [PATCH V2 03/15] mmc: sdhci-esdhc-imx: add esdhc specific suspend resume callback Date: Tue, 12 Jul 2016 15:46:12 +0800 Message-ID: <1468309584-3591-4-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1468309584-3591-1-git-send-email-aisheng.dong@nxp.com> References: <1468309584-3591-1-git-send-email-aisheng.dong@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131127836534360550; (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)(7916002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(50466002)(47776003)(77096005)(48376002)(19580405001)(15650500001)(586003)(19580395003)(110136002)(11100500001)(87936001)(189998001)(7846002)(85426001)(305945005)(81156014)(33646002)(4326007)(2351001)(6806005)(97736004)(229853001)(104016004)(92566002)(5003940100001)(50226002)(105606002)(2906002)(68736007)(8676002)(36756003)(50986999)(2950100001)(8936002)(81166006)(76176999)(8666005)(106466001)(356003)(86362001)(230783001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0301MB0770; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC006; 1:Oy/AMnC/xla7L8v9p8yMMVKeoQPl9b9tot46wiKIV6L5i0gHPfB7EBI0gP6iq6G4m+0iZhPzlpR/Xre0j85xxT2tr+F/a9A3uY1m3ptYYSQi6oC3WFyYonHGrpUNXMPaMtJvYpayemmyKKgV/ZyWOnwnun/iqgrIEhukYbjvSII/+vFkxxugDloVVCQFUMoX+Ew8dj5ipXVSBDQOfPa3r59ZcGQhJ64izGZCowKZ538O18SDdSs00rIXB4O6eXrQHh00zk3p0F3FCGnBlRlQeBw0ckYNQty/H1id6+IfiBNKYWV07OeJCFt2MTKTaXZe8zgI9uL5nz52YVqRgil1DP6RZ7B1Rzp+CU+8lQ7wdt1vODiL5PmABXIi71rj2IW9570/Gk3mDkEn0l0SG0890nE3NR90IuHWjuUTeMKX8umBVQQGwT1cDHdxpBLxOKlTr8IwqandUg+ko5LNRxRuFA0sL0XCz9CktBG/R5zazi88uaJaaF+mXJ3CBTUx4Qujumv6/r9D5JqsPOH9Esu4zjl0SD7hAdRKNcM2AMQGCbTJFE0iczddTxLULHh7MLbghWjZ8MTjX18pZkvIPfsLX7+o16a+AqeV/KsBJbndtTG6bzN+n9a870tpH5gMRSGXJS3bYal5cHbgZ8/UHs9JmvUstj9hlmZibpoPa4LAT/U= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 66e75323-bb2d-449f-c9e6-08d3aa29b742 X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0770; 2:S8XrRJmL8N9zaqCpaaeMGMHrnGV6dWDFFzNsQtOsmD+Ak4ktj7ZUJmxkJkxkOizSH5h8sNFivYjfvDP6o8VoF+XQ5c+N+BnuaA4JefCpZOnBNgUf36VEgkeswaUsmH9IVR0QTE9nCDal+7VzJ+xr2vpcV5rMoGalkwft05E4tr8mdERDiwK8AOxqsyrIz4FQ; 3:6BdkD0K4xl3fkzqs0/yL+19dboNwXz6nsO0LROQiTOIUALgNtxLdW62bNwBIg/QJ8JBaYlGH4VFe+Hs1cRX6vfdXxfsqw+1zpxfyzs7KwaxWq6/BbR0KjDuRz5xD+TMY0GP7gu7E7A5AHDzchIYdufIqQs3cLPJHhNeaTxJTW4q2BvYKEAxjFNmiCtHAT2Imy2wMAe9oaoPN1YbaW1u/snsl7QWYR9XWFMqhLhYsQLw=; 25:l0VbHwkdDz/FCD3pNvoLsJGzckLDw316oQU3UMkYVmMoNVWBKYVg8/t7BDA/FvBSXecPzB9aR1ooZAljF/h8b1cOSzafzRFcWuEs3+wC1FB6o4OKnezxn1w2en9bmUPnvB5HDJxekFS3LYjAq0IYrWRyrOesPlpqNIfpq1i2B0GHYTPA+QFYK6wFARKPOyVT32tiCxFRJaz7OdXiMmwCPuH4eKN2fM3O5oVFau5wiahf0pRSh/uuKCS/7y4gUUHEsN9oCUC1uD4+TxSFRwERXdUCdklxy488Jv8Dhij8oDoYHKMW18psEA1GXbTW/LSqCWOh7W6cQyAGApFDx/rFCsa7w5CsjZQqiKBE9Wz0LhUpegawPnZtcFqUtgL3TT/67DnLOkiCLSuHr966GcWdgqmRgLPZvpEJpr9zXfECQlU= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR0301MB0770; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0770; 31:7iWP845esLz19ZKONU3llqotwle0WbVGo4INCmZNZESO4o1692/z1d8LW8s9Aks1PociKnbxKpiMDU7KNUixgD+BNOfL0c+/akY8v5/PizMr924gU/zCzSJ1lmVYr2Zc5UoHZJzyS6WNWUUDIpu7sKPdE44ctlr+LXEQCVjbhZgBejEq5XIdVZzDyeWK2J0jb43D4rlzheO/k0Sdhxcx4A==; 4:XtHLMp8WsUo7ms8sXXi/6twycMrJ88gq0aZWSWO47TmIlD06b4ciLGe/hLP+Q5HTSO0ZNAUV9jdEjHL8AV/lXm9bwvvEIfyuQovlY4P12MK3vcBqsdaJP1DcT6XFw19AfhwcNp0n35nggBZEyx9tiWiFv3uAFQObfs/+et5ePFqV3rwsjZn9VEQdG0zU1AXgBosQ0EphiZY6MogboPf2L4ZV8wkWCDRGtazVMlzlRHDJktc6UyhpnUhKmznd2CWQJqQKxmi9vOEVpBzeR4Dsxvj/gCN1V4h/9kVMvczmndgEzja+Q+qdFFPRRbbvGNsgV3qCfHeq4SeVkj6JBv6uB9u3h73zaJu/IvfjSVWjnlpDl5/0EK8toVnKGHIns7wmLtHobgcH4ECyLqTDRJAepY/BhnJ90CBB+BdLIPnPhMzLYjdScZyEbhqntlR3D7m38xry15NsqchfE4Y33snW/YZlBlFzCIb6pHSswmgoL3NavKh87EIxDv6JHVu+GJq7t68td3CeK8/6L4/Rir9qvEaVmoU+maBLP2qrmbF6kaLoM/YEnbHSMOk8PNRvY1IB X-Microsoft-Antispam-PRVS: <BN1PR0301MB0770BCDC8F44DAE9C05F87D980300@BN1PR0301MB0770.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13017025)(5005006)(8121501046)(13018025)(13023025)(13015025)(13024025)(3002001)(10201501046)(6055026); SRVR:BN1PR0301MB0770; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR0301MB0770; X-Forefront-PRVS: 0001227049 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR0301MB0770; 23:S6MdOJM7PzSuvhE0l8VwL3/vr5KBZYGE6HaB84X?= =?us-ascii?Q?Mo3aeytNnoXIJqonptGd1pIy0cpY2+AYVbekRvsDOFYtflh+TRHIKEKJASd1?= =?us-ascii?Q?kJOxc+6VJmeLVcJeQ2345HanwSXUp9bakuMbHOh4Q2xd7/p/G+evxsHoMEdS?= =?us-ascii?Q?H41FawaMQmBvTr2Y1qBvr20J+CU/tD2mHSmugyqdwH7BpX5aS18SgG6K+S0n?= =?us-ascii?Q?tTbskCcSklLZrgBSYgigCb8v6N4ylvmR9LSrpojVZavcPab0EaU2geg1x4sH?= =?us-ascii?Q?5qmisSILVoneTmryil5ZlENIoBeirmGVlduIkE486fl6xFkAGHw39WU6Hary?= =?us-ascii?Q?Kt1g1c1dEKChxtcg4EjCj5S6Mz8qwvLvwwM0wR5veqPsgtFE7DjpqkPUWkDy?= =?us-ascii?Q?IFnKTJFIp6BdjfkZJIEDbKLuxk+22zKPqlQHN/DkbYLFeDLOyQZZ6gv2jti8?= =?us-ascii?Q?w1pOGW5UrLc4eG0ONJ6B9P8FGlvxxqDRRkZNfI79jbTXCRvqZz8zDKgrEv2i?= =?us-ascii?Q?QKWTO5zHGTVKgQgXQTMMxmaNckNztFHE33HswEluG7wuU4sTnrjZ1rcIdp6c?= =?us-ascii?Q?FfARqD8wNtSa6NbolerogYqmbKb45ndwrQ6lfvnIkR0Q/cyt/Cp9JhAakDBz?= =?us-ascii?Q?+XCd1iAFY/Cyb5lt3TN4WCXzO/t8lC32fkpN8VLamj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TrdFBqUAKjOhMHfcYudBZsaCBfaAdsrkhWchjWl2lwHw1a/g8ei1Sf+dfrmX/upmy3V/bOUCdcWjMeNsQGK4LoYXRjeG3Bk5KAXhyA3SYk/NApZkHM=; 24:p/a0YvpBWzvLlG/IK8DKueDlGe4r47Zkrkl/KoucLKmTjrr0XbHh8ywgzRguY6hFyZcq9ptlOLD9crii8NGM6KH0FS7b17O7K5Nbb/RnJ/8=; 7:kTYgNAqsztvw+W/ttTtJqalscqmM4E54bsck/X+w6QWW/7dlOPtjXBt75jEJ3wCFU5NXgDzTzKvVLqDmrHZCgOSiGPDl7LJ5M+o2E/TyqXzALjKtCR7/+aOkrHPn24c16GcAr+FH7f2nyKSY58f6aWkeKZC3/qABFjEnUgr4Du4MJ/W2CZvy9kgGxGPlNWPxQjK3j5BtVgoKY+NKgl/9aFKMxS/TeS3T70oFrjAtd/moIgyNd5Vp6rXasqBmO5xQ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2016 07:54:13.2332 (UTC) 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: BN1PR0301MB0770 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-mmc.vger.kernel.org> X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index c005b4114fd4..f94c1efff830 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -1254,6 +1254,16 @@ static int sdhci_esdhc_imx_remove(struct platform_device *pdev) } #ifdef CONFIG_PM +static int sdhci_esdhc_suspend(struct device *dev) +{ + return sdhci_pltfm_suspend(dev); +} + +static int sdhci_esdhc_resume(struct device *dev) +{ + return sdhci_pltfm_resume(dev); +} + static int sdhci_esdhc_runtime_suspend(struct device *dev) { struct sdhci_host *host = dev_get_drvdata(dev); @@ -1289,7 +1299,7 @@ static int sdhci_esdhc_runtime_resume(struct device *dev) #endif static const struct dev_pm_ops sdhci_esdhc_pmops = { - SET_SYSTEM_SLEEP_PM_OPS(sdhci_pltfm_suspend, sdhci_pltfm_resume) + SET_SYSTEM_SLEEP_PM_OPS(sdhci_esdhc_suspend, sdhci_esdhc_resume) SET_RUNTIME_PM_OPS(sdhci_esdhc_runtime_suspend, sdhci_esdhc_runtime_resume, NULL) };