Skip to content

Commit 4347744

Browse files
kbinghampopcornmix
authored andcommitted
staging: vc04_services: bcm2835-codec: Explicitly set DMA mask
The platform model originally handled the DMA mask. Now that we are on the vchiq_bus we need to explicitly set this. Signed-off-by: Kieran Bingham <[email protected]>
1 parent b7208e0 commit 4347744

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3898,6 +3898,13 @@ static int bcm2835_codec_probe(struct vchiq_device *device)
38983898
struct media_device *mdev;
38993899
int ret = 0;
39003900

3901+
ret = dma_set_mask_and_coherent(&device->dev, DMA_BIT_MASK(32));
3902+
if (ret) {
3903+
dev_err(&device->dev, "dma_set_mask_and_coherent failed: %d\n",
3904+
ret);
3905+
return ret;
3906+
}
3907+
39013908
drv = devm_kzalloc(&device->dev, sizeof(*drv), GFP_KERNEL);
39023909
if (!drv)
39033910
return -ENOMEM;

0 commit comments

Comments
 (0)