From: "Zhi Mao (毛智)" <zhi.mao@mediatek.com>
To: "matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"mchehab@kernel.org" <mchehab@kernel.org>,
"sakari.ailus@linux.intel.com" <sakari.ailus@linux.intel.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"yunkec@chromium.org" <yunkec@chromium.org>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
"Shengnan Wang (王圣男)" <shengnan.wang@mediatek.com>,
"Yaya Chang (張雅清)" <Yaya.Chang@mediatek.com>,
"10572168@qq.com" <10572168@qq.com>,
"Teddy Chen (陳乾元)" <Teddy.Chen@mediatek.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"Xiaofeiw Wang (王小飞)" <ot_xiaofeiw.wang@mediatek.com>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>
Subject: Re: [PATCH] media: i2c: improve suspend/resume switch performance for GT9769 VCM driver
Date: Thu, 19 Sep 2024 08:10:22 +0000 [thread overview]
Message-ID: <40de250a3a516110119e451251bf7b5e9a76818d.camel@mediatek.com> (raw)
In-Reply-To: <20240831055328.22482-1-zhi.mao@mediatek.com>
ping...
On Sat, 2024-08-31 at 13:52 +0800, Zhi Mao wrote:
> Chromebook camera AP can switch between video and photo mode,
> the behavior corresponding to VCM is suspend and resume,
> it will cause camera preview is not smooth during switching
> operation.
> We use autosuspend function can fix this issue.
>
> Signed-off-by: Zhi Mao <zhi.mao@mediatek.com>
> ---
> drivers/media/i2c/dw9768.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/media/i2c/dw9768.c b/drivers/media/i2c/dw9768.c
> index 18ef2b35c9aa..7449d29df901 100644
> --- a/drivers/media/i2c/dw9768.c
> +++ b/drivers/media/i2c/dw9768.c
> @@ -374,7 +374,7 @@ static int dw9768_open(struct v4l2_subdev *sd,
> struct v4l2_subdev_fh *fh)
>
> static int dw9768_close(struct v4l2_subdev *sd, struct
> v4l2_subdev_fh *fh)
> {
> - pm_runtime_put(sd->dev);
> + pm_runtime_put_sync_autosuspend(sd->dev);
>
> return 0;
> }
> @@ -490,6 +490,7 @@ static int dw9768_probe(struct i2c_client
> *client)
> goto err_power_off;
> }
>
> + pm_runtime_use_autosuspend(dev);
> pm_runtime_idle(dev);
>
> return 0;
next prev parent reply other threads:[~2024-09-19 8:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-31 5:52 Zhi Mao
2024-09-19 8:10 ` Zhi Mao (毛智) [this message]
2024-09-23 9:07 ` Fei Shao
2024-10-12 3:34 ` Zhi Mao (毛智)
-- strict thread matches above, loose matches on Subject: below --
2024-08-17 7:34 Zhi Mao
2024-08-28 7:51 ` Sakari Ailus
2024-08-31 5:59 ` Zhi Mao (毛智)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40de250a3a516110119e451251bf7b5e9a76818d.camel@mediatek.com \
--to=zhi.mao@mediatek.com \
--cc=10572168@qq.com \
--cc=Teddy.Chen@mediatek.com \
--cc=Yaya.Chang@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=mchehab@kernel.org \
--cc=ot_xiaofeiw.wang@mediatek.com \
--cc=sakari.ailus@linux.intel.com \
--cc=shengnan.wang@mediatek.com \
--cc=yunkec@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®