mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
dma-mapping: fix handling of dma-ranges for reserved memory (again)
Daniele reported that issue previously fixed inc41f9ea998("drivers: dma-coherent: Account dma_pfn_offset when used with device tree") reappear shortly after43fc509c3e("dma-coherent: introduce interface for default DMA pool") where fix was accidentally dropped. Lets put fix back in place and respect dma-ranges for reserved memory. Fixes:43fc509c3e("dma-coherent: introduce interface for default DMA pool") Reported-by: Daniele Alessandrelli <daniele.alessandrelli@gmail.com> Tested-by: Daniele Alessandrelli <daniele.alessandrelli@gmail.com> Tested-by: Alexandre Torgue <alexandre.torgue@st.com> Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
320000e72e
commit
a445e940ea
3 changed files with 12 additions and 10 deletions
Loading…
Add table
Add a link
Reference in a new issue