]> git.baikalelectronics.ru Git - kernel.git/commit
media: s5p_cec: decrement usage count if disabled
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 28 Apr 2021 07:38:56 +0000 (09:38 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 10 May 2021 09:36:33 +0000 (11:36 +0200)
commit0405defdf1a455435b7da0ec5760bffc1cbfda36
treee1ace1c22fa2cfcbf052baaad47f5ac48980671f
parentb029da21dccff26402e5a036738900785567054e
media: s5p_cec: decrement usage count if disabled

There's a bug at s5p_cec_adap_enable(): if called to
disable the device, it should call pm_runtime_put()
instead of pm_runtime_disable(), as the goal here is to
decrement the usage_count and not to disable PM runtime.

Reported-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Fixes: 35673ce70955 ("[media] cec: s5p-cec: Add s5p-cec driver")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/cec/platform/s5p/s5p_cec.c