From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH 1/1] as3645a: Remove set_power() from platform data
Date: Mon, 04 Nov 2013 15:26:18 +0100 [thread overview]
Message-ID: <153733006.kznvhivZ59@avalon> (raw)
In-Reply-To: <20131102214302.GA21655@valkosipuli.retiisi.org.uk>
Hi Sakari,
On Saturday 02 November 2013 23:43:02 Sakari Ailus wrote:
> On Wed, May 23, 2012 at 03:06:41PM +0300, Sakari Ailus wrote:
> > On Wed, May 23, 2012 at 01:31:26PM +0200, Laurent Pinchart wrote:
> > > Hi Sakari,
> >
> > ...
> >
> > > > > If the chip is powered on constantly, why do we need a .s_power()
> > > > > subdev
> > > > > operation at all ?
> > > >
> > > > I don't know why was it there in the first place. Probably to make it
> > > > easier to use the driver on boards that required e.g. a regulator for
> > > > the chip.
> > > >
> > > > But typically they're connected to battery directly. The idle power
> > > > consumption is just some tens of µA.
> > >
> > > What about on the N9 ?
> >
> > That function pointer is NULL for N9. I used to configure the GPIOs but
> > that was wrong in the first place.
>
> Ping.
>
> Should we either remove the s_power() callback altogether or just the
> platform data callback function (which is unused)?
>
> It is indeed possible that the device was powered from a regulator which
> isn't always on but we don't have such use cases right now.
I would remove the platform callback only. The s_power() function currently
turns the torch when called to disable power, which is a sane thing to do.
Your patch moves that to the call sites, but I believe it would be easier to
keep the current __as3645a_set_power() function, especially if we later need
to add support for regulators. Would that be fine with you ?
--
Regards,
Laurent Pinchart
prev parent reply other threads:[~2013-11-04 14:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-16 3:12 [PATCH 1/1] as3645a: Remove set_power() from platform data Sakari Ailus
2012-05-23 11:00 ` Laurent Pinchart
2012-05-23 11:19 ` Sakari Ailus
2012-05-23 11:31 ` Laurent Pinchart
2012-05-23 12:06 ` Sakari Ailus
2013-11-02 21:43 ` Sakari Ailus
2013-11-04 14:26 ` Laurent Pinchart [this message]
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=153733006.kznvhivZ59@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=sakari.ailus@iki.fi \
/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