Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp326608img; Tue, 26 Feb 2019 00:21:05 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib0aLFm7HR8ZpbxMZI1JcKwjGa38lYqTtoSOjPDMycZYYcE0eR9BfNjkIuHxT6dFEkfhqd8 X-Received: by 2002:a62:a504:: with SMTP id v4mr25288435pfm.22.1551169265636; Tue, 26 Feb 2019 00:21:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551169265; cv=none; d=google.com; s=arc-20160816; b=NatukwmgQ/mHboGt7MxkN4JVKcSAEl6wREvBmIxdO+0c8Hkd9jZb22n4ufKnx0m22S URnMTaXeqclPlwbRzX2jyR2PW7h8Q1wYJtbpxcMXc0aggVx5LP38hx0iBknQfSaVQyu5 hTBLYiLXVIHLU171aB9dgjUMAAzQfjFfDebk/MMMdoCWnc+MPbXMHIalovuVLakEcuGj zMbkcMzfQbL98lqU3B/17TKd2chUpi0qt+3qWqw55tAJTq+Ttv2cnOETjE231+avYseH TFVIg2opTvjUzxcet90YLuTRth5oSqGlG1/+UhqmnFJhqIYB2LIC9IosfhWHMBHZ46F9 6FEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rpQJJvJhMEcukqYqLZ4ss2G6uwgx5UKMxTfBDTBRky8=; b=o62/9w9zM2Pbtn43LeLh0YH6cHDQJKcciYByqTIThykZPjGfLK+6DWcgM7WUNUU5Ca lgezJh9SKcX3lTk55o3fueWnk8VhS13qK24Vew9+DkWLWduLR7zr8yMJtujavYL+v08+ XtdGITJfKJ7TswdMOpUDWf134PKXYCrx+hsgdnkNxn45H75fZN6TOybVx77PmM5ibP7G tLTK1IwZYoWEeH/pGuldCIKowVNIc3DESBiZjFYk93eMDfn9p+kiryYO8FUIXeoOsyo9 dlMSCNKyxflwheLKhBFfS03GufqnXaIItBP8PpsrSk42vhAuINeJ8lMrPBKO6nb5vSg4 Swqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r1QwKEFx; 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 j6si11675481plt.179.2019.02.26.00.20.51; Tue, 26 Feb 2019 00:21:05 -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; dkim=pass header.i=@linaro.org header.s=google header.b=r1QwKEFx; 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 S1727291AbfBZIS4 (ORCPT + 99 others); Tue, 26 Feb 2019 03:18:56 -0500 Received: from mail-ua1-f67.google.com ([209.85.222.67]:43051 "EHLO mail-ua1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725977AbfBZISy (ORCPT ); Tue, 26 Feb 2019 03:18:54 -0500 Received: by mail-ua1-f67.google.com with SMTP id g1so189812uae.10 for ; Tue, 26 Feb 2019 00:18:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rpQJJvJhMEcukqYqLZ4ss2G6uwgx5UKMxTfBDTBRky8=; b=r1QwKEFxFlB9R/xD8FQjRicovSpncKn4df5RdZeMjV8BLKrmFuhqjTnjl43eDv3bky +V/UyyhG6HBNcAxVR6rYfUEKHkGI+e3HrQsLCSVhhjjy16dNvbDmT+um3ZU4hKXld3Dz sv13Y+zUp9X/1YOnNhDuqblnoIpXQB0ieHk23eI3PM2xlhqp9RcjKe8RKGOStvbbIJfQ SU07Zf3NDE9f1lXajemhf0k8OnfYdLYZ95Fy53Q20XDJBAqiYwvsQgxDePOLiwmRA9/l F9Hk6zMvTvd5La8T6hw4aUwQ/Z8na5PFtMN+6wIMWu3BKNbiuut8vdkW9BPR6a9E/N2+ nPww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rpQJJvJhMEcukqYqLZ4ss2G6uwgx5UKMxTfBDTBRky8=; b=Kyx9S40ht3fhALoMWXASvjnH+B8N+jdnyz1WO7s0t5EmF3cgN2eUwVtFkpTlA05g7X vHOpLvolI6lpzIPP8TzJcB+bNcFfJg6OS9Sj8DxlKJyjtBj6PoOHa9rH8RvItqoRP7C4 rBeRlDIm6D8aGs3azHz2ffonlt8bQlkn2fbQnIivpWMZjsKWJUlPfxeAcqdimzqH3fy+ vL69yAHq4+2oKaiUqccg6IooTt6APs1hMT8U1XLTFyY9CENgMNOtUYKi3CEcXZaydiX1 pHYyBF8/gN5TBVL7lc8YTmAyAwxNKBS0416b20QgTq7JZvE+F6REVrO+Afcf/0NuEZyX mJoA== X-Gm-Message-State: AHQUAua/4I2yYyymWoBkqVP5e4j1+RPzUVMo9CkWhlxvLPJnOamLuvSe 6fVatVImKm2XNW6I7cblDWwXuwtPlDMp6z0gH+fgYA== X-Received: by 2002:ab0:3484:: with SMTP id c4mr11323250uar.39.1551169133226; Tue, 26 Feb 2019 00:18:53 -0800 (PST) MIME-Version: 1.0 References: <1550210375-32270-1-git-send-email-chaotian.jing@mediatek.com> <1550210375-32270-2-git-send-email-chaotian.jing@mediatek.com> In-Reply-To: <1550210375-32270-2-git-send-email-chaotian.jing@mediatek.com> From: Ulf Hansson Date: Tue, 26 Feb 2019 09:18:16 +0100 Message-ID: Subject: Re: [PATCH v2 1/2] mmc: core: do not retry CMD6 in __mmc_switch() To: Chaotian Jing Cc: Matthias Brugger , Shawn Lin , Simon Horman , Avri Altman , Kyle Roeschley , Hongjie Fang , Adrian Hunter , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , Linux ARM , linux-mediatek@lists.infradead.org, srv_heupstream Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 15 Feb 2019 at 06:59, Chaotian Jing wrote: > > the response type of CMD6 is R1B, when the first CMD6 gets response > CRC error, do retry may get timeout error due to card may still in > busy state, which cause this retry make no sense. > > Signed-off-by: Chaotian Jing Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/core/mmc_ops.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c > index 9054329..c5208fb 100644 > --- a/drivers/mmc/core/mmc_ops.c > +++ b/drivers/mmc/core/mmc_ops.c > @@ -562,7 +562,7 @@ int __mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value, > if (index == EXT_CSD_SANITIZE_START) > cmd.sanitize_busy = true; > > - err = mmc_wait_for_cmd(host, &cmd, MMC_CMD_RETRIES); > + err = mmc_wait_for_cmd(host, &cmd, 0); > if (err) > goto out; > > -- > 1.8.1.1.dirty >