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: 9572727 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 1F300601E7 for ; Tue, 14 Feb 2017 20:08:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1CFE526E4D for ; Tue, 14 Feb 2017 20:08:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 11DF32840E; Tue, 14 Feb 2017 20:08:16 +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 38CD926E4D 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=Kx+RZi+UmlFWxmy3VK6+d53OxEfrZVvptH+2bx15YY0=; b=isZ8t5eU//qswB Bk/SVUyXEkhOe9f6X6xsPqdyfkBdRXZgOt2toZ7ndBcHMGg95Jd9ZtQWUfTXnjlagb+Z1uVNma3KI u4abwA/0S57dgjHxSyFtuK4pNykPrh90ikTz54sIJGkqKTvlGyOGSMKIZLWskpOmGBA07d+ixAj2W wF5QG3BvpOc/bVKvO6BKCKSTU9Dr0gIRCJLrsheV8wyZSOL96j8BTSzrxSjXcuNZJ/MGZ7VHdb1mK BDf5TeLMEinmIv+rnBIiO3HgVZYy/fi8rNnfOLtUSkn10ixlYYtRJYOJDhvIZDluJK9eSc1Q3LCmK aGsOx7iDGs/dBIRmRg0g==; 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 1cdjOF-0001pk-2S; Tue, 14 Feb 2017 20:07:55 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cdjO9-0001k8-Nl for linux-amlogic@lists.infradead.org; Tue, 14 Feb 2017 20:07:52 +0000 Received: by mail-wm0-x244.google.com with SMTP id v77so5209090wmv.0 for ; Tue, 14 Feb 2017 12:07:32 -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=CooxJe6nlpGQ7oPSr9zvoduLOP9599duLdvQu0MnS0ob+isHiZ24i27sBi6GhMVvhO LZMjVjYmEfnXu36BnYQtl+Hs57e2OvwQudwDtYUgatVDjulsGjoIwiGd9U0Z2BYSAlYe 8xsYW/o9W+mnlscqBreKJXOKD/wamB9O4M7opbe/WfUtxQyLzg/FTlFjCkhnvvta3jti smV3mUFtofSvTy688USpVzA/VkcBclgHE5GgvodpiwgBf3BJ9b58sFKlCrjs0hUFqKqr S8dK+3cHb1QTnwLyHu4fcdF3MqHSynFK6zcOK3Dp5BBnZxF1dhvnUMxHJZbbdntM44wf rjPg== X-Gm-Message-State: AMke39mqmg8eXu/6uSqWkJMxCtUWKKZL8Cw9QUiIZsh2+pMBR3YMZjIblWNwulLtw8wpGA== 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> 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170214_120749_962597_2190D6A2 X-CRM114-Status: UNSURE ( 7.32 ) 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 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);