From patchwork Fri Jan 29 04:06:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 8158441 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 EB239BEEE5 for ; Fri, 29 Jan 2016 04:06:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3006E201F2 for ; Fri, 29 Jan 2016 04:06:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 453B92035D for ; Fri, 29 Jan 2016 04:06:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753419AbcA2EGX (ORCPT ); Thu, 28 Jan 2016 23:06:23 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:50318 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752563AbcA2EGV (ORCPT ); Thu, 28 Jan 2016 23:06:21 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O1P030QB4QI5ZD0@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Fri, 29 Jan 2016 13:06:18 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.114]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 51.E3.04790.A35EAA65; Fri, 29 Jan 2016 13:06:18 +0900 (KST) X-AuditID: cbfee691-f79766d0000012b6-77-56aae53a2c18 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 8A.34.09068.A35EAA65; Fri, 29 Jan 2016 13:06:18 +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 <0O1P00AR64QHJ370@mmp2.samsung.com>; Fri, 29 Jan 2016 13:06:17 +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: [PATCH 04/12] mmc: davinci_mmc: remove the MMC_DATA_STREAM flag Date: Fri, 29 Jan 2016 13:06:03 +0900 Message-id: <1454040371-31625-5-git-send-email-jh80.chung@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1454040371-31625-1-git-send-email-jh80.chung@samsung.com> References: <1454040371-31625-1-git-send-email-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNLMWRmVeSWpSXmKPExsWyRsSkSNfq6aowg54VEhY3frWxWhz5389o MeuNsMWdrc1sFsfXhjuwery66ujRv+4zq8eda3vYPPq2rGL0+LxJLoA1issmJTUnsyy1SN8u gSvj/MVW5oKTAhXHzyxlbWC8wdvFyMkhIWAisbTvByuELSZx4d56NhBbSGAFo8Sji0kwNd/W rwOKcwHFZzFKNO05ClX0g1Fi0VJ9EJtNQEdi+7fjTCC2iICsxM8/F8BqmAVKJLbdPg20gIND WMBDomlrBEiYRUBVYvHD/4wgYV4BN4nnzxMgVslJnDw2GewcTgF3iQ173rBAbHKTWPjsAAvI CRIC7ewSG7//ZoKYIyDxbfIhFpA5EkBrNx1ghpgjKXFwxQ2WCYzCCxgZVjGKphYkFxQnpReZ 6hUn5haX5qXrJefnbmIEhvHpf88m7mC8f8D6EKMAB6MSD++DzFVhQqyJZcWVuYcYTYE2TGSW Ek3OB0ZLXkm8obGZkYWpiamxkbmlmZI4r470z2AhgfTEktTs1NSC1KL4otKc1OJDjEwcnFIN jKVyUV73jWS0D7aeY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TR: 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;