From patchwork Tue Feb 14 20:05:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9572689 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 60532601E7 for ; Tue, 14 Feb 2017 20:07:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C3A12840E for ; Tue, 14 Feb 2017 20:07:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 50AB028417; Tue, 14 Feb 2017 20:07:39 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C293E2840E for ; Tue, 14 Feb 2017 20:07:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754592AbdBNUHi (ORCPT ); Tue, 14 Feb 2017 15:07:38 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33812 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751366AbdBNUHh (ORCPT ); Tue, 14 Feb 2017 15:07:37 -0500 Received: by mail-wm0-f65.google.com with SMTP id c85so5235404wmi.1 for ; Tue, 14 Feb 2017 12:07:31 -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=zQzHxUYx9vFZkuxm1AyqsFi50lgnZYSh/HGNYCqD7y8=; b=QYNUpl514w+nU54IK7D508GUq0DvKRry6dBQaTzYXjlvqdnwrGEZi57l9f9nnpEfUB IVfUQpCcn68xR4nODccZxOQATO9ByfKFlsZx6K1TiUfMk0xsNqUqR/6GTaJMtERuvFi2 CKimD4rWHv3oZYzFKcdYwbYQ7yXzt7zc1M9+vmGdeAlIHSu2FhMIOCMheTbG0YHMziVz 4whq4q5KsncQviiXZPB8R21lJFmjWFlNS40wrR8CHnL+q8poCdPlwpG7j0mJgajqFwNF Jd34U7uAxxFZ15c5VBtdeVg8naLRJv4rZj5v9by4XgO9MfuTAhQ8fPsDP6iZpeyd0NyQ i/qQ== 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=zQzHxUYx9vFZkuxm1AyqsFi50lgnZYSh/HGNYCqD7y8=; b=AcAdddsbR0MdDguj7MPBp0YJrVXKmIwLQ0BR3B4TmD+LI7TJakQc1JE8zHZ+Gzcmn/ 1fhkLUdlnxgmT+rU0sv3w54nZ3XHq89RsYAYRp7NPzlBXNmVUF4smZTh6OMdcTBrojjW k00qOTq2w2SMxAGskDZU6mBYs63OSxqQffuYrOaQ/k8vazoQD1zTXr8ZELKLooOJZp5H 4WQA8sWwX6byWOWkgzND3xc0AXlaf2hf1RVOZ2P8gulOuqArtpEVxsiSiEEd2sOK18If eyqpIgpI1soLbIr7fY04eHcJz06oFZ2GmOpcgA4e3RBvU7FieRry63kcuxcopid/1P6S OyXg== X-Gm-Message-State: AMke39n/AAWiNmfUFzTFC9p9KnpQ9XBs+3lUrDuvAnY5QLJ/MbOFhhrYfSL9JWwF4O0m0g== X-Received: by 10.28.103.3 with SMTP id b3mr4553651wmc.99.1487102850928; Tue, 14 Feb 2017 12:07:30 -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 m29sm2054762wrm.38.2017.02.14.12.07.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 12:07:30 -0800 (PST) From: Heiner Kallweit Subject: [PATCH 02/18] mmc: meson-gx: remove code for unsupported CMD23 To: Ulf Hansson , Kevin Hilman References: <420b75a9-b8c2-b3d7-ae60-3ed8a5a18ead@gmail.com> Cc: Carlo Caione , "linux-mmc@vger.kernel.org" , linux-amlogic@lists.infradead.org Message-ID: <642a46aa-416c-32a3-f9ef-3feafca72636@gmail.com> Date: Tue, 14 Feb 2017 21:05:59 +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> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP CMD23 isn't supported on meson-gx and therefore the "set block count" command isn't used. So remove this dead code. Signed-off-by: Heiner Kallweit --- drivers/mmc/host/meson-gx-mmc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index 1ad66f84..e89bdf5f 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -555,11 +555,7 @@ static void meson_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) writel(0, host->regs + SD_EMMC_START); host->mrq = mrq; - - if (mrq->sbc) - meson_mmc_start_cmd(mmc, mrq->sbc); - else - meson_mmc_start_cmd(mmc, mrq->cmd); + meson_mmc_start_cmd(mmc, mrq->cmd); } static int meson_mmc_read_resp(struct mmc_host *mmc, struct mmc_command *cmd) @@ -690,7 +686,7 @@ static irqreturn_t meson_mmc_irq_thread(int irq, void *dev_id) } meson_mmc_read_resp(host->mmc, cmd); - if (!data || !data->stop || mrq->sbc) + if (!data || !data->stop) meson_mmc_request_done(host->mmc, mrq); else meson_mmc_start_cmd(host->mmc, data->stop);