Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp805762imj; Fri, 15 Feb 2019 07:08:37 -0800 (PST) X-Google-Smtp-Source: AHgI3IbH6qfglesjbbxXqTON7B9gbPGTxqzf/J1iiLRD8uH4zAbIwuey9wVu22HXn8ZNhkcSe4bb X-Received: by 2002:a17:902:9006:: with SMTP id a6mr10543372plp.334.1550243317569; Fri, 15 Feb 2019 07:08:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550243317; cv=none; d=google.com; s=arc-20160816; b=b0u+/QLkiySC7G7Sy0zaufkWuYfZhKyFHoSq5c6jalewkxqzLPcjBibdCjWJU4zBsH DrVwUoUJobjCBL3pNfMEsb1wOJPySBe0M6QzWCNE9E2u0mhUgqORfYjP7QgYL0PUaoAw bh3kVuUoTZrlJp260SKqsRBxD6ZEav8qGzhZKDVJYjykP6JKA5w2JugFLmV1/YKTfAkt pyuugbZ9pvGwWETIExQ2oAh+Sx2vAF2lX0u6NLdqUtmz4kmZBk4OLNG4gRqScnSsCmar q77Fa2ze5rWHlliGHkq8DJKlc8865ELoDs24FVrdBepes9CeLbpB0cHEfShF8uZ4Fjny DSGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=ZliwZXnMaAxq57ktCa0euYNPcQDm3eNJeDDvY7dMqpE=; b=ugbFOWs4Ro4WWC4J1Dh+kwWfWaKpgz3XfnK05g2w6y2OB4RODDLzneazykz6wTlrZu 0irmyCfW+0Nu8M7Dax1XFvTfiMZvrL9Rn3OleDTo3zxBgXJFuHGVwQ9B80cj9nXvlKAU QTIhW3xO6veZQhj7FwRSwCIrU+pXH1LCASxcwdE5PWkUfG1iLVfPBNjLM0a8X1OmrUyF 7OrJs85JOxlhzTtmdUmUKJ5QrCWgQjMEHfJW146iUtwn8lZiCWN/ssOow31PJd+t2Nih 7froCxQckhZXhrKdWD3ATEXeaSW8l3rFgmoeYvtP7Nr+HQYNnjEqSSXTGsEANA70iYH5 iVLw== ARC-Authentication-Results: i=1; mx.google.com; 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 a13si3655470pls.101.2019.02.15.07.08.22; Fri, 15 Feb 2019 07:08:37 -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; 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 S1732855AbfBOF7x (ORCPT + 99 others); Fri, 15 Feb 2019 00:59:53 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:34675 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725838AbfBOF7t (ORCPT ); Fri, 15 Feb 2019 00:59:49 -0500 X-UUID: 8a88d074445a4cbe87fd0e0d23c7ef5f-20190215 X-UUID: 8a88d074445a4cbe87fd0e0d23c7ef5f-20190215 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1260798123; Fri, 15 Feb 2019 13:59:42 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 15 Feb 2019 13:59:40 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 15 Feb 2019 13:59:40 +0800 From: Chaotian Jing To: Ulf Hansson CC: Matthias Brugger , Shawn Lin , Simon Horman , Chaotian Jing , Avri Altman , Kyle Roeschley , Hongjie Fang , Adrian Hunter , , , , , Subject: [PATCH v2 1/2] mmc: core: do not retry CMD6 in __mmc_switch() Date: Fri, 15 Feb 2019 13:59:34 +0800 Message-ID: <1550210375-32270-2-git-send-email-chaotian.jing@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1550210375-32270-1-git-send-email-chaotian.jing@mediatek.com> References: <1550210375-32270-1-git-send-email-chaotian.jing@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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