* [PATCH] media: coda: Add system resume interface
@ 2024-12-21 3:14 Xiaolei Wang
2025-01-06 8:15 ` Philipp Zabel
0 siblings, 1 reply; 3+ messages in thread
From: Xiaolei Wang @ 2024-12-21 3:14 UTC (permalink / raw)
To: p.zabel, mchehab; +Cc: xiaolei.wang, linux-media, linux-kernel
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>
---
drivers/media/platform/chips-media/coda/coda-common.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/platform/chips-media/coda/coda-common.c b/drivers/media/platform/chips-media/coda/coda-common.c
index 289a076c3bcc..e6e3f5ec24f6 100644
--- a/drivers/media/platform/chips-media/coda/coda-common.c
+++ b/drivers/media/platform/chips-media/coda/coda-common.c
@@ -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 = {
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] media: coda: Add system resume interface
2024-12-21 3:14 [PATCH] media: coda: Add system resume interface Xiaolei Wang
@ 2025-01-06 8:15 ` Philipp Zabel
2025-02-13 2:17 ` xiaolei wang
0 siblings, 1 reply; 3+ messages in thread
From: Philipp Zabel @ 2025-01-06 8:15 UTC (permalink / raw)
To: Xiaolei Wang, mchehab; +Cc: linux-media, linux-kernel
On Sa, 2024-12-21 at 11:14 +0800, Xiaolei Wang wrote:
> 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>
> ---
> drivers/media/platform/chips-media/coda/coda-common.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/media/platform/chips-media/coda/coda-common.c b/drivers/media/platform/chips-media/coda/coda-common.c
> index 289a076c3bcc..e6e3f5ec24f6 100644
> --- a/drivers/media/platform/chips-media/coda/coda-common.c
> +++ b/drivers/media/platform/chips-media/coda/coda-common.c
> @@ -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 = {
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
regards
Philipp
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] media: coda: Add system resume interface
2025-01-06 8:15 ` Philipp Zabel
@ 2025-02-13 2:17 ` xiaolei wang
0 siblings, 0 replies; 3+ messages in thread
From: xiaolei wang @ 2025-02-13 2:17 UTC (permalink / raw)
To: Philipp Zabel, mchehab; +Cc: linux-media, linux-kernel
On 1/6/25 16:15, Philipp Zabel wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> On Sa, 2024-12-21 at 11:14 +0800, Xiaolei Wang wrote:
>> 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>
>> ---
>> drivers/media/platform/chips-media/coda/coda-common.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/media/platform/chips-media/coda/coda-common.c b/drivers/media/platform/chips-media/coda/coda-common.c
>> index 289a076c3bcc..e6e3f5ec24f6 100644
>> --- a/drivers/media/platform/chips-media/coda/coda-common.c
>> +++ b/drivers/media/platform/chips-media/coda/coda-common.c
>> @@ -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 = {
> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Humble Ping...
thanks
xiaolei
>
> regards
> Philipp
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-02-13 2:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-21 3:14 [PATCH] media: coda: Add system resume interface Xiaolei Wang
2025-01-06 8:15 ` Philipp Zabel
2025-02-13 2:17 ` xiaolei wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®