From patchwork Mon Feb 1 12:07:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 8178531 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 E0744BEEE5 for ; Mon, 1 Feb 2016 12:08:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0F9B4203B7 for ; Mon, 1 Feb 2016 12:08:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5062C203C2 for ; Mon, 1 Feb 2016 12:07:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932104AbcBAMHr (ORCPT ); Mon, 1 Feb 2016 07:07:47 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:58814 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932103AbcBAMHm (ORCPT ); Mon, 1 Feb 2016 07:07:42 -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 <0O1V01L6EB0Q23B0@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Mon, 01 Feb 2016 21:07:38 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [172.20.52.112]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id F7.3B.04949.A8A4FA65; Mon, 1 Feb 2016 21:07:38 +0900 (KST) X-AuditID: cbfee68d-f79646d000001355-63-56af4a8a2f67 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 22.DF.13906.A8A4FA65; Mon, 1 Feb 2016 21:07:38 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O1V003E0B0PE7F0@mmp1.samsung.com>; Mon, 01 Feb 2016 21:07:38 +0900 (KST) From: Jaehoon Chung To: linux-mmc@vger.kernel.org Cc: ulf.hansson@linaro.org, sonic.zhang@analog.com, robert.jarzmik@free.fr, andi.shyti@samsung.com, Jaehoon Chung Subject: [PATCH v2 11/11] mmc: block: don't use the OR operation for flag of data Date: Mon, 01 Feb 2016 21:07:36 +0900 Message-id: <1454328456-22918-12-git-send-email-jh80.chung@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1454328456-22918-1-git-send-email-jh80.chung@samsung.com> References: <1454328456-22918-1-git-send-email-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsWyRsSkQLfLa32YwcP7Khbbjzxjtbjxq43V 4sj/fkaLWW+ELe5sbWazOL423IHN49VVR4/+dZ9ZPe5c28Pm0bdlFaPH501yAaxRXDYpqTmZ ZalF+nYJXBnnZm5lL/jAVbHt1w6WBsYvHF2MnBwSAiYSZ09vYIawxSQu3FvP1sXIxSEksIJR 4mJXOxtM0ad/m5ggEksZJW5e2sEI4fxglOi7vYsRpIpNQEdi+7fjTCC2iICsxM8/F8BGMQv0 MEr861kAlhAWCJb4eP4f2D4WAVWJ81c3AdkcHLwC7hJbpxpAbJOTOHlsMiuIzQkU/rf9G1ir kICbxMQDe8FmSgj0s0vMmvEJao6AxLfJh1hA5kgALd50AOodSYmDK26wTGAUXsDIsIpRNLUg uaA4Kb3IUK84Mbe4NC9dLzk/dxMjMLBP/3vWu4Px9gHrQ4wCHIxKPLwbIteFCbEmlhVX5h5i NAXaMJFZSjQ5Hxg/eSXxhsZmRhamJqbGRuaWZkrivIpSP4OFBNITS1KzU1MLUov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AA= DLP-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=-7.4 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;