From patchwork Fri Jan 29 05:40:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 8159501 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 D4BAFBEEE5 for ; Fri, 29 Jan 2016 05:41:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1D3162024F for ; Fri, 29 Jan 2016 05:41:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3723920265 for ; Fri, 29 Jan 2016 05:41:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751240AbcA2FlN (ORCPT ); Fri, 29 Jan 2016 00:41:13 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:47237 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751533AbcA2FlF (ORCPT ); Fri, 29 Jan 2016 00:41:05 -0500 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O1P01AET94DT080@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Fri, 29 Jan 2016 14:41:01 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.115]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id A2.3C.04949.D6BFAA65; Fri, 29 Jan 2016 14:41:01 +0900 (KST) X-AuditID: cbfee68d-f79646d000001355-8e-56aafb6da09a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 00.6D.09068.D6BFAA65; Fri, 29 Jan 2016 14:41:01 +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:41:00 +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 11/11] mmc: block: don't use the OR operation for flag of data Date: Fri, 29 Jan 2016 14:40:57 +0900 Message-id: <1454046057-32318-12-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+NgFjrPLMWRmVeSWpSXmKPExsWyRsSkWDf396owg5aNohY3frWxWhz5389o MeuNsMWdrc1sFsfXhjuwery66ujRv+4zq8eda3vYPPq2rGL0+LxJLoA1issmJTUnsyy1SN8u gSvj3Myt7AUfuCq2/drB0sD4haOLkZNDQsBE4u3HlYwQtpjEhXvr2boYuTiEBFYwSmxaeZwF pujfz/2MEIlZjBLzZ/9hgXB+MErcOfkZrJ1NQEdi+7fjTCC2iICsxM8/F9hAbGaBEoltt0+z gtjCAuEScz6/BrNZBFQl7r98CGbzCrhLHN9zmBlim5zEyWOTweKcQPGN7dPB5gsJuEms2LuQ GWSxhEA7u8TieUeYIQYJSHybfAjoIg6ghKzEpgNQcyQlDq64wTKBUXgBI8MqRtHUguSC4qT0 IkO94sTc4tK8dL3k/NxNjMBwPv3vWe8OxtsHrA8xCnAwKvHwdqSvChNiTSwrrsw9xGgKtGEi s5Rocj4wavJK4g2NzYwsTE1MjY3MLc2UxHkVpX4GCwmkJ5akZqemFqQWxReV5qQWH2Jk4uCU amDkYy88lt6rsf9lk9bVXC3hRHb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ilter-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 After removed the MMC_DATA_STREAM, only two flags are remained. (MMC_DATA_READ and MMC_DATA_WRITE) The flags of READ and WRITE can't be used together. That's why it doesn't need to use "OR' operation. Signed-off-by: Jaehoon Chung --- drivers/mmc/card/block.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 5914263..e7449cb 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -1525,13 +1525,13 @@ static void mmc_blk_rw_rq_prep(struct mmc_queue_req *mqrq, } if (rq_data_dir(req) == READ) { brq->cmd.opcode = readcmd; - brq->data.flags |= MMC_DATA_READ; + brq->data.flags = MMC_DATA_READ; if (brq->mrq.stop) brq->stop.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_AC; } else { brq->cmd.opcode = writecmd; - brq->data.flags |= MMC_DATA_WRITE; + brq->data.flags = MMC_DATA_WRITE; if (brq->mrq.stop) brq->stop.flags = MMC_RSP_SPI_R1B | MMC_RSP_R1B | MMC_CMD_AC; @@ -1800,7 +1800,7 @@ static void mmc_blk_packed_hdr_wrq_prep(struct mmc_queue_req *mqrq, brq->data.blksz = 512; brq->data.blocks = packed->blocks + hdr_blocks; - brq->data.flags |= MMC_DATA_WRITE; + brq->data.flags = MMC_DATA_WRITE; brq->stop.opcode = MMC_STOP_TRANSMISSION; brq->stop.arg = 0;