Message ID | 1460741387-23815-6-git-send-email-aisheng.dong@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mmc-owner@kernel.org> X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E88AE9F3A0 for <patchwork-linux-mmc@patchwork.kernel.org>; Fri, 15 Apr 2016 17:52:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1949520218 for <patchwork-linux-mmc@patchwork.kernel.org>; Fri, 15 Apr 2016 17:52:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0AB2C20211 for <patchwork-linux-mmc@patchwork.kernel.org>; Fri, 15 Apr 2016 17:52:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750783AbcDORwM (ORCPT <rfc822;patchwork-linux-mmc@patchwork.kernel.org>); Fri, 15 Apr 2016 13:52:12 -0400 Received: from mail-bl2on0078.outbound.protection.outlook.com ([65.55.169.78]:51993 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750709AbcDORwL (ORCPT <rfc822;linux-mmc@vger.kernel.org>); Fri, 15 Apr 2016 13:52:11 -0400 Received: from BLUPR0301CA0027.namprd03.prod.outlook.com (10.162.113.165) by DM2PR0301MB0717.namprd03.prod.outlook.com (10.160.97.13) with Microsoft SMTP Server (TLS) id 15.1.466.19; Fri, 15 Apr 2016 17:37:22 +0000 Received: from BN1BFFO11FD053.protection.gbl (2a01:111:f400:7c10::1:117) by BLUPR0301CA0027.outlook.office365.com (2a01:111:e400:5259::37) with Microsoft SMTP Server (TLS) id 15.1.466.19 via Frontend Transport; Fri, 15 Apr 2016 17:37:21 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; gmail.com; dkim=none (message not signed) header.d=none; gmail.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD053.mail.protection.outlook.com (10.58.145.8) with Microsoft SMTP Server (TLS) id 15.1.453.6 via Frontend Transport; Fri, 15 Apr 2016 17:37:21 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u3FHb2HG019919; Fri, 15 Apr 2016 10:37:18 -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 05/23] mmc: core: mmc_regulator_set_vqmmc not return error if vqmmc/vmmc not exist Date: Sat, 16 Apr 2016 01:29:29 +0800 Message-ID: <1460741387-23815-6-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1460741387-23815-1-git-send-email-aisheng.dong@nxp.com> References: <1460741387-23815-1-git-send-email-aisheng.dong@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131052154421369606; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(36756003)(104016004)(5008740100001)(6806005)(81166005)(189998001)(5003940100001)(4326007)(19580405001)(19580395003)(1096002)(1220700001)(110136002)(50986999)(76176999)(105606002)(2351001)(229853001)(87936001)(85426001)(11100500001)(106466001)(50466002)(2906002)(48376002)(86362001)(2950100001)(92566002)(77096005)(50226001)(47776003)(33646002)(586003)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB0717; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD053; 1:HlTgkqKUqjTwpuMeBMHleKpx6e5NYSexaDj6rrWNiqTudvFespllg+qJWP2/2fa4opjhGkD7Fpb+OUWfqJyIiQGZytvUixuu9X4jdOzEgVUy5mwL5JdEzJggu7BSgki3SlAv3YC9qj2X7J+V+D1pjBLBC2P6avMedo+XvvUGX7HJWfZYBo6JFDVSxzkqXp1VwECNqdZc22vtc3+gE3HywCAwecvigwEjJsDopPvomgoSKsf6R9bKDCS1kEQywwdj1Ut4h0JbsGCO37cxqdXgyCEq10BMRbzVVeMq6E/28fd1dwv4xQOWP4/rx8iV55XAPPbtPTLpkEqyp573M7PSilXJpS1aL4rznwEn08g8lLSc+mBRS6tZM5zlk4zuLstrCbygcTg0WtrwDuGoE8OUWyzvrsICmROTP0qe4qQ0JdD8nGDg2hCX4cC5XRNilK3Y+lhhCleDzk9ZMHAk/mjg10h+4n4AY+XUkboORcxhht4enRlRI0SNjc4l8PvudkUpupl1/92hkhhD99m1b5Cnx3JXLypl4Py+H+mNk28eAO9ql3ejcDtHrjindSlFieYy9/qatrylh20HvwbepcK0tuEe3luAPWnOGHrSAEBPBdTYCAQJpJ2AI/FTTpEgeMuR MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 4b6244e1-70c5-4052-79a9-08d3655499ca X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0717; 2:kKEDOb7HBWp1SWZL6JwIGC73UWf/v8XPmi1z0AuHRoqATlEduDatlo+P9XSmdMe7hgoY4hXFCLbyhKCb/CtVwx2WQSvhMRXqDnk67469Cmd+o7HDgdDQRqOMPi/72kSu41RvEP3qIA/BWfku7X4zL3YNjCnIiGHcgVTNTbVXgS/+cbwgvU9CcdzOeNRI3Vi7; 3:hTF83oAe+sVLklXZgXUJnljnqgVyl3Em9wh8ehz5n60k5z3AdyDARApUIdiRCUqhVbBrSMRWKYo4kbWsiCgUYyN1UhXAOicbXU04FOwywwT6QAdQqRVkLC0GTc7SRiOgIuRgkaoigBTJB4xPCEVMg2Arb9J4oeY3+70n8B6IhLUPpx5h61LQrXj/XL2+IUuOARzW6Tinwy7Q9ZBwwbb0gGmmz1Drt1VqBdUFq3AoKe0=; 25:kRXzELOMt191NbO6sI3tFkc32DjXeHvWXsJrdjaCZUslI6nlcP+9e/PVmh5Q6vADW2u2RoUFpVXpJzyhHBRw8bcdY/K1inzmhZjHcif4igLE2PtRtH0IN0oA7lwwuZfUyi/j0nq3KYms3rnab6UJAlKsyFhUzrZh3887iyq30XGzxJ2UiW6Kkj1oTK+g/c6zWYeEchYEUQE3fAjF1Qv7LR0+XTAFEZN5a/1zX9UCuM3oEX5fIJ4M88jVA6UQy8l4dUZrn5IwfB7uVIixDyYAH9/He+nZ8WCc90hpScWIj2ob1JbmT9OpcZOR77t1DAxGn5+OMcXkJWOtOzSktGtuHg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0717; X-Microsoft-Antispam-PRVS: <DM2PR0301MB0717FCDAFB10C34AB7DAB3F380680@DM2PR0301MB0717.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13023025)(13024025)(13017025)(13015025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:DM2PR0301MB0717; BCL:0; PCL:0; RULEID:(400006); SRVR:DM2PR0301MB0717; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0717; 4:5vFvrrkdVqNxkKpbntlHrheLKRZm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Q3sy7h0+KAx9AJneYyC0dzDYEccoXpI735wAXSsP58UuLzOUZH/YRzq5M4rT3flno/9+PJNl+3wSU=; 7:sBjLqbJWrrrLtCluWCR9tQdhuFGvz3i9K/BQijJBMwNvvTPaNSBzqk1VLgqErag319jhBkITForwoyGxhn73TSejlGfnxfHwETD8IOFAuQPyUmhOjFidUQNsg1AEsIponsXeLrVr/OsBPEXwF8mdvWmOGua1Gjj8zDn/Q4AdYcPX4S931PTFItcE2HDqpey3OEA5JxH4aa4+zOBU1jo3y1g/HFNzspf8FdoFsF/vjGI= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2016 17:37:21.9029 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB0717 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-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 99275e4..52bfaf0 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1440,7 +1440,7 @@ int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios) /* If no vqmmc supply then we can't change the voltage */ if (IS_ERR(mmc->supply.vqmmc)) - return -EINVAL; + return 0; switch (ios->signal_voltage) { case MMC_SIGNAL_VOLTAGE_120:
Treat vqmmc/vmmc regulator the same way as mmc_regulator_get_supply() in mmc_regulator_set_vqmmc(), since they're optional, do not return an error if not exist. Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> --- drivers/mmc/core/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)