]> git.baikalelectronics.ru Git - kernel.git/commit
media: staging: rkisp1: cap: fix return values from pm functions
authorHelen Koike <helen.koike@collabora.com>
Mon, 16 Mar 2020 21:00:43 +0000 (22:00 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 21 Apr 2020 15:01:30 +0000 (17:01 +0200)
commit6ecb534eda74705bc343c00413a0a066867103e0
treeb888abcc3012eb51655995426d5474c3b801f026
parentb64eb62ce9c4ebf5d461485d9e36a9917ee20a37
media: staging: rkisp1: cap: fix return values from pm functions

If no errors occurs, pm functions return usage counters, so they can
return positive numbers.
This happens when streaming from multiple capture devices (mainpath and
selfpath).

Fix simultaneous streaming from mainpath and selfpath by not failing
when pm usage counters returns a positive number.

Signed-off-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/rkisp1/rkisp1-capture.c