OSDN Git Service

media: rcar-vin: Break out hardware start and stop to new methods
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 15 Oct 2020 23:14:07 +0000 (01:14 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Nov 2020 09:31:10 +0000 (10:31 +0100)
commit63a71dd813e207b3df6adf45757e864aa7f3364e
tree701668947dc9142d40360e0d5121b4ff9d96bec7
parent43e36a222a33bf9a0ea33f2e3eb1d7881f965ff8
media: rcar-vin: Break out hardware start and stop to new methods

To support suspend and resume the ability to start and stop the hardware
needs to be available internally in the driver. Currently this code is
in the start and stop callbacks of the vb2_ops struct. In these
callbacks the code is intertwined with buffer allocation and freeing.

Prepare for suspend and resume support by breaking out the hardware
start/stop code into new methods.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
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