public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: t.figa@samsung.com (Tomasz Figa)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V2 2/8] ASoC: Samsung: I2S: Add quirks as driver data in I2S
Date: Fri, 26 Jul 2013 17:02:46 +0200	[thread overview]
Message-ID: <1417636.4d7IlsSAyI@amdc1227> (raw)
In-Reply-To: <20130726145319.GI9858@sirena.org.uk>

On Friday 26 of July 2013 15:53:19 Mark Brown wrote:
> On Fri, Jul 26, 2013 at 07:06:46PM +0530, Padmavathi Venna wrote:
> > Samsung has different versions of I2S introduced in different
> > platforms. Each version has some new support added for multichannel,
> > secondary fifo, s/w reset control and internal mux for rclk src clk.
> > Each newly added change has a quirk. So this patch adds all the
> > required quirks as driver data and based on compatible string from
> > dtsi fetches the quirks.
> 
> As Russell indicated you should really keep the old name around, though
> marking them as deprecated is OK.  However I'm not sure anyone will have
> deployed this so I'm not sure how much it matters - every downstream
> kernel I've seen was still using board files anyway.
> 
> The actual meat of the patch changing to a quirk scheme does look good,
> though.
> 
> > -- compatible : "samsung,i2s-v5"
> > +- compatible : should be one of the following.
> > +   - samsung,s3c6410-i2s: for 8/16/24bit stereo I2S. Previous versions
> > +     has only 8/16bit support.
> > +   - samsung,s3c6410-i2sv4: for 8/16/24bit multichannel(5.1 channel)
> > I2S. +     Introduced in s3c6410. This also applicable for s5p64x0
> > platforms. +   - samsung,s5pc100-i2s: for 8/16/24bit multichannel(5.1
> > channel) I2S +     with secondary fifo and s/w reset control.
> > +   - samsung,s5pv210-i2s: for 8/16/24bit multichannel(5.1) I2S with
> > +     secondary fifo, s/w reset control and internal mux for root clk
> > src. +
> 
> I think the -vN naming scheme was fine - I see where this came from but
> the main point was about having things identified by a string not
> switching the naming scheme.  As you can see from the s3c6410 stuff the
> SoC isn't that helpful as a naming scheme as multiple IP versions appear
> on the same SoC.

IMHO this SoC-based identification looks much better, especially considering 
the fact that IP version isn't something easily determinable, as even the 
documentation can sometimes be not really clear about that.

However the s3c6410-i2sv4 string looks a bit unfortunate. AFAIK there were 
two types of I2S IPs on S3C6410 - normal I2S and I2S multichannel. What 
about having a compatible like s3c6410-i2s-multi?

Best regards,
Tomasz

  reply	other threads:[~2013-07-26 15:02 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-26 13:36 [PATCH V2 0/8] Add audio support on smdk5420 Padmavathi Venna
2013-07-26 13:36 ` [PATCH V2 1/8] platform: Increase platform name size Padmavathi Venna
2013-07-26 14:36   ` Sachin Kamat
2013-07-27  1:13     ` Padma Venkat
2013-07-26 13:36 ` [PATCH V2 2/8] ASoC: Samsung: I2S: Add quirks as driver data in I2S Padmavathi Venna
2013-07-26 14:06   ` Russell King - ARM Linux
2013-07-26 14:21     ` Tomasz Figa
2013-07-26 14:27       ` Russell King - ARM Linux
2013-07-26 14:37         ` Tomasz Figa
2013-07-26 14:53   ` Mark Brown
2013-07-26 15:02     ` Tomasz Figa [this message]
2013-07-26 15:25       ` Mark Brown
2013-07-27 11:56         ` Tomasz Figa
2013-07-27  1:08     ` Padma Venkat
2013-07-27 11:50       ` Mark Brown
2013-07-26 13:36 ` [PATCH V2 3/8] ARM: dts: Change i2s compatible string on exynos5250 Padmavathi Venna
2013-07-26 13:36 ` [PATCH V2 4/8] ASoC: Samsung: I2S: Modify driver to give more flexibility Padmavathi Venna
2013-07-26 15:05   ` Mark Brown
2013-07-26 13:36 ` [PATCH V2 5/8] ASoC: Samsung: I2S: Modify the I2S driver to support I2S on Exynos5420 Padmavathi Venna
2013-07-26 13:36 ` [PATCH V2 6/8] ARM: dts: exynos5420: add i2s controllers Padmavathi Venna
2013-08-02  6:32   ` sunil joshi
2013-07-26 13:36 ` [PATCH V2 7/8] ARM: dts: wm8994: Add wm8994 support on smdk5420 Padmavathi Venna
2013-07-26 15:19   ` Mark Brown
2013-07-27  1:16     ` Padma Venkat
2013-07-29 12:01       ` Padma Venkat
2013-07-29 13:43         ` Mark Brown
2013-07-30  3:28           ` Padma Venkat
2013-08-02 10:45             ` Padma Venkat
2013-08-04 17:22               ` Mark Brown
2013-07-26 13:36 ` [PATCH V2 8/8] ARM: dts: Enable sound " Padmavathi Venna
2013-07-26 14:22 ` [PATCH V2 0/8] Add audio " Tomasz Figa
2013-07-27  1:09   ` Padma Venkat

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=1417636.4d7IlsSAyI@amdc1227 \
    --to=t.figa@samsung.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