From patchwork Fri Jan 29 04:06:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 8158411 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5A2099FE7F for ; Fri, 29 Jan 2016 04:06:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9A519201F2 for ; Fri, 29 Jan 2016 04:06:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 11DED20374 for ; Fri, 29 Jan 2016 04:06:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753363AbcA2EG2 (ORCPT ); Thu, 28 Jan 2016 23:06:28 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:44354 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753236AbcA2EG0 (ORCPT ); Thu, 28 Jan 2016 23:06:26 -0500 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O1P029OG4QJHIC0@mailout3.samsung.com> for linux-mmc@vger.kernel.org; Fri, 29 Jan 2016 13:06:19 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.113]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 1A.AD.04964.B35EAA65; Fri, 29 Jan 2016 13:06:19 +0900 (KST) X-AuditID: cbfee68f-f793a6d000001364-99-56aae53b97ea Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id EC.34.09068.A35EAA65; Fri, 29 Jan 2016 13:06:19 +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:18 +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 12/12] mmc: block: don't use the OR operation for flag of data Date: Fri, 29 Jan 2016 13:06:11 +0900 Message-id: <1454040371-31625-13-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+NgFjrLLMWRmVeSWpSXmKPExsWyRsSkUNf66aowg0strBY3frWxWhz5389o MeuNsMWdrc1sFsfXhjuwery66ujRv+4zq8eda3vYPPq2rGL0+LxJLoA1issmJTUnsyy1SN8u gSvj3Myt7AUfuCq2/drB0sD4haOLkYNDQsBEonG9dRcjJ5ApJnHh3nq2LkYuDiGBFYwSM55f YYVImEjcnjOVHcQWEpjFKHHjmRtE0Q9GiU2vnrOAJNgEdCS2fzvOBGKLCMhK/PxzgQ3EZhYo kdh2+zTYIGEBP4nXCzaAxVkEVCWmdMwHi/MKuEvM/TqRGWKZnMTJY5PB4pxA8Q173rBALHaT WPjsAAvIYgmBZnaJ5++eM0IMEpD4NvkQC8Q3shKbDkDNkZQ4uOIGywRG4QWMDKsYRVMLkguK k9KLjPWKE3OLS/PS9ZLzczcxAkP59L9n/TsY7x6wPsQowMGoxMPbkb4qTIg1say4MvcQoynQ honMUqLJ+cCIySuJNzQ2M7IwNTE1NjK3NFMS510o9TNYSCA9sSQ1OzW1ILUovqg0J7X4ECMT B6dUA+OEJQ6hfoVLNwv1xtv7GAQ6xRY8a190sI5r69pJL5Rf76m85Fzb1Fato1B5X/RP7VKt 4Pk7K9bcsNi27ahLgE6i7EFj+w2fhFTMePeturI27X3i7xePFz3zWFXONz918/arkmL3rx4q 3/ex9PTZVedZC4/+2n37yPZJz3XreNWcm47vf7n1mFezEktxRqKhFnNRcSIADxurmWACAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFIsWRmVeSWpSXmKPExsVy+t9jQV3rp6vCDA4nW9z41cZqceR/P6PF rDfCFne2NrNZHF8b7sDq8eqqo0f/us+sHneu7WHz6NuyitHj8ya5ANaoBkabjNTElNQihdS8 5PyUzLx0WyXv4HjneFMzA0NdQ0sLcyWFvMTcVFslF58AXbfMHKDNSgpliTmlQKGAxOJiJX07 TBNCQ9x0LWAaI3R9Q4LgeowM0EDCGsaMczO3shd84KrY9msHSwPjF44uRk4OCQETidtzprJD 2GISF+6tZwOxhQRmMUrceObWxcgFZP9glNj06jkLSIJNQEdi+7fjTCC2iICsxM8/F8AamAVK JLbdPs0KYgsL+Em8XrABLM4ioCoxpWM+WJxXwF1i7teJzBDL5CROHpsMFucEim/Y84YFYrGb xMJnB1gmMPIuYGRYxSiRWpBcUJyUnmuUl1quV5yYW1yal66XnJ+7iREcL8+kdzAe3uV+iFGA g1GJh7cjfVWYEGtiWXFl7iFGCQ5mJRFelnNAId6UxMqq1KL8+KLSnNTiQ4ymQIdNZJYSTc4H xnJeSbyhsYmZkaWRuaGFkbG5kjjvvkuRYUIC6YklqdmpqQWpRTB9TBycUg2Mmj82HHo9UaJU 9Ge3Occf5v/btmpsSLXat7hrq5nYh7ToxNUcq/SzWn9xmIYWiMTPv/dg2s0/7k98fvXfXvzP 8mT80QlpZvIqXW6nQn9ptevUq4RrWdd3twQejhd8LGTHMPPFvRbe8yLvfXZlqk+y/lUwRbpm p5bPn4frYlWTuKybBZYXdx1WYinOSDTUYi4qTgQAR7gI960CAAA= 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=-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;