From: popcornmix Date: Thu, 24 Sep 2020 19:13:08 +0000 (+0100) Subject: bcm2708_fb: Hack out dma support X-Git-Tag: accepted/tizen/unified/20240422.153132~472 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c9f00949ac0e8dd5b3e47b49c1ccf5c557a1bf6;p=platform%2Fkernel%2Flinux-rpi.git bcm2708_fb: Hack out dma support --- diff --git a/drivers/video/fbdev/bcm2708_fb.c b/drivers/video/fbdev/bcm2708_fb.c index 4732cb1..135260c 100644 --- a/drivers/video/fbdev/bcm2708_fb.c +++ b/drivers/video/fbdev/bcm2708_fb.c @@ -657,6 +657,8 @@ static long vc_mem_copy(struct bcm2708_fb *fb, struct fb_dmacopy *ioparam) long rc = 0; size_t offset; +return -EFAULT; + /* restrict this to root user */ if (!uid_eq(current_euid(), GLOBAL_ROOT_UID)) { rc = -EFAULT; @@ -1109,6 +1111,7 @@ static int bcm2708_fb_probe(struct platform_device *dev) dev_info(&dev->dev, "FB found %d display(s)\n", num_displays); +#if 0 /* Set up the DMA information. Note we have just one set of DMA * parameters to work with all the FB's so requires synchronising when * being used @@ -1141,7 +1144,7 @@ static int bcm2708_fb_probe(struct platform_device *dev) "Failed to request DMA irq\n"); goto free_dma_chan; } - +#endif rpi_firmware_property(fbdev->fw, RPI_FIRMWARE_GET_VC_MEMORY, &gpu_mem, sizeof(gpu_mem));