Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] v4l: vsp1: Register pipe with output WPF

The DRM object does not register the pipe with the WPF object. This is
used internally throughout the driver as a means of accessing the pipe.
As such this breaks operations which require access to the pipe from WPF
interrupts.

Register the pipe inside the WPF object after it has been declared as
the output.

Fixes: ff7e97c94d9f ("[media] v4l: vsp1: Store pipeline pointer in rwpf")

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Kieran Bingham and committed by
Mauro Carvalho Chehab
1531a208 1b8ce406

+1
+1
drivers/media/platform/vsp1/vsp1_drm.c
··· 602 602 pipe->bru = &vsp1->bru->entity; 603 603 pipe->lif = &vsp1->lif->entity; 604 604 pipe->output = vsp1->wpf[0]; 605 + pipe->output->pipe = pipe; 605 606 606 607 return 0; 607 608 }