From patchwork Fri Jul 7 09:08:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 9829777 Return-Path: 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 24A41602CA for ; Fri, 7 Jul 2017 09:02:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E9E028606 for ; Fri, 7 Jul 2017 09:02:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3D442860B; Fri, 7 Jul 2017 09:02:37 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 2CD6B28606 for ; Fri, 7 Jul 2017 09:02:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751997AbdGGJCf (ORCPT ); Fri, 7 Jul 2017 05:02:35 -0400 Received: from mail-db5eur01on0064.outbound.protection.outlook.com ([104.47.2.64]:44632 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751927AbdGGJCd (ORCPT ); Fri, 7 Jul 2017 05:02:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=q/U3ab8gtXVHBivJTXtQ9sk1EunItjJIpYRy2nAwF2Q=; b=Vj9jXLDaaYB5tVGG42KMDTpK/LPRYvo6AKtmGzf8uFKTfedDyehxwSNGIToK6ZB0cBkWF3J0c2VC6hh+L6bM8YTnNZ2UBXlXC93KpESJ6oMuVfmXNsR9F+5UGKV1PkPPl5fnSUF5QneEoN1m49xrOFeXL45DjPJ8c4cVm3h8Ka0= Authentication-Results: linaro.org; dkim=none (message not signed) header.d=none; linaro.org; dmarc=none action=none header.from=nxp.com; Received: from b51421-server.ap.freescale.net (192.158.241.86) by VI1PR0401MB2334.eurprd04.prod.outlook.com (2603:10a6:800:29::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.13; Fri, 7 Jul 2017 09:02:28 +0000 From: Haibo Chen To: ulf.hansson@linaro.org, shawn.lin@rock-chips.com Cc: stable@vger.kernel.org, dianders@chromium.org, linux-mmc@vger.kernel.org, haibo.chen@nxp.com Subject: [PATCH] mmc: mmc: fix switch to 1V8 for hs400es mode Date: Fri, 7 Jul 2017 17:08:55 +0800 Message-Id: <1499418535-10161-1-git-send-email-haibo.chen@nxp.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [192.158.241.86] X-ClientProxiedBy: SG2PR06CA0177.apcprd06.prod.outlook.com (2603:1096:1:1e::31) To VI1PR0401MB2334.eurprd04.prod.outlook.com (2603:10a6:800:29::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 351a065e-16b7-4050-1b7a-08d4c516e605 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:VI1PR0401MB2334; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2334; 3:2jGbS+tV6sJTSGPRg8Ca39gc7FX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SIANSWcQeYPmADjdPnay9gGeN3onJpMobNLeXBQONjmP8MTXHalNHyKjuXKvAPI7odgWSUik9xmaxYleJBJCleyGAKRezQA1M3CsxNSBWe4A8drep4/AAUFozr5UJfHS8Dko/qN9qs3q70s2jCsn5DiG3AhOLxffQoWQhdkDuTuW7ZbNEEFFkU+OTLu4WXyTQiAeWBaK6qWCe8Q/7T1Hy7pammIxooqZm/M3s2BrcIBEQFPKMSeqge6lCOT4MW7zl0FKkUMKkEw7r4ZSxmo0EtPi9xNCuV0leBThhfPyb/x54ifM4AbRgPMEw3lAn8iTCFmjK3vrvtBEhX6M= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2334; 20:M9wfDw/aYOKk3R3emhHPrsDSm2yjku+kwWtlJBAPKZ5mcX2bq0RUJtBGiPCSHRpZsoN4yx8k6t+Vc4l2Pi5AVI7zXPJKx4eurdzz6kIlebQTAmsxxgQ6MfTHWPOfCEWs5IMPPYgjhPfifx2XiKu9rpOz0g+XsaXHhGu0lCqiBuEBe7fZhr92smCro2At/gw75WO9ynZq53x7Xnx91pR9C5owS5ArA0VPzgdpgfppfrwkJ5NaE64Z8kiggkWWas83gBnCXQdMex83ZZZozpuKpXDzIObwh9Xz1kPQ+osAHxdARD2NWK0pZFnkZ6vOGzcCvvDB8X/xo7tfN7Ucug9sg9PCg3MYD1GpN4Zc979BwfoTVWPKe911koQpkF0ATymzAokssz64QWNGrtwbw2sK2VqbkqfHsruvVX2jrnXAwflU6q9hbwHzLJDz6pH/chg1ECoxYmp8F7fXJRZEK5XwYsKV9mIP//OrRaTGWwZdgETZi2C02Xj+rGWQqZO1bdG3 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(9452136761055)(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123558100)(20161123555025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR0401MB2334; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR0401MB2334; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2334; 4:qTGXU53Jy16ga2sWJpwx/4A3Esx7tHCLE970FWcc?= =?us-ascii?Q?XtVS9ZUzonvuP73lXvniJ1NiNGy110MT8GX6NPnG2rc1iqDgBogoNOW6yv8S?= =?us-ascii?Q?uiA8rEiJyOQcCLA42AW3MQGCuvzDWkHRpZLsox8jmtQys9qWpVPPfCHgHace?= =?us-ascii?Q?x4zudTxzvFRU0xZvUgXXoD8Nk/M3s8UmiWjBBgCmw5gHlE8rdex0SYfXuq7v?= =?us-ascii?Q?BXhnx3/ZYBesSNZTr/VPJBJfGdBNTCKkec+/A0hcqlsbze7tmcwXVwiEVeUJ?= =?us-ascii?Q?lV7M41IhOMUoAy4XubCgOgZlWPSw07Y7YoQJQ9W0xNN5NZdC/2hmaaEC92DU?= =?us-ascii?Q?uKiK7dplpwmUcjkDKVnOFTbgaheFErYto580eo/06tYVs+TtLIz+bhCIw5Rd?= =?us-ascii?Q?FQ34TQJs8QVpk8TWbrUhxzCx68GzSgIlCL9ts5JSY4Z7WDHU/r3QIeo1cxJn?= =?us-ascii?Q?8jxlbYSLeNqOY9FSY8eKr3phBvbCTwm/CL3Sq6JsZ9oZjlxAUt1ELkxE6aeU?= =?us-ascii?Q?JgTfYkpj2aXKjzAHCTT8LqFwafm7qc0/++82ssWRbEY6pqDs+jHb/C6TSia/?= =?us-ascii?Q?mHQujVcQZY1cClvo7KwVY6aYMPF2b8Rvqu9ZuVuE4a7OuvyFGKls14IkUv9e?= =?us-ascii?Q?9QcFRVWucHeWQAw4ArFi6eQ4hw1PmCDVdUtocupSRLJ2FQefIcPx1ymDv3uW?= =?us-ascii?Q?CtdVDMEeYQijVJ7O9kQ2qJQRQH2blDUBjIjbCveSBy+q57gepWjaVdFzBfio?= =?us-ascii?Q?P3y6gIuFEDdhJmLfCMJWA2x9OOgfkggKhdeVukYGpaHPoInxRMTgPTnF2SQl?= =?us-ascii?Q?oRAnQXVOASyqkTjRuVeXoPeempISgkmHfVbbKyeCroH/4mf9k936mzr/1IZr?= =?us-ascii?Q?rczN79GGqL1JPfLA9YFyuB3aoIDOfwt9Qek/7lmAxgb7NSDF1Wgp4+MzSacX?= =?us-ascii?Q?PETrvj/EW3g79x4zhohG4W2fwv9bdPp4H+OggLGQ8mbM9/X0jSfTtVmoxMyP?= =?us-ascii?Q?7tnnztcStxHqeskpmnflBc83VHbGo+ZwwuO7dhPNGKepL5JxfpXVCbf18duL?= =?us-ascii?Q?iuNA7R12KX+Bae04OqxiSk+J3IMmiRQxAnnKiYdfAZKIPJ7z05ujh8R19GwW?= =?us-ascii?Q?Jh80E4gvaCPvcEM8bTV+Ic/yHBhrzrtLJoJUeWKjFWuMav2x4/pgiwXxd5Se?= =?us-ascii?Q?/BaFoFr9GAfHockJYQNkkedyZNW++aoaPUaYTTsJIyRL72trFZ+kE3oyRTEX?= =?us-ascii?Q?1sEELevLd7gre2PosByLgMYifPJ/w95LqyYPKPg/VJIpNiQ2EPi+mk/sefRo?= =?us-ascii?Q?5o90X+ZPz/KASnA9IURajRg=3D?= X-Forefront-PRVS: 0361212EA8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(39410400002)(39860400002)(39400400002)(39850400002)(39840400002)(2906002)(478600001)(6512007)(66066001)(47776003)(6116002)(3846002)(50466002)(36756003)(5660300001)(42186005)(48376002)(25786009)(6666003)(8676002)(305945005)(7736002)(81166006)(50226002)(33646002)(86362001)(53936002)(50986999)(189998001)(110136004)(6506006)(5003940100001)(38730400002)(6486002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2334; H:b51421-server.ap.freescale.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2334; 23:8j/irudxkAPJljMW/nNT1T9VY8t1ri6D0wC6e4I?= =?us-ascii?Q?PQIxug+grK/l1BKTWeeSR+wyTpK4+Ad5S3QEEXuopfUB5M30/BzkRW/eedQS?= =?us-ascii?Q?gFd9EoB7EY7OldYKPknzNQ5DUTvdqtXjraB7s/bv2TfAIoQw7tJ08MecLsP8?= =?us-ascii?Q?v1v6tbTkW3KUufCN43DYZpo1Pse/WGIaiaKfsUNtp7CluA7t6jznQ8l2d2sm?= =?us-ascii?Q?mgKGCKUraN7xVkepWKWGV2x+8SrEnECK8dH0uFauQF286HJ3kyaYA1t1tdBk?= =?us-ascii?Q?437OaGS7anZrOB+d2dXlLPY9sl7rhRRWOKVfYjJNhCL4FWA4BJBuIpengHGc?= =?us-ascii?Q?0Fa+T/WyDn0obGSvjDdfhidqygPiK926IOisTq6bekgDHTcuZedsp2OLDGG9?= =?us-ascii?Q?1fQx0AQ4JDPmJUUW1UMGQc2h6W7lFipfH3hr56fTbCWozldaNSetT/iytwz0?= =?us-ascii?Q?boOMeZ9N611uXiDn9denqV1kzqCM9MDSvUHFeSEOzm+T4nU+ys8ZQwtUMEzq?= =?us-ascii?Q?mrCWkyBeZvqAEetjiEfYTQVGWZEK3ZDVMgjFx2CXc5BMLA3HG0GEKEn0uq63?= =?us-ascii?Q?dPtUTGtCIHmh+PvyVj7Sp9sDXaBYUodMMCqtOs6abkcoHINI822ZIt+Px6qE?= =?us-ascii?Q?y+wravEAKh6kiUUtZ46GtasRAHolRwzuC6+qoFZvn246aeUxgH/sljQYABZC?= =?us-ascii?Q?y0U79UZOJfYO0lSuhQwE1oLQa3nYXv8pVOQNEa/mmuL4AAkTIzHPOdAM8AcC?= =?us-ascii?Q?+2lfK4r2lLw9iRdy6/B2LuB1DSoI4Ghwp4vdDtdU+90EPkD3U/jh9kpuNZ+3?= =?us-ascii?Q?897Im9VZzP5VT9cqgN2Bex92jFaGXU9WMsm0n7gPP8kWEgjkn+E9odYcw14B?= =?us-ascii?Q?VKLdM7RLYqo/+8loQfhGdKbITb+wQGcqY5odjDKrnjrmchTrGLxE/GJi6vw6?= =?us-ascii?Q?/2cUsNsT6bKWQPGypLbFjXo8RdmGErU6LnqEPXDDBZA=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2334; 6:HJfAh4SQyT3Acin9JrrwK+TMdKwQ4YTi/xOkr0VD?= =?us-ascii?Q?uP2DoPfn90HGYYiCJvmuRztLXSHknmItdQoMp83ooOQrwAuykHJp1c/mx0lT?= =?us-ascii?Q?AS/Yegw04Rhf7eIPh3JBU654x/5Eb1DKD61CtOW3wVoecOq4eGQnuO+6LdBE?= =?us-ascii?Q?mB1JWIkq6DlMfcz0ubHs4VrpmPksLQT2Fk7Gaq5MNuIXpLbPhzy2FOcg2AWP?= =?us-ascii?Q?fq69w3PZ+IOhCkr6s8ByA8WHvHwzhEAHwiInvNWWrQP42LE0VZoYj1a/xKiW?= =?us-ascii?Q?k6Tds3mENujpyB1H7neQXuwk6h5arBs9xptQVe8vnOne9HhCivGWWNRbXs+r?= =?us-ascii?Q?Nrk04cG2Curxz2YuwWYAfY+jkVuwXb+LeqQ2Lmg2A8wgGBzYZeShlwNXhnf5?= =?us-ascii?Q?bU/+WanP204QG/SgNhBMQoPbPOe3m/SYqeduNXYRK3cxUasNFu/FrP1F14E0?= =?us-ascii?Q?+Mdd1gHKaOGhyEELgQUCrc+UGN7dToQDTJNPZkHSw0rRUle8Bu0qC5M+6six?= =?us-ascii?Q?Cy5/DPcnbafIqNpnHUN2lVSqFp/p2zVECqMSLnqry2tlB1BdYIdUvobPqHQI?= =?us-ascii?Q?TbmPCO/Zm7BWsZuw39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 24:CC8Z7/+1yWh5SbWhIwAMJ3q4skHLSpYA5zjUcPFNYLLz7LcQo5whjkvj0jPgQcNIQ0jQuq6fhFwwGV2CnpApYQriPIpnemv0lHsht2BgBbw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2334; 7:0nFOhncPYLnRnEUwHarvCMJZtzlBWBs6NV+/fY3T15JEWG3mOKXQEVlFdoiJ62/jH6N7yAoK2jRfGjXpS6egdx8KY273JzAwM6sWaJiFNlo1gFpdWrb7nKk2OGu0vj6ZwAly0BdTg5dRsXk++Ciqm4XcfOyESgizkpnjUf6Y/gdLE/bU7DBzUAZHj/s2Jvp0AvSLwKDqfReaXjb801gx+SzG+TJ1YHhw4rhADp86PO/wpJuZgM1RGK1rJbz7mWNJehdqty0q7pmLf8aJdgTbjzCXE4PI9rkT3pPLEphG+lNJCdDAM6eSpAW94XRF7Sfa+fzf9Vz0OrbQ8dHDpMtc7Ll+vgrMa4FuWD5V89yfEGLM2rcIUw64cPSq+UGYRfmnkQc/bvHhn6ujrWi5Ck1u+mc3gWNQM7CAr+v1/pEloQPfZGbovuUHRN6Ir0/sqlET7G2kjQ9jUmlINwF253CgrjRHRSON3f8mL7sA8Ygze+nzUQeicz81dEsnUAS/9rgvkthFAtQoQJglzbvZOzzkXpf6rJpC0zCFd7c+8G1Ry2qKKINLsrbk5e57WPbGrPH2EQJ6wi27NOi1nrt/2alDZDBZ4HKHsy2EgvQpDTsoC9g6qPULXXvRhBPJuoGx7EM0qs39nkStDcwhUTYAN3IgAkQKXPXJu7ROCczLwbnbKuQdJjCzIDlhZbCe0T8he0+mHGgfrRcVp2dkD9TW7rEMsFiOhG55b0wlgrdqAvQ3WVSqhHt0WCTbLkafEQYxMGxcPsf4u0WyQkTZq8SyudH7ANSA57IQTXPQ8GBIfMOmgmM= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2017 09:02:28.0597 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2334 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Change the default err value to -EINVAL, otherwise signal voltage will not change to 1V8 if card or controller only support 1V8 for HS400ES mode. Fixes: commit 1720d3545b77 ("mmc: core: switch to 1V8 or 1V2 for hs400es mode") Cc: Signed-off-by: Haibo Chen --- drivers/mmc/core/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 92c6167..336a950 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -1289,7 +1289,7 @@ int mmc_hs400_to_hs200(struct mmc_card *card) static int mmc_select_hs400es(struct mmc_card *card) { struct mmc_host *host = card->host; - int err = 0; + int err = -EINVAL; u8 val; if (!(host->caps & MMC_CAP_8_BIT_DATA)) {