public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Robert Jarzmik <robert.jarzmik@free.fr>
To: Jaehoon Chung <jh80.chung@samsung.com>
Cc: "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	Ludovic Desroches <ludovic.desroches@atmel.com>,
	Sonic Zhang <sonic.zhang@analog.com>,
	Krzysztof Kozlowski <k.kozlowski.k@gmail.com>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Fabio Estevam <fabio.estevam@freescale.com>,
	Ben Dooks <ben-linux@fluff.org>,
	Hans de Goede <hdegoede@redhat.com>,
	Adrian Hunter <adrian.hunter@intel.com>
Subject: Re: [RFC PATCH] mmc: remove the MMC_DATA_STREAM flag
Date: Sat, 23 Jan 2016 18:59:21 +0100	[thread overview]
Message-ID: <87y4bgb2iu.fsf@belgarion.home> (raw)
In-Reply-To: <56978FBF.1080509@samsung.com> (Jaehoon Chung's message of "Thu, 14 Jan 2016 21:08:31 +0900")

Jaehoon Chung <jh80.chung@samsung.com> writes:

> It's not set to MMC_DATA_STREAM anywhere.
> It seems that it had used with CMD11/20. But now CMD11/20 didn't also use.
> I didn't know what is exactly, so i sent the patch as just RFC. 
> If i get some comments for this, i will resend the patch after separate to each host controller.
>
> If MMC_DATA_STREAM can be removed, then flags of data should be then one of
> MMC_DATA_READ and MMC_DATA_WRITE.
The commit message won't pass checkpatch, will it ?

> --- 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;
Why this chunk ? If the caller had already set some flags of its own, why
overwrite them ? That has no connection to MMC_DATA_STREAM I can see.
...
> -		brq->data.flags |= MMC_DATA_WRITE;
> +		brq->data.flags = MMC_DATA_WRITE;
Ditto.
> -	brq->data.flags |= MMC_DATA_WRITE;
> +	brq->data.flags = MMC_DATA_WRITE;
Ditto.

... drivers not within my area zapped ...

> diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c
> index ce08896..4285d3a 100644
> --- a/drivers/mmc/host/pxamci.c
> +++ b/drivers/mmc/host/pxamci.c
Works for me.

Cheers.

-- 
Robert

  parent reply	other threads:[~2016-01-23 17:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-14 12:08 [RFC PATCH] mmc: remove the MMC_DATA_STREAM flag Jaehoon Chung
2016-01-15 17:01 ` Ludovic Desroches
2016-01-22  1:18   ` Jaehoon Chung
2016-01-23 17:59 ` Robert Jarzmik [this message]
2016-01-25  2:10   ` Jaehoon Chung
2016-01-27 14:16 ` Ulf Hansson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4bgb2iu.fsf@belgarion.home \
    --to=robert.jarzmik@free.fr \
    --cc=adrian.hunter@intel.com \
    --cc=ben-linux@fluff.org \
    --cc=benh@kernel.crashing.org \
    --cc=fabio.estevam@freescale.com \
    --cc=hdegoede@redhat.com \
    --cc=jh80.chung@samsung.com \
    --cc=k.kozlowski.k@gmail.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=ludovic.desroches@atmel.com \
    --cc=sonic.zhang@analog.com \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox