Skip to content

Commit b36077b

Browse files
Alain Volmathverkuil
authored andcommitted
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: 28e0f37 ("media: stm32-dcmipp: STM32 DCMIPP camera interface driver") Cc: [email protected] Signed-off-by: Alain Volmat <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent a2836d3 commit b36077b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ struct dcmipp_ent_device *dcmipp_bytecap_ent_init(struct device *dev,
887887
q->dev = dev;
888888

889889
/* DCMIPP requires 16 bytes aligned buffers */
890-
ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32) & ~0x0f);
890+
ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
891891
if (ret) {
892892
dev_err(dev, "Failed to set DMA mask\n");
893893
goto err_mutex_destroy;

0 commit comments

Comments
 (0)