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)
commit79b15b4b82013d73e8702d65470419ecbfc7a7b5
tree46b6bf376282b46d70ec94acfce7af5f03142f20
parent437c24dd19b88898557c51c23c84122f236c9371
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