dma-mapping: refactor resource mapping to use dma_*map_phys() API
Replace the separate dma_map_resource() and dma_unmap_resource()
implementations with wrappers around dma_map_phys() and dma_unmap_phys()
using the DMA_ATTR_MMIO flag.
The change removes the standalone resource mapping logic and instead
leverages the existing physical address-based mapping infrastructure
that already supports MMIO regions through the DMA_ATTR_MMIO attribute.
This consolidation reduces the codebase complexity while maintaining
the same functionality for resource mapping operations.
The refactoring also removes the corresponding debug and trace events
for resource mapping since they are now handled by the unified phys
mapping infrastructure, further reducing the maintenance burden.
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
4 files changed