From: Jarkko Nikula <jhnikula@gmail.com>
To: eduardo.valentin@nokia.com
Cc: "linux-media@vger.kernel.org" <linux-media@vger.kernel.org>
Subject: Re: [PATCH 2/2] V4L/DVB: radio-si4713: Add regulator framework support
Date: Wed, 8 Sep 2010 08:59:38 +0300 [thread overview]
Message-ID: <20100908085938.2d2e5992.jhnikula@gmail.com> (raw)
In-Reply-To: <20100907194949.GA15216@besouro.research.nokia.com>
Hi
On Tue, 7 Sep 2010 22:49:49 +0300
Eduardo Valentin <eduardo.valentin@nokia.com> wrote:
> Hello Jarkko,
>
> On Sun, Jun 13, 2010 at 08:09:28PM +0200, Jarkko Nikula wrote:
> > Convert the driver to use regulator framework instead of set_power callback.
> > This with gpio_reset platform data provide cleaner way to manage chip VIO,
> > VDD and reset signal inside the driver.
> >
> > Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
> > Cc: Eduardo Valentin <eduardo.valentin@nokia.com>
> > ---
> > I don't have specifications for this chip so I don't know how long the
> > reset signal must be active after power-up. I used 50 us from Maemo
> > kernel sources for Nokia N900 and I can successfully enable-disable
> > transmitter on N900 with vdd power cycling.
> > ---
> > drivers/media/radio/radio-si4713.c | 20 ++++++++++++++-
> > drivers/media/radio/si4713-i2c.c | 48 ++++++++++++++++++++++++++++-------
> > drivers/media/radio/si4713-i2c.h | 3 +-
> > include/media/si4713.h | 3 +-
>
> Could you please elaborate a bit more on the fact that you have put vio on
> the platform driver and vdd on the i2c driver?
>
This is good question and let me explain. The regulator management
division between these two files were based on my assumption that only
VIO is needed and must be on before probing the chip on I2C bus.
Another assumption was that only VDD can realistically be managed
runtime in si4713_powerup function. I think usually IO voltages cannot
be shutdown even in suspend while the system is powered so I let the
driver to keep the VIO enabled as long as the module is loaded.
--
Jarkko
next prev parent reply other threads:[~2010-09-08 5:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-13 18:09 [PATCH 1/2] V4L/DVB: radio-si4713: Release i2c adapter in driver cleanup paths Jarkko Nikula
2010-06-13 18:09 ` [PATCH 2/2] V4L/DVB: radio-si4713: Add regulator framework support Jarkko Nikula
2010-06-29 6:32 ` Jarkko Nikula
2010-09-07 19:49 ` Eduardo Valentin
2010-09-08 5:59 ` Jarkko Nikula [this message]
2010-09-08 12:11 ` Eduardo Valentin
2010-09-08 13:00 ` Jarkko Nikula
2010-07-05 19:28 ` [PATCH 1/2] V4L/DVB: radio-si4713: Release i2c adapter in driver cleanup paths Mauro Carvalho Chehab
2010-08-02 10:09 ` Jarkko Nikula
2010-08-23 10:50 ` Jarkko Nikula
2010-09-07 19:15 ` Eduardo Valentin
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=20100908085938.2d2e5992.jhnikula@gmail.com \
--to=jhnikula@gmail.com \
--cc=eduardo.valentin@nokia.com \
--cc=linux-media@vger.kernel.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 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.