Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af5761d6 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Florian Tobias Schandinat
Browse files

fbdev/amifb: Enable Copper DMA after setting up the Copper



Else the Copper may start executing random instructions

Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
parent 03c740a0
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -3733,17 +3733,15 @@ static int __init amifb_probe(struct platform_device *pdev)
	memset(dummysprite, 0, DUMMYSPRITEMEMSIZE);

	/*
	 * Enable Display DMA
	 * Make sure the Copper has something to do
	 */

	custom.dmacon = DMAF_SETCLR | DMAF_MASTER | DMAF_RASTER | DMAF_COPPER |
			DMAF_BLITTER | DMAF_SPRITE;
	ami_init_copper();

	/*
	 * Make sure the Copper has something to do
	 * Enable Display DMA
	 */

	ami_init_copper();
	custom.dmacon = DMAF_SETCLR | DMAF_MASTER | DMAF_RASTER | DMAF_COPPER |
			DMAF_BLITTER | DMAF_SPRITE;

	if (request_irq(IRQ_AMIGA_COPPER, amifb_interrupt, 0,
			"fb vertb handler", &currentpar)) {