]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: Move atomisp_streaming_count() check into __atomisp_css_recover()
authorHans de Goede <hdegoede@redhat.com>
Sat, 3 Sep 2022 21:36:01 +0000 (23:36 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 08:08:00 +0000 (10:08 +0200)
commit3b786131828dd0574479630d02d7633c19a50170
tree6d66b960c64c960de48551abfd732fae96721470
parent156782dc95ad8cc0a8547d859965fc67e026c735
media: atomisp: Move atomisp_streaming_count() check into __atomisp_css_recover()

Both callers of __atomisp_css_recover() check atomisp_streaming_count()
first, move the check into __atomisp_css_recover().

And __atomisp_css_recover() already calls lockdep_assert_held(&isp->mutex),
so drop that from atomisp_css_flush().

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_cmd.c