[PATCH 2/4] scatterlist: add sg_alloc_table_from_buf() helper

2016-04-01 Thread Boris Brezillon
sg_alloc_table_from_buf() provides an easy solution to create an sg_table from a virtual address pointer. This function takes care of dealing with vmallocated buffers, buffer alignment, or DMA engine limitations (maximum DMA transfer size). Signed-off-by: Boris Brezillon --- include/linux/scatte

Re: [v7, 0/5] Fix eSDHC host version register bug

2016-04-01 Thread Scott Wood
On Fri, 2016-04-01 at 11:07 +0800, Yangbo Lu wrote: > This patchset is used to fix a host version register bug in the T4240-R1.0 > -R2.0 > eSDHC controller. To get the SoC version and revision, it's needed to add > the > GUTS driver to access the global utilities registers. > > So, the first three

[PATCH 1/4] mm: add is_highmem_addr() helper

2016-04-01 Thread Boris Brezillon
Add an helper to check if a virtual address is in the highmem region. Signed-off-by: Boris Brezillon --- include/linux/highmem.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/linux/highmem.h b/include/linux/highmem.h index bb3f329..13dff37 100644 --- a/include/linux/

[PATCH 3/4] spi: use sg_alloc_table_from_buf()

2016-04-01 Thread Boris Brezillon
Replace custom implementation of sg_alloc_table_from_buf() by a call to sg_alloc_table_from_buf(). Signed-off-by: Boris Brezillon --- drivers/spi/spi.c | 45 + 1 file changed, 5 insertions(+), 40 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/s

[PATCH 0/4] scatterlist: sg_table from virtual pointer

2016-04-01 Thread Boris Brezillon
Hello, This series has been extracted from another series [1] adding support for DMA operations in a NAND driver. The reason I decided to post those patches separately is because they are touching core stuff, and I'd like to have feedback on these specific aspects. The idea is to provide a gener

Re: [PATCH 2/4] scatterlist: add sg_alloc_table_from_buf() helper

2016-04-01 Thread Boris Brezillon
Hi Russell, On Thu, 31 Mar 2016 15:14:13 +0100 Russell King - ARM Linux wrote: > On Thu, Mar 31, 2016 at 02:29:42PM +0200, Boris Brezillon wrote: > > sg_alloc_table_from_buf() provides an easy solution to create an sg_table > > from a virtual address pointer. This function takes care of dealing

[PATCH 4/4] mtd: provide helper to prepare buffers for DMA operations

2016-04-01 Thread Boris Brezillon
Some NAND controller drivers are making use of DMA to transfer data from the controller to the buffer passed by the MTD user. Provide a generic mtd_map/unmap_buf() implementation to avoid open coded (and sometime erroneous) implementations. Signed-off-by: Boris Brezillon --- drivers/mtd/mtdcore.

Re: [v7, 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

2016-04-01 Thread Stephen Boyd
On 03/31/2016 08:07 PM, Yangbo Lu wrote: > drivers/clk/clk-qoriq.c | 3 +-- > For clk part: Acked-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project _

[PATCH] iommu/arm-smmu: Fix stream-match conflict with IOMMU_DOMAIN_DMA

2016-04-01 Thread Will Deacon
Commit cbf8277ef456 ("iommu/arm-smmu: Treat IOMMU_DOMAIN_DMA as bypass for now") ignores requests to attach a device to the default domain since, without IOMMU-basked DMA ops available everywhere, the default domain will just lead to unexpected transaction faults being reported. Unfortunately, the