All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eduardo Valentin <eduardo.valentin@nokia.com>
To: "Valentin Eduardo (Nokia-D/Helsinki)" <eduardo.valentin@nokia.com>
Cc: ext Hans Verkuil <hverkuil@xs4all.nl>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"Nurkkala Eero.An (EXT-Offcode/Oulu)"
	<ext-Eero.Nurkkala@nokia.com>
Subject: Re: [PATCH v2 0/7] [RFC] FM Transmitter (si4713) and another changes
Date: Wed, 13 May 2009 08:59:02 +0300	[thread overview]
Message-ID: <20090513055901.GK4639@esdhcp037198.research.nokia.com> (raw)
In-Reply-To: <20090512075519.GG4639@esdhcp037198.research.nokia.com>

On Tue, May 12, 2009 at 09:55:19AM +0200, Valentin Eduardo (Nokia-D/Helsinki) wrote:
> > >>
> > >> What sort of platform data do you need to pass to the i2c driver? I have
> > >> yet
> > >> to see a valid use case for this that can't be handled in a different
> > >> way.
> > >> Remember that devices like this are not limited to fixed platforms, but
> > >> can
> > >> also be used in USB or PCI devices.
> > >
> > > Yes, sure. Well, a simple "set_power" procedure is an example of things
> > > that
> > > I see as platform specific. Which may be passed by platform data
> > > structures.
> > > In some platform a set power / reset line may be done by a simple gpio.
> > > but
> > > in others it may be a different procedure.
> > 
> > The v4l2_device struct has a notify callback: you can use that one
> > instead. That way the subdev driver doesn't have to have any knowledge
> > about the platform it is used in.
> 
> Right. I see. But in that case the brigde driver would be bound to
> a board specific? For instance of this very driver, I wrote a platform
> driver just to make its radio interface. But I don't think it is a good
> idea to bound the platform driver to a board specific creating a notification
> handler just to set the power of the i2c chip. I see this procedure as a board
> specific thing. As well as the IRQ line for instance. That configuration is
> also board specific. Which is usually passed using i2c board info. Correct me
> if I'm wrong.

Even though I still can pass board specific to the platform driver using
its platform data and then use the notify callback of v4l2_device, I still
will miss the configuration for IRQ line. I don't see how to pass that to
the i2c subdev by using the current helper functions.

> 
> > 
> > Regards,
> > 
> >         Hans
> > 
> > -- 
> > Hans Verkuil - video4linux developer - sponsored by TANDBERG
> 
> -- 
> Eduardo Valentin

-- 
Eduardo Valentin

  reply	other threads:[~2009-05-13  6:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-12  7:50 [PATCH v2 0/7] [RFC] FM Transmitter (si4713) and another changes Hans Verkuil
2009-05-12  7:55 ` Eduardo Valentin
2009-05-13  5:59   ` Eduardo Valentin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-05-11  9:31 Eduardo Valentin
2009-05-12  7:03 ` Hans Verkuil
2009-05-12  7:33   ` Eduardo Valentin
2009-05-12  7:35     ` 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=20090513055901.GK4639@esdhcp037198.research.nokia.com \
    --to=eduardo.valentin@nokia.com \
    --cc=ext-Eero.Nurkkala@nokia.com \
    --cc=hverkuil@xs4all.nl \
    --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.