mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
media: stm32: dcmipp: correct dma_set_mask_and_coherent mask value
Correct the call to dma_set_mask_and_coherent which should be set
to DMA_BIT_MASK(32).
Fixes: 28e0f37722 ("media: stm32-dcmipp: STM32 DCMIPP camera interface driver")
Cc: stable@vger.kernel.org
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
parent
a2836d3fe2
commit
b36077ba28
|
|
@ -887,7 +887,7 @@ struct dcmipp_ent_device *dcmipp_bytecap_ent_init(struct device *dev,
|
|||
q->dev = dev;
|
||||
|
||||
/* DCMIPP requires 16 bytes aligned buffers */
|
||||
ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32) & ~0x0f);
|
||||
ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
|
||||
if (ret) {
|
||||
dev_err(dev, "Failed to set DMA mask\n");
|
||||
goto err_mutex_destroy;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user