From: Heiner Kallweit <hkallweit1@gmail.com>
To: Shawn Lin <shawn.lin@rock-chips.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>
Subject: Re: [PATCH 0/2] mmc: factor out getting dma direction from host drivers
Date: Fri, 24 Mar 2017 07:44:08 +0100 [thread overview]
Message-ID: <baaf544d-5b9d-220a-1209-50afedca6d31@gmail.com> (raw)
In-Reply-To: <bb5f5138-6d64-1eb0-39a2-277c16dc6ca8@rock-chips.com>
Am 24.03.2017 um 02:14 schrieb Shawn Lin:
> Hi Heiner,
>
> On 2017/3/24 5:17, Heiner Kallweit wrote:
>> Several host drivers contain identical code for determining the
>> DMA direction. Therefore factor this out to the core.
>
> I like this patchset, at least it removes more lines than insertions :)
>
> Only a small nit,
>
> s3cmci_prepare_dma seems need some more cleanup as the rw variable
> isn't useful personally. Anyway,
>
rw is still used for setting conf.direction, therefore I decided to
keep it (at least for now, however this variable might be a victim of
some later, more general refactoring).
However I found few more places where the new function can be applied.
So I'll send a v2 anyway.
> Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
>
Thanks for the quick review.
>
>
>>
>> Heiner Kallweit (2):
>> mmc: core: add mmc_get_dma_dir
>> mmc: use new core function mmc_get_dma_dir
>>
>> drivers/mmc/host/android-goldfish.c | 10 ++--------
>> drivers/mmc/host/atmel-mci.c | 6 ++----
>> drivers/mmc/host/davinci_mmc.c | 10 +++-------
>> drivers/mmc/host/dw_mmc.c | 14 +++-----------
>> drivers/mmc/host/jz4740_mmc.c | 9 ++-------
>> drivers/mmc/host/mmc_spi.c | 5 +----
>> drivers/mmc/host/mtk-sd.c | 8 ++------
>> drivers/mmc/host/mvsdio.c | 11 +++++------
>> drivers/mmc/host/omap_hsmmc.c | 17 ++++-------------
>> drivers/mmc/host/s3cmci.c | 4 ++--
>> drivers/mmc/host/sdhci.c | 9 +++------
>> drivers/mmc/host/sunxi-mmc.c | 14 +++-----------
>> include/linux/mmc/host.h | 6 ++++++
>> 13 files changed, 38 insertions(+), 85 deletions(-)
>>
>
>
prev parent reply other threads:[~2017-03-24 6:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-23 21:17 [PATCH 0/2] mmc: factor out getting dma direction from host drivers Heiner Kallweit
2017-03-23 21:20 ` [PATCH 1/2] mmc: core: add mmc_get_dma_dir Heiner Kallweit
2017-03-23 21:27 ` [PATCH 2/2] mmc: use new core function mmc_get_dma_dir Heiner Kallweit
2017-03-24 1:14 ` [PATCH 0/2] mmc: factor out getting dma direction from host drivers Shawn Lin
2017-03-24 6:44 ` Heiner Kallweit [this message]
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=baaf544d-5b9d-220a-1209-50afedca6d31@gmail.com \
--to=hkallweit1@gmail.com \
--cc=linux-mmc@vger.kernel.org \
--cc=shawn.lin@rock-chips.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