Unverified Commit feb0fe58 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!10931 drm/lima: fix shared irq handling on driver remove

parents 60430951 4c0cfbca
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -324,7 +324,9 @@ int lima_gp_init(struct lima_ip *ip)

void lima_gp_fini(struct lima_ip *ip)
{
	struct lima_device *dev = ip->dev;

	devm_free_irq(dev->dev, ip->irq, ip);
}

int lima_gp_pipe_init(struct lima_device *dev)
+5 −0
Original line number Diff line number Diff line
@@ -118,7 +118,12 @@ int lima_mmu_init(struct lima_ip *ip)

void lima_mmu_fini(struct lima_ip *ip)
{
	struct lima_device *dev = ip->dev;

	if (ip->id == lima_ip_ppmmu_bcast)
		return;

	devm_free_irq(dev->dev, ip->irq, ip);
}

void lima_mmu_flush_tlb(struct lima_ip *ip)
+4 −0
Original line number Diff line number Diff line
@@ -266,7 +266,9 @@ int lima_pp_init(struct lima_ip *ip)

void lima_pp_fini(struct lima_ip *ip)
{
	struct lima_device *dev = ip->dev;

	devm_free_irq(dev->dev, ip->irq, ip);
}

int lima_pp_bcast_resume(struct lima_ip *ip)
@@ -299,7 +301,9 @@ int lima_pp_bcast_init(struct lima_ip *ip)

void lima_pp_bcast_fini(struct lima_ip *ip)
{
	struct lima_device *dev = ip->dev;

	devm_free_irq(dev->dev, ip->irq, ip);
}

static int lima_pp_task_validate(struct lima_sched_pipe *pipe,