media: staging/ipu7: fix isys device runtime PM usage in firmware closing
The PM usage counter of isys was bumped up when start camera stream
(opening firmware) but it was not dropped after stream stop(closing
firmware), it forbids system fail to suspend due to the wrong PM state
of ISYS. This patch drop the PM usage counter in firmware close to fix
it.
Cc: Stable@vger.kernel.org
Fixes: a516d36bdc
("media: staging/ipu7: add IPU7 input system device driver")
Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
a5925a2ce0
commit
895d3b4b58
|
@ -917,6 +917,7 @@ void ipu7_isys_fw_close(struct ipu7_isys *isys)
|
|||
ipu7_fw_isys_close(isys);
|
||||
|
||||
mutex_unlock(&isys->mutex);
|
||||
pm_runtime_put(&isys->adev->auxdev.dev);
|
||||
}
|
||||
|
||||
int ipu7_isys_setup_video(struct ipu7_isys_video *av,
|
||||
|
|
Loading…
Reference in New Issue