media: rcar-vin: Cache the CSI-2 channel selection value
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 15 Oct 2020 23:14:06 +0000 (01:14 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Nov 2020 09:31:10 +0000 (10:31 +0100)
commit43e36a222a33bf9a0ea33f2e3eb1d7881f965ff8
tree1b7c7f6a40e91f0b628b79d25c232486238992e9
parentb83a18cca8924a11eb3317354de30a5a4220aec9
media: rcar-vin: Cache the CSI-2 channel selection value

In preparation of suspend/resume support cache the chsel value when
written to the register so it can be restored on resume if needed.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-vin/rcar-dma.c
drivers/media/platform/rcar-vin/rcar-vin.h