From patchwork Fri Jan 29 05:40:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 8159411 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 984A2BEEE5 for ; Fri, 29 Jan 2016 05:41:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EB7E42024F for ; Fri, 29 Jan 2016 05:41:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0509D20265 for ; Fri, 29 Jan 2016 05:41:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751504AbcA2FlF (ORCPT ); Fri, 29 Jan 2016 00:41:05 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:36357 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751237AbcA2FlB (ORCPT ); Fri, 29 Jan 2016 00:41:01 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O1P01O7Q94C6B80@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Fri, 29 Jan 2016 14:41:00 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [172.20.52.115]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id F5.E5.04790.C6BFAA65; Fri, 29 Jan 2016 14:41:00 +0900 (KST) X-AuditID: cbfee691-f79766d0000012b6-5d-56aafb6c0ea6 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 68.81.13906.B6BFAA65; Fri, 29 Jan 2016 14:40:59 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O1P00IMX94A2N80@mmp2.samsung.com>; Fri, 29 Jan 2016 14:40:59 +0900 (KST) From: Jaehoon Chung To: linux-mmc@vger.kernel.org Cc: ulf.hansson@linaro.org, sonic.zhang@analog.com, robert.jarzmik@free.fr, Jaehoon Chung Subject: [RESEND PATCH 03/11] mmc: davinci_mmc: remove the MMC_DATA_STREAM flag Date: Fri, 29 Jan 2016 14:40:49 +0900 Message-id: <1454046057-32318-4-git-send-email-jh80.chung@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1454046057-32318-1-git-send-email-jh80.chung@samsung.com> References: <1454046057-32318-1-git-send-email-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPLMWRmVeSWpSXmKPExsWyRsSkWDfn96owg46tLBY3frWxWhz5389o MeuNsMWdrc1sFsfXhjuwery66ujRv+4zq8eda3vYPPq2rGL0+LxJLoA1issmJTUnsyy1SN8u gSvj/MVW5oKTAhXHzyxlbWC8wdvFyMkhIWAi8X3CR1YIW0ziwr31bF2MXBxCAisYJa5ef8kK U/Rlwl0miMQsRokbW98xQzg/GCXWrF7MDlLFJqAjsf3bcSYQW0RAVuLnnwtsIDazQInEttun wSYJC/hLbHnSBmazCKhKNK+fA1bDK+Am8WzRSkaIbXISJ49NBqvhFHCX2Ng+HSwuBFSzYu9C sMUSAu3sEr/e/WODGCQg8W3yIZYuRg6ghKzEpgPMEHMkJQ6uuMEygVF4ASPDKkbR1ILkguKk 9CJTveLE3OLSvHS95PzcTYzAcD7979nEHYz3D1gfYhTgYFTi4X2QuSpMiDWxrLgy9xCjKdCG icxSosn5wKjJK4k3NDYzsjA1MTU2Mrc0UxLn1ZH+GSwkkJ5YkpqdmlqQWhRfVJqTWnyIkYmD U6qB8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-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the MMC_DATA_STREAM flag because it doesn't use anymore. Signed-off-by: Jaehoon Chung --- drivers/mmc/host/davinci_mmc.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index ea2a2eb..693144e 100644 --- a/drivers/mmc/host/davinci_mmc.c +++ b/drivers/mmc/host/davinci_mmc.c @@ -346,10 +346,6 @@ static void mmc_davinci_start_command(struct mmc_davinci_host *host, if (cmd->data) cmd_reg |= MMCCMD_WDATX; - /* Setting whether stream or block transfer */ - if (cmd->flags & MMC_DATA_STREAM) - cmd_reg |= MMCCMD_STRMTP; - /* Setting whether data read or write */ if (host->data_dir == DAVINCI_MMC_DATADIR_WRITE) cmd_reg |= MMCCMD_DTRW; @@ -568,8 +564,7 @@ mmc_davinci_prepare_data(struct mmc_davinci_host *host, struct mmc_request *req) return; } - dev_dbg(mmc_dev(host->mmc), "%s %s, %d blocks of %d bytes\n", - (data->flags & MMC_DATA_STREAM) ? "stream" : "block", + dev_dbg(mmc_dev(host->mmc), "%s, %d blocks of %d bytes\n", (data->flags & MMC_DATA_WRITE) ? "write" : "read", data->blocks, data->blksz); dev_dbg(mmc_dev(host->mmc), " DTO %d cycles + %d ns\n", @@ -584,22 +579,18 @@ mmc_davinci_prepare_data(struct mmc_davinci_host *host, struct mmc_request *req) writel(data->blksz, host->base + DAVINCI_MMCBLEN); /* Configure the FIFO */ - switch (data->flags & MMC_DATA_WRITE) { - case MMC_DATA_WRITE: + if (data->flags & MMC_DATA_WRITE) { host->data_dir = DAVINCI_MMC_DATADIR_WRITE; writel(fifo_lev | MMCFIFOCTL_FIFODIR_WR | MMCFIFOCTL_FIFORST, host->base + DAVINCI_MMCFIFOCTL); writel(fifo_lev | MMCFIFOCTL_FIFODIR_WR, host->base + DAVINCI_MMCFIFOCTL); - break; - - default: + } else { host->data_dir = DAVINCI_MMC_DATADIR_READ; writel(fifo_lev | MMCFIFOCTL_FIFODIR_RD | MMCFIFOCTL_FIFORST, host->base + DAVINCI_MMCFIFOCTL); writel(fifo_lev | MMCFIFOCTL_FIFODIR_RD, host->base + DAVINCI_MMCFIFOCTL); - break; } host->buffer = NULL;