]> 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)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 7 Nov 2024 08:05:56 +0000 (09:05 +0100)
commitdaabc5c64703432c4a8798421a3588c2c142c51b
tree3729d4a8f49a9e1a7667bd34b1d1add5663d07e4
parent199c204bcc732ec18dbaec2b9d6445addbd376ea
media: ipu6: not override the dma_ops of device in driver

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>
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