Received: by 10.192.165.148 with SMTP id m20csp2526953imm; Sun, 22 Apr 2018 08:53:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx49mgqfapXuQC8PLSTESTKL3zx0wLLbf5WzjQrgCUfHiTZqDjBBpzDSOvZDcL9Klo+rJwi0Y X-Received: by 2002:a17:902:265:: with SMTP id 92-v6mr17284824plc.368.1524412435585; Sun, 22 Apr 2018 08:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524412435; cv=none; d=google.com; s=arc-20160816; b=jWyzvPQXXK+qLOSCPBRv9wxZERsXcgTk3GYaRPJXVhIXzW4UukbuhNupyN0yvaOrh/ LQi/nvp4Cn37iUkhM8kvoaLkNlLykME/zEkxlsV1uwAiFXZG3Tl6/fsPwec4auirtAf6 Up2L4i/RgJ6FJPXnprMo9cZj4SzJEtzJ6XJV8I7Eq/Vl4xYfdnRcngxQDFY81O4Dgy+K Tw+L6wOtgydHLuuURASinCviTvIVsAt0tivi6Dc9QzgusWx4ekeut28V7HVUlEW930KE Nr155t1cmqjuGHkQz8/pdXvc3HypYFdpHSKGJg7h0K3SAj8f8ieB+DuRYJD+jTCcXKWB rzzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qzVDK7GtqX66QAnJCUtjjVKNCxnyX/LCKoFlqL/GLcc=; b=UMiFiLH4DPHMHFt7Gxs9Dj/0UteTi5qhaL/z5fb1rzR0XrfjDIK//agZRFZR/+18bW CgNGzD/Py3bKn6GPJrhWvZWiRvlXsHdbo8mV5ondm5DxLxrFu8vmyo9PEGjMbwztqXUN XcM9eLBPbLtJSppaHGgRtBEZAFrfZtdUFr7H1iOZBjG+izgnpOuRlr4rrf5GHDPVim9u O1bD3IuG9LWDB+CROuTIp+cLv/feNX4TBUh70U8gSgEV3nJg3ida0zU7Y7OB2V/KeBst +KQUzAI269Z4TYlCk32CHjCvNbjH5zrSw1qmVXeXEG+Lbl1E/Tc3TWUI11WMh8vLtkQa M0jA== 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 m63-v6si9715440pld.429.2018.04.22.08.53.41; Sun, 22 Apr 2018 08:53:55 -0700 (PDT) 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 S1753726AbeDVOAZ (ORCPT + 99 others); Sun, 22 Apr 2018 10:00:25 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47314 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754058AbeDVOAT (ORCPT ); Sun, 22 Apr 2018 10:00:19 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2D9E6AF8; Sun, 22 Apr 2018 14:00:18 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masaharu Hayakawa , Wolfram Sang , Ulf Hansson Subject: [PATCH 4.16 133/196] mmc: tmio: Fix error handling when issuing CMD23 Date: Sun, 22 Apr 2018 15:52:33 +0200 Message-Id: <20180422135111.124030175@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135104.278511750@linuxfoundation.org> References: <20180422135104.278511750@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Masaharu Hayakawa commit fc167daff581c01ebce8695e9618231cae3561a1 upstream. If an error was detected when CMD23 was issued, command sequence should be terminated with errors and CMD23 should be issued after retuning. Fixes: 8b22c3c18be5 ("mmc: tmio: add CMD23 support") Signed-off-by: Masaharu Hayakawa Signed-off-by: Wolfram Sang Cc: # 4.13+ Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/tmio_mmc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/mmc/host/tmio_mmc_core.c +++ b/drivers/mmc/host/tmio_mmc_core.c @@ -911,7 +911,7 @@ static void tmio_mmc_finish_request(stru host->check_scc_error(host); /* If SET_BLOCK_COUNT, continue with main command */ - if (host->mrq) { + if (host->mrq && !mrq->cmd->error) { tmio_process_mrq(host, mrq); return; }