]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: ipu6: not override the dma_ops of device in driver
authorBingbu Cao <bingbu.cao@intel.com>
Wed, 16 Oct 2024 07:53:01 +0000 (15:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:53:05 +0000 (13:53 +0100)
commita8a333a5a3cc9a871ee919c848f191616f3d030b
treee4f0da5004c2cf16cf69ae6e23b0be022c04ddaa
parent1365a40a267734fadb9d92a98439def5b4c53784
media: ipu6: not override the dma_ops of device in driver

[ Upstream commit daabc5c64703432c4a8798421a3588c2c142c51b ]

DMA ops are a helper for architectures and not for drivers to override the
DMA implementation. Driver should not override the DMA implementation.

This patch removes the dma_ops override from auxiliary device and adds
driver-internal helpers that use the actual DMA mapping APIs.

Fixes: 9163d83573e4 ("media: intel/ipu6: add IPU6 DMA mapping API and MMU table")
Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
[Sakari Ailus: Fix the commit message a little.]
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/pci/intel/ipu6/ipu6-bus.c
drivers/media/pci/intel/ipu6/ipu6-buttress.c
drivers/media/pci/intel/ipu6/ipu6-cpd.c
drivers/media/pci/intel/ipu6/ipu6-dma.c
drivers/media/pci/intel/ipu6/ipu6-dma.h
drivers/media/pci/intel/ipu6/ipu6-fw-com.c