ARM: 8427/1: dma-mapping: add support for offset parameter in dma_mmap()
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 28 Aug 2015 08:42:09 +0000 (09:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2015 18:40:07 +0000 (13:40 -0500)
commit1aac1dc9886764cfa1226273e4d4709284872442
tree6f8a9181cda9f14d6c3accbca10a6859690dcb2a
parent98cc6d31fa7dde7beb1bccc51ad5c858d9ae5b04
ARM: 8427/1: dma-mapping: add support for offset parameter in dma_mmap()

commit 7e31210349e9e03a9a4dff31ab5f2bc83e8e84f5 upstream.

IOMMU-based dma_mmap() implementation lacked proper support for offset
parameter used in mmap call (it always assumed that mapping starts from
offset zero). This patch adds support for offset parameter to IOMMU-based
implementation.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mm/dma-mapping.c