From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
linux-pm@lists.linux-foundation.org,
Linux Media Mailing List <linux-media@vger.kernel.org>,
Valentin Longchamp <valentin.longchamp@epfl.ch>
Subject: Re: [PATCH/RESEND] soc-camera: add runtime pm support for subdevices
Date: Tue, 09 Feb 2010 13:10:11 -0200 [thread overview]
Message-ID: <4B717AD3.4050500@redhat.com> (raw)
In-Reply-To: <0c196b926b744e04a94850d4d3b1e029.squirrel@webmail.xs4all.nl>
Hans Verkuil wrote:
>> Hans Verkuil wrote:
>>> But if you have ideas to improve the core to make it easier to add pm
>>> support to the drivers that need it, then I am all for it.
>> IMO, the runtime pm should be supported at V4L core, but some callbacks
>> are
>> needed. Also, I can see some classes of PM at the core:
>>
>> TV standard demod and sensors only need to be powerup when streaming.
>
> Definitely not the demod: that's generally used to detect whether there is
> a TV signal and what audio format is used. You want that also when not
> streaming. I guess it can be powered down though when no files are open.
This is device-specific: on some devices, the tuner provides the info (and
even decode the audio carrier). Also, on some modes (e. g. radio), the demod
may be turned off.
>> So, I think that we'll need some callbacks to the drivers, in order to do
>> the
>> power management on the applicable components. The final action should be
>> at
>> the driver level, but supported by the core.
>
> I guess the essential information is:
>
> 1) is someone using the driver (i.e. is a device node open, which is not
> necessarily limited to v4l2-type device nodes)?
> 2) are we actively streaming from or to some particular input or output?
>
> And we probably need some easy way to detect and set the powersaving state
> for each component (subdev or the main v4l2_device).
krefs can be a good alternative to check device usage and enable powersaving,
but we'll need some callbacks to save/restore chip register values per dev/subdev.
>
> I really need to research the pm stuff...
>
> Regards,
>
> Hans
>
>>> Regards,
>>>
>>> Hans
>>>
>>>> Thanks
>>>> Guennadi
>>>> ---
>>>> Guennadi Liakhovetski, Ph.D.
>>>> Freelance Open-Source Software Developer
>>>> http://www.open-technology.de/
>>>>
>>>
>>
>> --
>>
>> Cheers,
>> Mauro
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-media" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>
>
--
Cheers,
Mauro
next prev parent reply other threads:[~2010-02-09 15:10 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-08 9:50 [PATCH/RESEND] soc-camera: add runtime pm support for subdevices Guennadi Liakhovetski
2010-02-08 13:34 ` Mauro Carvalho Chehab
2010-02-08 14:06 ` Guennadi Liakhovetski
2010-02-08 18:04 ` Mauro Carvalho Chehab
2010-02-09 10:27 ` Guennadi Liakhovetski
2010-02-09 11:22 ` Hans Verkuil
2010-02-09 12:02 ` Guennadi Liakhovetski
2010-02-09 12:13 ` Hans Verkuil
2010-02-09 12:44 ` Guennadi Liakhovetski
2010-02-09 13:02 ` Mauro Carvalho Chehab
2010-02-09 14:37 ` Hans Verkuil
2010-02-09 15:10 ` Mauro Carvalho Chehab [this message]
2010-02-09 15:50 ` Guennadi Liakhovetski
2010-02-08 22:10 ` [linux-pm] " Rafael J. Wysocki
2010-02-09 8:12 ` Guennadi Liakhovetski
2010-02-09 15:18 ` Alan Stern
2010-02-09 15:42 ` Guennadi Liakhovetski
2010-02-09 16:24 ` Alan Stern
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=4B717AD3.4050500@redhat.com \
--to=mchehab@redhat.com \
--cc=g.liakhovetski@gmx.de \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=valentin.longchamp@epfl.ch \
/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