v4l: vsp1: wpf: Clear RPF to WPF association at stream off time
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 28 May 2014 16:10:33 +0000 (13:10 -0300)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:24:30 +0000 (09:24 +0900)
commit0ee8cf3d4b353c834e951a9862a0e8cfbfa5a65d
treef7bace776ebe27e3c83a5851552373cd5dee107c
parent2455d50e9168b6f9b5b6d57df9c8902b95ff5ffe
v4l: vsp1: wpf: Clear RPF to WPF association at stream off time

The VSP1 stores the video pipelines' input (RPF) to output (WPF)
mappings in a WPF register. An RPF must never be associated with
multiple WPFs, even if all of those WPFs but one are unused, otherwise
the hardware won't function properly.

The driver doesn't ensure this correctly as it never clears the
mappings. An RPF used with one WPF and later with a different WPF will
lead to malfunction, as it will be associated with two WPFs. Clear the
mappings at stream off time to fix this.

Reported-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
(cherry picked from commit d6c71e8ceb9fe79aaf9c2f73af5cb2ef93526b0d)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/media/platform/vsp1/vsp1_wpf.c