linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: jassisinghbrar@gmail.com (jassi brar)
To: linux-arm-kernel@lists.infradead.org
Subject: Samsung S3C6410 mainline merge coordination
Date: Thu, 3 Sep 2009 09:38:48 +0900	[thread overview]
Message-ID: <1b68c6790909021738o3037c9dcve6699a7b272f6742@mail.gmail.com> (raw)
In-Reply-To: <20090902144700.GD4012@sirena.org.uk>

On Wed, Sep 2, 2009 at 11:47 PM, Mark Brown<broonie@sirena.org.uk> wrote:
> On Wed, Sep 02, 2009 at 10:44:35PM +0900, jassi brar wrote:
>
>> Yes, none of mainline SMDK supports SoC-Slave mode or sourcing I2S IP with
>> various possible clocks(PCLK, EPLL, CDCLK) etc yet. Samsung tree has
>> implemented
>> and fully tested these features for 6410, 6440 and C100.
>
> There's existing users in mainline with the S3C24xx working as slave,
> including some for which I have hardware so I'm fairly confident that
> that should work.
>
> I've also had reports that the S3C64xx works as slave in mainline, the
> code certainly claims that it should work.

Ofcourse, i can see Neo1973 implement SoC-Slave mode. There is no
reason why some users won't have 6410 running in Slave mode too at
their end.
I recently released one small but essential patch to you to make
wm8580 generate proper clocks -- essential when wm8580 is I2S master
-- that made me doubt if Slave support is even implemented/tested on
SMDKs in mainline.

My plan was to submit something like smdk_wm8580.c (smdks have wm8580
as the main I2S codec) which can be make menuconfig'ed for
SoC-Master/Slave and source clock support.
Plus, some logical re-arrangement of i2s.c code.
How about that?

>> My idea is to submit only "better enabled" I2S driver with Slave support.
> In general it's much better (and certainly standard practice within
> Linux) to enhance and refactor existing drivers incrementally rather
> than provide entirely new drivers.
I didn't exactly mean .c files.

>?The idea is to avoid confusion
> between the variants and issues that can come from replacing one
>set of problems with another.
got it.


>> In the long run, I see I2S drivers segregated by the I2S spec version
>> they implement....
>> S3C2410 has I2S-2.0, S3C6410 has I2S-3.2 and I2S-4.0, S5P6440 has
>> I2S-4.0, S5PC100 has
>> I2S-3.2 and I2S-5.1 and so on. That is, we have something like
>> samsung-i2s_v20.c, samsung-i2s_v32.c,
>> samsung-i2s_v40.c, samsung-i2s_v51.c.
>
> It really depends on how much difference there is between the blocks at
> what point it becomes worth forking a new driver - in many cases the
> newer blocks are close to register compatible with the older ones so
> a forked driver would have more in common with the original driver than
> the differences. ?Where that is the case it makes sense to try to keep
> things together but if conditional code begins to dominate some or
> all of the driver then that suggests forking the relevant bits.
Ofcourse, we shudn't keep 95% identical _v20, _v32, _v40 and _v50.c
For the time being, when our driver doesn't make use of any spec
differentiator, all SoCs can be served with a single file.
But as we implement more and more support to 40 (5.1channel)and 50(5.1
channel + channel mixing) versions, we will need segregation.
Ofcourse, intersection cud always be separated out, as does PXA.
But as i  said - In the long run.
As a starter we cud do by converting Samsung's I2S code 24xx(and even
s3c) agnostic?

  reply	other threads:[~2009-09-03  0:38 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-02  3:17 Samsung S3C6410 mainline merge coordination Harald Welte
2009-09-02  9:51 ` Nelson Castillo
2009-09-02 12:15   ` Harald Welte
2009-09-02 15:58     ` Nelson Castillo
2009-09-02 10:05 ` Mark Brown
2009-09-02 12:11   ` Harald Welte
2009-09-02 13:44     ` jassi brar
2009-09-02 14:47       ` Mark Brown
2009-09-03  0:38         ` jassi brar [this message]
2009-09-03 12:14           ` Mark Brown
2009-09-03 13:39             ` jassi brar
2009-09-03 15:18               ` Mark Brown
2009-09-04  1:08                 ` jassi brar
2009-09-04 13:41                   ` Mark Brown
2009-09-04 14:27                     ` jassi brar
2009-09-04 14:57                       ` Mark Brown
2009-09-04  1:27               ` Samsung SoC ASOC drivers Harald Welte
2009-09-04  4:10                 ` jassi brar
2009-09-02 19:09       ` Samsung S3C6410 mainline merge coordination Ben Dooks
2009-09-03  0:21       ` Joonyoung Shim
2009-09-03 11:06         ` Mark Brown
2009-09-03 12:48           ` Joonyoung Shim
2009-09-02 13:45     ` Mark Brown
2009-09-02 19:22     ` Ben Dooks
     [not found] ` <19987914.1168001251884594226.JavaMail.coremail@bj126app54.126.com>
2009-09-02 12:01   ` Harald Welte
2009-09-02 19:10     ` Ben Dooks
2009-09-02 22:26       ` Harald Welte
2009-09-03  9:51         ` Daniel Silverstone
2009-09-03 10:34           ` Russell King - ARM Linux
2009-09-03 10:40             ` Daniel Silverstone
2009-09-04  5:48           ` Pavel Machek
2009-09-02 12:03 ` David F. Carlson
2009-09-02 12:46   ` Peter Korsgaard
2009-09-02 19:16   ` Ben Dooks
2009-09-03  1:56     ` Harald Welte
2009-09-03 10:04       ` Peter Korsgaard
2009-09-03 10:57       ` Mark Brown
     [not found]     ` <7641737.122161251944382753.JavaMail.coremail@bj126app17.126.com>
2009-09-03  4:31       ` Harald Welte
2009-09-10  5:49   ` Samsung S3C6410 / SmartQ / 2D acceleration / Xorg Harald Welte
2009-09-15 23:34     ` Ben Dooks
2009-09-15  9:49       ` Samsung S3C6410 / SmartQ / 2D acceleration / Xorgy David F. Carlson
2009-09-02 12:49 ` Samsung S3C6410 mainline merge coordination Peter Korsgaard
2009-09-02 22:30   ` Harald Welte
2009-09-02 16:12 ` Ben Dooks
2009-09-02 21:25   ` David F. Carlson
2009-09-02 23:18   ` Harald Welte
2009-09-03  3:31     ` Bill Gatliff
2009-09-03  3:38     ` Nelson Castillo
2009-09-03  4:33       ` Harald Welte
2009-09-04  7:15         ` Nelson Castillo
2009-09-02 16:58 ` Mark Brown
     [not found] <23992600.419641251935757361.JavaMail.weblogic@epml11>
2009-09-03  0:46 ` Harald Welte

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=1b68c6790909021738o3037c9dcve6699a7b272f6742@mail.gmail.com \
    --to=jassisinghbrar@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).