Received: by 10.213.65.68 with SMTP id h4csp472355imn; Fri, 16 Mar 2018 08:48:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELsin9U2eJNV/Xog2gOOxyQVc+/oY6bCOSwWCMACzIdolCfA1InihM8Yfe6CLzQuCCAJrA1p X-Received: by 10.99.165.66 with SMTP id r2mr1835475pgu.452.1521215297715; Fri, 16 Mar 2018 08:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521215297; cv=none; d=google.com; s=arc-20160816; b=nfBF2s676mIjD1wUgjjE1WZwRu08JJ/+MlgpxIQFbHwFe9wjLnuxe/Y/deYJhwweTE ddyANcPPi4xYdjw4xn3tyrqYwpQKDjdXAVqn//Tz4HbW1oS6qILVJwqyeulkn272/qZr alnEfVE3kzW7Gg0Cp4/flkbhJlOyzKbhFqM+8kvpC4bAY4eWXHhlMXllg42GpRyUrAKU 2VmHKoSTd3fOd/OajMGECB3BBRU1yQwGfpzRQYtZJgP8IBd33yzncpt63tsVy4QJV5hz tVzwU6cK3K6gPnWEenzhblK9/xkyg/5ezQESFw4ojTtEQencVquT8jEE0wJNSb5zbdB5 +bGg== 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=ECk3nVpFIPQEzm6NrpTOnbR4FUC7JRjUcITFEb2xo98=; b=KZQg4BSsTgwPotGMA8I62KCWGGanZaIM+NPqTr3+394roZI2NUF+UD9WyV6XhO99/w z1QlkehtqIWoQEpQDtwnLSJkbcaRYhfK5D6jJ9GNXgjq6gM8+HKKFnEpv+rEkmFTcc6k rouNrYIQjx3m3q/gspjjQiBy2lyZdvZWOBTXp+r6I+7LD1R4oFhtau50j4bYd6wCTL2R k9BVhVci94HqA3ZfbbnBSmZUjhZNTyxq8oFqK4CIMxsm9FImQ9LxYel29Ro7c/FAyLJS 8NJOKAVGcS53Olm6D3IA4nigQzQ1bwh9ivkwSwfdjXpSyDYe6ifWAftdS/EkYAIl92Rb zioQ== 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 o61-v6si6252771pld.692.2018.03.16.08.48.03; Fri, 16 Mar 2018 08:48:17 -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 S934578AbeCPPq0 (ORCPT + 99 others); Fri, 16 Mar 2018 11:46:26 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46252 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933389AbeCPPpN (ORCPT ); Fri, 16 Mar 2018 11:45:13 -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 C51A8F1A; Fri, 16 Mar 2018 15:45:12 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Hunter , Ulf Hansson , Sasha Levin Subject: [PATCH 4.15 120/128] mmc: mmc_test: Ensure command queue is disabled for testing Date: Fri, 16 Mar 2018 16:24:21 +0100 Message-Id: <20180316152342.427291611@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152336.199007505@linuxfoundation.org> References: <20180316152336.199007505@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.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Adrian Hunter [ Upstream commit 23a185254ace8e63dc4ca36e0315aed9440ae749 ] mmc_test disables the command queue because none of the tests use the command queue. However the Reset Test will re-enable it, so disable it in that case too. Fixes: 9d4579a85c84 ("mmc: mmc_test: Disable Command Queue while mmc_test is used") Signed-off-by: Adrian Hunter Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/core/mmc_test.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) --- a/drivers/mmc/core/mmc_test.c +++ b/drivers/mmc/core/mmc_test.c @@ -2328,10 +2328,17 @@ static int mmc_test_reset(struct mmc_tes int err; err = mmc_hw_reset(host); - if (!err) + if (!err) { + /* + * Reset will re-enable the card's command queue, but tests + * expect it to be disabled. + */ + if (card->ext_csd.cmdq_en) + mmc_cmdq_disable(card); return RESULT_OK; - else if (err == -EOPNOTSUPP) + } else if (err == -EOPNOTSUPP) { return RESULT_UNSUP_HOST; + } return RESULT_FAIL; }