OSDN Git Service

media: ti-vpe: cal: use runtime_resume for errata handling
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 25 Mar 2020 12:14:55 +0000 (13:14 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 14 Apr 2020 10:46:34 +0000 (12:46 +0200)
commitb6959ca031ab6a86a86947f4ce495b07b03ea22e
treee82d9cb9009f33fafe24261a423b2523cc8c04ff
parent29decd21bb16c4b482ec5b211a50ae545700f823
media: ti-vpe: cal: use runtime_resume for errata handling

We need to do errata handling every time CAL is being enabled. The code
is currently in cal_runtime_get(), which is not the correct place for
it.

Move the code to cal_runtime_resume, which is called every time CAL is
enabled.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/ti-vpe/cal.c