From: Michal Simek <monstr@monstr.eu>
To: Geliang Tang <geliangtang@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>,
Robin Murphy <robin.murphy@arm.com>,
Hans-Christian Noren Egtvedt <egtvedt@samfundet.no>,
Joerg Roedel <jroedel@suse.de>,
Bart Van Assche <bart.vanassche@sandisk.com>,
Alexander Duyck <alexander.h.duyck@intel.com>,
Krzysztof Kozlowski <krzk@kernel.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] microblaze: use sg_phys()
Date: Mon, 29 May 2017 11:00:17 +0200 [thread overview]
Message-ID: <c36c4ef0-fb7d-3f3a-9f2c-ec8ecad3aab4@monstr.eu> (raw)
In-Reply-To: <b0f4fb7f2dac44996e461e729fdcdefc3e3f594d.1490258928.git.geliangtang@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1078 bytes --]
On 23.3.2017 14:16, Geliang Tang wrote:
> Use sg_phys() instead of open-coding it.
>
> Signed-off-by: Geliang Tang <geliangtang@gmail.com>
> ---
> arch/microblaze/kernel/dma.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/arch/microblaze/kernel/dma.c b/arch/microblaze/kernel/dma.c
> index 12e093a..e45ada8 100644
> --- a/arch/microblaze/kernel/dma.c
> +++ b/arch/microblaze/kernel/dma.c
> @@ -65,8 +65,7 @@ static int dma_direct_map_sg(struct device *dev, struct scatterlist *sgl,
> if (attrs & DMA_ATTR_SKIP_CPU_SYNC)
> continue;
>
> - __dma_sync(page_to_phys(sg_page(sg)) + sg->offset,
> - sg->length, direction);
> + __dma_sync(sg_phys(sg), sg->length, direction);
> }
>
> return nents;
>
Applied.
Thanks,
Michal
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2017-05-29 9:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-23 13:16 [PATCH] crypto: ixp4xx - Use sg_virt() Geliang Tang
2017-03-23 13:16 ` [PATCH] iommu: use sg_phys() Geliang Tang
2017-03-23 13:16 ` [PATCH] microblaze: " Geliang Tang
2017-05-29 9:00 ` Michal Simek [this message]
2017-03-23 13:16 ` [PATCH] qla2xxx: use sg_virt() Geliang Tang
2017-03-23 17:48 ` [PATCH] crypto: ixp4xx - Use sg_virt() David Miller
2017-03-24 14:17 ` Herbert Xu
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=c36c4ef0-fb7d-3f3a-9f2c-ec8ecad3aab4@monstr.eu \
--to=monstr@monstr.eu \
--cc=akpm@linux-foundation.org \
--cc=alexander.h.duyck@intel.com \
--cc=bart.vanassche@sandisk.com \
--cc=egtvedt@samfundet.no \
--cc=geliangtang@gmail.com \
--cc=jroedel@suse.de \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robin.murphy@arm.com \
/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
all inboxes | Powered by JetHome®