From patchwork Wed Jan 22 15:00:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 23536 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5E7DA218CB for ; Wed, 22 Jan 2014 15:00:45 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id oz11sf788699veb.8 for ; Wed, 22 Jan 2014 07:00:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=EGsOZUyoUXmfXoShEKqGgWwlhNCXtGcbGb1KCAl5x04=; b=ZACwAopyQ050yO1R+xZiWiXCCcs9+AFs7PufeycZ1ztgiTO0rgRgNCKSHEz+JoZrFF vVPsknOExOD8yt1rRX7a4/fdd0F2nENHwH8fTf5sAJnIS7EebHAf5oIiGIq1P7Pxvtb9 /iYM7ghJesEc0jV+Xpxv2npEU++ArQG8ia5ftnWIRubySWMI9BGfgLnPeHZaLBPVCjla +KDwEBgXz7QZFI03HgQwYhv9ytQQ217VfzHt+LTwLXyqP/5Sjb6ShMIJVAAt9RQFy7j6 JeEIFhEl/eiXPUzEr5NfWqAt8NnVz7hyKonxPKRPCAHwBWNp6KeNz/7vuyvQGF5HnsCL 1zbQ== X-Gm-Message-State: ALoCoQmkmhFao9rjgdNL3qR/rHzbGu1BKie2xVoMteK9R/4zSmycZQuVL7qOglhikRpSpkLH8621 X-Received: by 10.58.170.6 with SMTP id ai6mr727365vec.7.1390402844624; Wed, 22 Jan 2014 07:00:44 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.128.200 with SMTP id nq8ls74322qeb.95.gmail; Wed, 22 Jan 2014 07:00:44 -0800 (PST) X-Received: by 10.220.133.148 with SMTP id f20mr1243357vct.2.1390402844533; Wed, 22 Jan 2014 07:00:44 -0800 (PST) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by mx.google.com with ESMTPS id k10si4683560vca.124.2014.01.22.07.00.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Jan 2014 07:00:44 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.49 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.49; Received: by mail-vb0-f49.google.com with SMTP id x14so274792vbb.8 for ; Wed, 22 Jan 2014 07:00:44 -0800 (PST) X-Received: by 10.220.192.198 with SMTP id dr6mr1229058vcb.26.1390402844451; Wed, 22 Jan 2014 07:00:44 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp190335vcz; Wed, 22 Jan 2014 07:00:44 -0800 (PST) X-Received: by 10.194.92.109 with SMTP id cl13mr2241795wjb.13.1390402842545; Wed, 22 Jan 2014 07:00:42 -0800 (PST) Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by mx.google.com with ESMTPS id nj17si7017363wic.3.2014.01.22.07.00.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Jan 2014 07:00:42 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.169 is neither permitted nor denied by best guess record for domain of ulf.hansson@linaro.org) client-ip=74.125.82.169; Received: by mail-we0-f169.google.com with SMTP id u57so409675wes.0 for ; Wed, 22 Jan 2014 07:00:42 -0800 (PST) X-Received: by 10.180.182.84 with SMTP id ec20mr3686272wic.28.1390402842130; Wed, 22 Jan 2014 07:00:42 -0800 (PST) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id dd3sm15401824wjb.9.2014.01.22.07.00.40 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Jan 2014 07:00:41 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Chris Ball Cc: Dong Aisheng , Stephen Warren , Vladimir Zapolskiy , Adrian Hunter , Ulf Hansson Subject: [PATCH 08/10] mmc: card: Use R1 response for the stop cmd at recovery path Date: Wed, 22 Jan 2014 16:00:22 +0100 Message-Id: <1390402824-9850-9-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1390402824-9850-1-git-send-email-ulf.hansson@linaro.org> References: <1390402824-9850-1-git-send-email-ulf.hansson@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.49 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Hosts supporting MMC_CAP_WAIT_WHILE_BUSY shall not be waiting for busy detection completion in the recovery path, which were the case when using R1B response. Start using R1 as response instead to align behavior, no matter if MMC_CAP_WAIT_WHILE_BUSY is supported or not. Signed-off-by: Ulf Hansson --- drivers/mmc/card/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 87cd2b0..74169fa 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -728,7 +728,7 @@ static int send_stop(struct mmc_card *card, u32 *status) int err; cmd.opcode = MMC_STOP_TRANSMISSION; - cmd.flags = MMC_RSP_SPI_R1B | MMC_RSP_R1B | MMC_CMD_AC; + cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_AC; err = mmc_wait_for_cmd(card->host, &cmd, 5); if (err == 0) *status = cmd.resp[0];