media: stm32: dcmipp: correct dma_set_mask_and_coherent mask value
authorAlain Volmat <alain.volmat@foss.st.com>
Thu, 12 Dec 2024 09:17:25 +0000 (10:17 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 12 Dec 2024 12:22:25 +0000 (13:22 +0100)
Correct the call to dma_set_mask_and_coherent which should be set
to DMA_BIT_MASK(32).

Fixes: 28e0f3772296 ("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>
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c

index 7edd49bfe7e5b8d6962777291f82e21131f1fae2..7f9fa79402df0d46e0ce75fec9b8fc2e0dd6bcb5 100644 (file)
@@ -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;