From patchwork Tue Feb 14 20:06:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9572725 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 76C6A601E7 for ; Tue, 14 Feb 2017 20:08:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74E24271BC for ; Tue, 14 Feb 2017 20:08:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 69B8828417; Tue, 14 Feb 2017 20:08:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1EEAD2840E for ; Tue, 14 Feb 2017 20:08:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:Subject:From:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FGXQSKO3OkbL6LmCwzMG2xG35dgVleF9xsRtYMTCh5M=; b=Zg2eCOF75NuNjU 1RTP75atONu3r3cWY7kyM6q+O0xo7Ym9/D6VG7V7F8V1zC9wMJumoi5RlFsiU0+VC8u/u7WVtp2p7 jzYSfI5Swtwu0jGDe8F7ObNlshUu7lnaPq+YCqEUtYtRe40Hy9EBstiFjrUXSo7+2Qt3aPwrD5VLM X+BNWuvsMEpV9RX0dj+wCoS/l6G3V6udSHckeBqqj6wDAwGrBgtWAJ01PkyQ9YscvBcxkCJnkGhP5 CtkE0sTh4ZcvY4XIhifc+Tgs++JojfGfq4h7cUNLqvgsTdfuHVPQIn5YEBox4Zif9ofEQq+iNEV1n lhxmTKQqsDiuwV+xTQhw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cdjOM-0001wC-Mf; Tue, 14 Feb 2017 20:08:02 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cdjOE-0001kF-Ag for linux-amlogic@lists.infradead.org; Tue, 14 Feb 2017 20:07:57 +0000 Received: by mail-wm0-x241.google.com with SMTP id v77so5209232wmv.0 for ; Tue, 14 Feb 2017 12:07:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=F4tWqoalgaus95EfV+6KMHUy3WxiXw5I3t3grC+52ng=; b=k+nRafj9KLL7+rNlbOcHoAeOmDxgVgndphhliON6d+n5xIU15FrXuqEcbjQigaTm4f 8VNJxg0Yr8CEWQL/9/Q1afsVGNWjZrHDPnG4zCReMrcpoxC70YjRJZ/b8aaa11Kco0X5 lGcyta3r1I7hJg0nwKWrBvjyo3qTPi5QNe5R+LSjKEN3kFkMe7RsKx0pHUAlXtJTDZtg QTz1JAsVrnu8gf8KdeQoAA0P9cWPdBQzzeMtnKGB8Wp2LiNSbjRM5i5Umm6Usrx7KXqD k5oHFr4eGFDPG6bWRBHzQEh3b6nRpMaQKiDVhbMsbAHZ9PZcXWNodR4KCUex+b0O9dr4 sArA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=F4tWqoalgaus95EfV+6KMHUy3WxiXw5I3t3grC+52ng=; b=EQQ7cjGFeEaQDx2xuBhGBFZJGQK91q/VT9R2NdBmkp5788vLlb2N6uM0Bkmy5jBM4W s+5SjachHVW4p7kvLAgSOHvvlvj/YIDXfMuThaRKY6L1mXlnDO0EqT5f2wvqnvSb14X9 iEgxJNp74sN3CoAObL1WXhT9ObgJKqLf09L0sE3TiG6LXPl2rGnBnPwkCYqdMtMi1Tvp RtsE0n/mGA/jt2/fhqjS7Y8yrdgNfT+WkphTe+Sj2VT51sz7s5R94EWvvq8R36l0eoyK 68FMOYYPvOJU5Lf8W0ahKnA26jRNmutbUJVRcQZ3X+ybRuOsBgXKK8nWwXib7UTA8dAa RF7w== X-Gm-Message-State: AMke39lx7vbnIr4IUDsdl2TrOp6LddGVOI3O3ODO6VlhPUyYDXOXD0nP49IeHyEhJTegYQ== X-Received: by 10.28.1.213 with SMTP id 204mr4597038wmb.70.1487102852696; Tue, 14 Feb 2017 12:07:32 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:9533:a20:55f1:fb4b? (p200300C6EBDC400095330A2055F1FB4B.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:9533:a20:55f1:fb4b]) by smtp.googlemail.com with ESMTPSA id d1sm2032100wrb.62.2017.02.14.12.07.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 12:07:32 -0800 (PST) From: Heiner Kallweit Subject: [PATCH 03/18] mmc: meson-gx: explicitely call stop command for multi-block commands only To: Ulf Hansson , Kevin Hilman References: <420b75a9-b8c2-b3d7-ae60-3ed8a5a18ead@gmail.com> Message-ID: Date: Tue, 14 Feb 2017 21:06:07 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <420b75a9-b8c2-b3d7-ae60-3ed8a5a18ead@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170214_120754_589425_BC185996 X-CRM114-Status: UNSURE ( 6.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlo Caione , linux-amlogic@lists.infradead.org, "linux-mmc@vger.kernel.org" Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Explicitely call stop command for multi-block commands only. Signed-off-by: Heiner Kallweit --- drivers/mmc/host/meson-gx-mmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index e89bdf5f..ece38b44 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -686,10 +686,10 @@ static irqreturn_t meson_mmc_irq_thread(int irq, void *dev_id) } meson_mmc_read_resp(host->mmc, cmd); - if (!data || !data->stop) - meson_mmc_request_done(host->mmc, mrq); - else + if (mmc_op_multi(cmd->opcode)) meson_mmc_start_cmd(host->mmc, data->stop); + else + meson_mmc_request_done(host->mmc, mrq); return IRQ_HANDLED; }