Skip to content

Commit b7208e0

Browse files
kbinghampopcornmix
authored andcommitted
staging: vc04_services: bcm2835-v4l2-isp: 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 1b6708c commit b7208e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,6 +1775,13 @@ static int bcm2835_isp_probe(struct vchiq_device *device)
17751775
unsigned int i;
17761776
int ret;
17771777

1778+
ret = dma_set_mask_and_coherent(&device->dev, DMA_BIT_MASK(32));
1779+
if (ret) {
1780+
dev_err(&device->dev, "dma_set_mask_and_coherent failed: %d\n",
1781+
ret);
1782+
return ret;
1783+
}
1784+
17781785
bcm2835_isp_instances = devm_kzalloc(&device->dev,
17791786
sizeof(bcm2835_isp_instances) *
17801787
BCM2835_ISP_NUM_INSTANCES,

0 commit comments

Comments
 (0)