]> git.baikalelectronics.ru Git - kernel.git/commit
media: vsp1: wpf: Fix partition configuration for display pipelines
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 20 Sep 2018 16:54:56 +0000 (17:54 +0100)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 18 Mar 2019 15:23:42 +0000 (17:23 +0200)
commit6ce981b97e6269accab4c54737ac10f4410d0b88
tree46b6bf376282b46d70ec94acfce7af5f03142f20
parenta36c8f53862bcec1f48f6580dfd4399cb8309395
media: vsp1: wpf: Fix partition configuration for display pipelines

When configuring partitions for memory-to-memory pipelines, the WPF
accesses data of the current partition through pipe->partition.
Writeback support will require full configuration of the WPF while not
providing a valid pipe->partition. Rework the configuration code to fall
back to the full image width in that case, as is already done for the
part of the configuration currently relevant for display pipelines.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vsp1/vsp1_wpf.c