Skip to content
Commit a20bb058 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

dma-direct: add an explicit dma_direct_get_required_mask



This is somewhat modelled after the powerpc version, and differs from
the legacy fallback in use fls64 instead of pointlessly splitting up the
address into low and high dwords and in that it takes (__)phys_to_dma
into account.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: default avatarRobin Murphy <robin.murphy@arm.com>
parent c6d43812
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment