All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Linux Media Mailing List <linux-media@vger.kernel.org>,
	Tomasz Stanislawski <t.stanislaws@samsung.com>
Subject: Re: [RFC] subdevice PM: .s_power() deprecation?
Date: Sun, 23 Oct 2011 11:01:15 +0200	[thread overview]
Message-ID: <4EA3D7DB.4000908@gmail.com> (raw)
In-Reply-To: <4EA3D3F8.907@iki.fi>

On 10/23/2011 10:44 AM, Sakari Ailus wrote:
> Sylwester Nawrocki wrote:
...
>>>> 2. In some of our camera pipeline setups - "Sensor - MIPI-CSI receiver - host/DMA",
>>>>    the sensor won't boot properly if all MIPI-CSI regulators aren't enabled. So the
>>>>    MIPI-CSI receiver must always be powered on before the sensor. With the subdevs
>>>>    doing their own magic wrt to power control the situation is getting slightly
>>>>    out of control.
>>>
>>> How about this: CSI-2 receiver implements a few new regulators which the
>>> sensor driver then requests to be enabled. Would that work for you?
>>
>> No, I don't like that... :)
>>
>> We would have to standardize the regulator supply names, etc. Such approach
>> would be more difficult to align with runtime/system suspend/resume.
>> Also the sensor drivers should be independent on other drivers. The MIPI-CSI
>> receiver is more specific to the host, rather than a sensor.
>>
>> Not all sensors need MIPI-CSI, some just use parallel video bus.
> 
> The sensor drivers are responsible for the regulators they want to use,
> right? If they need no CSI-2 related regulators then they just ignore

Only for the regulator supplies for their device. In this case the sensor
driver would have to touch MIPI-CSI device regulator supplies.

> them as any other regulators the sensor doesn't need.
> 
> The names of the regulators could come from the platform data, they're
> board specific anyway. I can't see another way to do this without having

No, you don't want regulator supply names in any platform data struct.
The platform code binds regulator supplies to the devices, whether it is DT
based or not.

> platform code to do this which is not quite compatible with the idea of
> the device tree.

Now I just use s_power callback in our drivers and it all works well.

--
Regards,
Sylwester

  reply	other threads:[~2011-10-23  9:01 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-03 10:57 [RFC] subdevice PM: .s_power() deprecation? Guennadi Liakhovetski
2011-10-08 21:36 ` Sakari Ailus
2011-10-17  8:06   ` Guennadi Liakhovetski
2011-10-17 12:12     ` Laurent Pinchart
2011-10-17 12:37       ` Guennadi Liakhovetski
2011-10-17 12:59     ` Sylwester Nawrocki
2011-10-17 13:49       ` Guennadi Liakhovetski
2011-10-17 15:15         ` Sylwester Nawrocki
2011-10-17 15:23           ` Guennadi Liakhovetski
2011-10-17 21:26             ` Sylwester Nawrocki
2011-10-17 23:07               ` Laurent Pinchart
2011-10-18 21:10                 ` Sylwester Nawrocki
2011-10-18 21:38                   ` Guennadi Liakhovetski
2011-10-19 20:56                     ` Sylwester Nawrocki
2011-10-23  8:07                       ` Sakari Ailus
2011-10-23  8:35                         ` Sylwester Nawrocki
2011-10-23  8:44                           ` Sakari Ailus
2011-10-23  9:01                             ` Sylwester Nawrocki [this message]
2011-10-23  9:26                               ` Laurent Pinchart
2011-10-23  9:53                                 ` Sylwester Nawrocki
2011-10-20  9:45                     ` Laurent Pinchart

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=4EA3D7DB.4000908@gmail.com \
    --to=sylvester.nawrocki@gmail.com \
    --cc=g.liakhovetski@gmx.de \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=sakari.ailus@iki.fi \
    --cc=t.stanislaws@samsung.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.