Skip to content

Commit 895d3b4

Browse files
bingbucaoHans Verkuil
authored andcommitted
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: [email protected] Fixes: a516d36 ("media: staging/ipu7: add IPU7 input system device driver") Signed-off-by: Bingbu Cao <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent a5925a2 commit 895d3b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/staging/media/ipu7/ipu7-isys-video.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,7 @@ void ipu7_isys_fw_close(struct ipu7_isys *isys)
917917
ipu7_fw_isys_close(isys);
918918

919919
mutex_unlock(&isys->mutex);
920+
pm_runtime_put(&isys->adev->auxdev.dev);
920921
}
921922

922923
int ipu7_isys_setup_video(struct ipu7_isys_video *av,

0 commit comments

Comments
 (0)