]> git.baikalelectronics.ru Git - kernel.git/commit
media: ipu3-cio2: Toggle sensor streaming in pm runtime ops
authorDaniel Scally <djrscally@gmail.com>
Mon, 22 Nov 2021 23:56:11 +0000 (00:56 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 30 Nov 2021 09:47:47 +0000 (10:47 +0100)
commite28050dcb3bd9e53e12c42e19b58d834e130a71b
tree31f0fdb86375f2430b143320ab35ec408f51fe54
parent45d70c13750884392bbbaf76b81297bd9c4a8b51
media: ipu3-cio2: Toggle sensor streaming in pm runtime ops

The .suspend() and .resume() runtime_pm operations for the ipu3-cio2
driver currently do not handle the sensor's stream. Setting .s_stream() on
or off for the sensor subdev means that sensors will pause and resume the
stream at the appropriate time even if their drivers don't implement those
operations.

Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Daniel Scally <djrscally@gmail.com>
Tested-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/intel/ipu3/ipu3-cio2-main.c