public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Mark Brown <broonie@sirena.org.uk>
Cc: Jarkko Nikula <jarkko.nikula@nokia.com>,
	"Stanley.Miao" <stanley.miao@windriver.com>,
	alsa-devel@alsa-project.org, linux-omap@vger.kernel.org
Subject: Re: [PATCH] OMAP general SOC driver.
Date: Wed, 26 Nov 2008 12:44:33 -0800	[thread overview]
Message-ID: <200811261244.33631.david-b@pacbell.net> (raw)
In-Reply-To: <20081126200750.GK6234@sirena.org.uk>

On Wednesday 26 November 2008, Mark Brown wrote:
> > I'm told that the ASoC stuff "should" go in a separate ASoC
> > area for some reason.  That still makes no good sense to me,
> > so if there's a brief explanation as to why it's done that
> > way, please fling me a URL.  :)
> 
> The move is in the direction you want but we're not there yet.  The fact
> that things are now decomposed enough for us to be able to think about
> it is a good sign here.
> 
> The biggest part of it is that the degree of coupling between the
> various ASoC components is high - this is particularly obvious with v1
> where the entire card is probed at once.  This includes coupling between
> the drivers and the core where the degree of churn is very high right
> now due to v2 merging.  It doesn't feel right to give architectures an
> API that they can't rely on from one merge window to the next yet,

OK, that seems to be the key point.  And it makes a lot of sense;
I wouldn't call the driver structure here "simple", so it deserves
some iteration on multiple disparate hardware platforms just to make
sure the interfaces is adequate to the problem.

Let me insert a minor plug from the PM perspective that it would be
good to find a way that the codecs can sit in the proper places in
the driver model tree.  Example with twl4030:  it's an I2C device
and thus should be a child of something like

   /sys/devices/platform/i2c_omap.1/i2c-adapter/i2c-1/1-0049

to guarantee that for example nothing touches that codec after its
parent I2C controller gets suspended.

- Dave


> partly from the point of view of isolating the code for review purposes
> and also due to the merge issues which would doubtless crop up.
> 
> Another part of it is that some machine drivers can get involved enough
> to sit on or cross the boundary from platform data to being drivers for
> substantial distinct hardware but that's very much not the case for
> everything.
> 
> I've been spending time this week working on getting the ability to load
> platform and codec drivers independantly merged.  That will at least
> allow the instantiation of the ASoC drivers for those to be pushed out
> into the architecture code, which is a start and should substantially
> reduce the size of most machine drivers.  At the point where that's been
> done it's probably worth looking again at the simpler machine drivers.
> 


--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2008-11-26 20:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-26 10:47 [PATCH] OMAP general SOC driver Stanley.Miao
2008-11-26 11:08 ` Mark Brown
2008-11-26 11:40   ` Jarkko Nikula
2008-11-26 18:34     ` David Brownell
2008-11-26 20:07       ` Mark Brown
2008-11-26 20:20         ` Koen Kooi
2008-11-27  5:01           ` Arun KS
     [not found]           ` <6ed0b2680811270242i1b857f13i9494826f6089bf15@mail.gmail.com>
2008-11-27 12:36             ` Mark Brown
2008-11-26 20:33         ` David Brownell
2008-11-26 21:16           ` Mark Brown
2008-11-26 22:03             ` David Brownell
2008-11-27 12:39             ` stanley.miao
2008-11-26 20:44         ` David Brownell [this message]
2008-11-26 21:22           ` Mark Brown
2008-11-26 17:24   ` Steve Sakoman
2008-11-26 17:29     ` [alsa-devel] " Mark Brown
2008-11-26 15:53 ` Tony Lindgren

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=200811261244.33631.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@sirena.org.uk \
    --cc=jarkko.nikula@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=stanley.miao@windriver.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox