mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
media: coda: Add system resume interface
When the system goes into sleep mode, the dependent power will be turned off, so when the system resumes, coda_hw_init() needs to be called, otherwise it will get 'CODA PIC_RUN timeout' after resuming. Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
parent
51f76375e3
commit
1a9dbb4b3d
|
|
@ -3340,6 +3340,7 @@ static int coda_runtime_resume(struct device *dev)
|
|||
|
||||
static const struct dev_pm_ops coda_pm_ops = {
|
||||
SET_RUNTIME_PM_OPS(NULL, coda_runtime_resume, NULL)
|
||||
SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
|
||||
};
|
||||
|
||||
static struct platform_driver coda_driver = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user