From: "Andrew F. Davis" <afd@ti.com>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, Liam Girdwood <lgirdwood@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH 1/3] ASoC: Add platforms directory
Date: Wed, 6 Dec 2017 12:49:39 -0600 [thread overview]
Message-ID: <d531a2c5-94d9-aa6f-dc6e-aeb22f70d746@ti.com> (raw)
In-Reply-To: <20171206184219.fhhohxdihsm33kf6@sirena.org.uk>
On 12/06/2017 12:42 PM, Mark Brown wrote:
> On Wed, Dec 06, 2017 at 12:13:22PM -0600, Andrew F. Davis wrote:
>> On 12/06/2017 11:29 AM, Mark Brown wrote:
>
>>> Machine and drivers for SoC internal stuff tend to be bound fairly
>>> closely together, simiarly the various drivers for an IP on a SoC often
>>> know things about each other for various reasons.
>
>> This is the problem, we don't want them to be so tightly bound, and
>> luckily, for the most part they are not. Even a complex and history rich
>> platform like OMAP was rather trivial to split from its various machine
>> drivers.
>
> Anything new that can is already getting pushed into using the existing
> generic cards. New machine drivers are only for things where that's not
> possible.
>
>>> What I am saying is that they go together very closely. Moving the code
>>> around isn't going to change that.
>
>> Not at first, but this partition will discourage future machine-platform
>> mash-ups (like omap-hdmi-audio.c, yuck).
>
> It's not a pressing problem.
>
>> My end-goal here is to start trimming the needed machine drivers and
>> replacing them with generics, a couple OMAP machine drivers do nothing
>> that couldn't be done with the "asoc-simple-card" driver. With the
>> machine drivers split out form the platform drivers it becomes easier to
>> target them.
>
> We need to preserve old bindings to ensure DT compatiblity, the easiest
> way to do that is to keep old machine drivers around. There are plenty
> of older drivers that wouldn't be accepted now but would at least need
> replacing with a compatibility layer that adapts the bindings onto one
> of the generic drivers. That adaption layer would definitely be useful
> (basically a big table of platform data) but it'd take time to implement
> it.
>
We then should at least start depreciating them now so that someday we
can drop that stuff. Isolating them would be the first step.
>> I don't have any need to group the TI platforms (Davinci / OMAP) right
>> now, but I *have* been thinking about grouping the TI CODECs, they share
>> a lot of code that could be factored out if they were stored in their
>> own space sound/soc/codecs/ti/. Plus it would make it easy to add myself
>
> You can share code easily enough without moving anything, just make a
> library like the arizona drivers did.
>
The lack of organization bugs me, this is why directories exist.
>> as a reviewer for them (I seem to be getting a lot of internal support
>> requests for these drivers these days). That can be a re-org for another
>> day, unless you would like me to post an RFC with what I had in mind?
>
> Wouldn't a few regexps in the MAINTAINERS file cover it? We've already
> got a bunch of vendors doing this.
>
pcm*
tas*
tlv*
twl*
It's messy how many prefixes we have :/
>>> If we were going to do this reshuffling then we *really* shouldn't be
>>> doing it randomly for only a few vendors. Doing it inconsistently is
>>> not going to make anything clearer.
>
>> I can send patches for rest of the vendors if you would like to see that
>> and what the end result would look like.
>
> I'm not convinced this is a good idea.
>
next prev parent reply other threads:[~2017-12-06 18:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-05 18:14 [RFC PATCH 0/3] Add ASoC platforms directory Andrew F. Davis
2017-12-05 18:14 ` [RFC PATCH 1/3] ASoC: Add " Andrew F. Davis
2017-12-06 12:39 ` Mark Brown
2017-12-06 16:06 ` Andrew F. Davis
2017-12-06 17:29 ` Mark Brown
2017-12-06 18:13 ` Andrew F. Davis
2017-12-06 18:42 ` Mark Brown
2017-12-06 18:49 ` Andrew F. Davis [this message]
2017-12-06 19:27 ` Mark Brown
2017-12-06 20:59 ` Andrew F. Davis
2017-12-05 18:14 ` [RFC PATCH 2/3] ASoC: Platforms: Move Davinci platform drivers into " Andrew F. Davis
2017-12-05 18:14 ` [RFC PATCH 3/3] ASoC: Platforms: Move OMAP " Andrew F. Davis
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=d531a2c5-94d9-aa6f-dc6e-aeb22f70d746@ti.com \
--to=afd@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox