linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 02/10] S3C64XX I2S: declared i2s_v4
@ 2009-09-15 10:02 Jassi
  2009-09-16  0:12 ` Ben Dooks
  2009-09-16 18:49 ` Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Jassi @ 2009-09-15 10:02 UTC (permalink / raw)
  To: linux-arm-kernel

For now, I2S-v4 is simply enumerated as third I2S controller of S3C6410
rather than a special device.
Also, Declared I2S-v4 device for SMDK6410.

Signed-Off-by: Jassi <jassi.brar@samsung.com>
---
 arch/arm/mach-s3c6410/mach-smdk6410.c |    1 +
 arch/arm/plat-s3c/dev-audio.c         |    6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-s3c6410/mach-smdk6410.c b/arch/arm/mach-s3c6410/mach-smdk6410.c
index bc9a7de..108ba37 100644
--- a/arch/arm/mach-s3c6410/mach-smdk6410.c
+++ b/arch/arm/mach-s3c6410/mach-smdk6410.c
@@ -181,6 +181,7 @@ static struct platform_device *smdk6410_devices[] __initdata = {
 #endif
 	&s3c_device_i2c0,
 	&s3c_device_i2c1,
+	&s3c64xx_device_iisv4,
 	&s3c_device_fb,
 	&s3c_device_usb,
 	&s3c_device_usb_hsotg,
diff --git a/arch/arm/plat-s3c/dev-audio.c b/arch/arm/plat-s3c/dev-audio.c
index 1322beb..28c030c 100644
--- a/arch/arm/plat-s3c/dev-audio.c
+++ b/arch/arm/plat-s3c/dev-audio.c
@@ -51,6 +51,7 @@ struct platform_device s3c64xx_device_iis1 = {
 };
 EXPORT_SYMBOL(s3c64xx_device_iis1);
 
+#ifdef CONFIG_CPU_S3C6410
 static struct resource s3c64xx_iisv4_resource[] = {
 	[0] = {
 		.start = S3C64XX_PA_IISV4,
@@ -60,9 +61,10 @@ static struct resource s3c64xx_iisv4_resource[] = {
 };
 
 struct platform_device s3c64xx_device_iisv4 = {
-	.name		  = "s3c64xx-iis-v4",
-	.id		  = -1,
+	.name		  = "s3c64xx-iis",
+	.id		  = 2,
 	.num_resources	  = ARRAY_SIZE(s3c64xx_iisv4_resource),
 	.resource	  = s3c64xx_iisv4_resource,
 };
 EXPORT_SYMBOL(s3c64xx_device_iisv4);
+#endif
-- 
1.6.2.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 02/10] S3C64XX I2S: declared i2s_v4
  2009-09-15 10:02 [PATCH 02/10] S3C64XX I2S: declared i2s_v4 Jassi
@ 2009-09-16  0:12 ` Ben Dooks
  2009-09-16  0:56   ` jassi brar
  2009-09-16 10:22   ` Mark Brown
  2009-09-16 18:49 ` Mark Brown
  1 sibling, 2 replies; 5+ messages in thread
From: Ben Dooks @ 2009-09-16  0:12 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Sep 15, 2009 at 07:02:34PM +0900, Jassi wrote:
> For now, I2S-v4 is simply enumerated as third I2S controller of S3C6410
> rather than a special device.
> Also, Declared I2S-v4 device for SMDK6410.
> 
> Signed-Off-by: Jassi <jassi.brar@samsung.com>
> ---
>  arch/arm/mach-s3c6410/mach-smdk6410.c |    1 +
>  arch/arm/plat-s3c/dev-audio.c         |    6 ++++--
>  2 files changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-s3c6410/mach-smdk6410.c b/arch/arm/mach-s3c6410/mach-smdk6410.c
> index bc9a7de..108ba37 100644
> --- a/arch/arm/mach-s3c6410/mach-smdk6410.c
> +++ b/arch/arm/mach-s3c6410/mach-smdk6410.c
> @@ -181,6 +181,7 @@ static struct platform_device *smdk6410_devices[] __initdata = {
>  #endif
>  	&s3c_device_i2c0,
>  	&s3c_device_i2c1,
> +	&s3c64xx_device_iisv4,
>  	&s3c_device_fb,
>  	&s3c_device_usb,
>  	&s3c_device_usb_hsotg,
> diff --git a/arch/arm/plat-s3c/dev-audio.c b/arch/arm/plat-s3c/dev-audio.c
> index 1322beb..28c030c 100644
> --- a/arch/arm/plat-s3c/dev-audio.c
> +++ b/arch/arm/plat-s3c/dev-audio.c
> @@ -51,6 +51,7 @@ struct platform_device s3c64xx_device_iis1 = {
>  };
>  EXPORT_SYMBOL(s3c64xx_device_iis1);
>  
> +#ifdef CONFIG_CPU_S3C6410
>  static struct resource s3c64xx_iisv4_resource[] = {
>  	[0] = {
>  		.start = S3C64XX_PA_IISV4,
> @@ -60,9 +61,10 @@ static struct resource s3c64xx_iisv4_resource[] = {
>  };
>  
>  struct platform_device s3c64xx_device_iisv4 = {
> -	.name		  = "s3c64xx-iis-v4",
> -	.id		  = -1,
> +	.name		  = "s3c64xx-iis",
> +	.id		  = 2,

I'd like to see how much different the two drivers are, and whether they
need to be seperated into their own modules.

Changing the name to s3c64xx-iis means that the module auto-load may end
up loading the wrong module. Holding off on this change until we se what
needs to be done for this block.

>  	.num_resources	  = ARRAY_SIZE(s3c64xx_iisv4_resource),
>  	.resource	  = s3c64xx_iisv4_resource,
>  };
>  EXPORT_SYMBOL(s3c64xx_device_iisv4);
> +#endif
> -- 
> 1.6.2.5
> 

-- 
-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 02/10] S3C64XX I2S: declared i2s_v4
  2009-09-16  0:12 ` Ben Dooks
@ 2009-09-16  0:56   ` jassi brar
  2009-09-16 10:22   ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: jassi brar @ 2009-09-16  0:56 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Sep 16, 2009 at 9:12 AM, Ben Dooks <ben-linux@fluff.org> wrote:
> On Tue, Sep 15, 2009 at 07:02:34PM +0900, Jassi wrote:
>> For now, I2S-v4 is simply enumerated as third I2S controller of S3C6410
>> rather than a special device.
>> Also, Declared I2S-v4 device for SMDK6410.
>>
>> Signed-Off-by: Jassi <jassi.brar@samsung.com>
>> ---
>> ?arch/arm/mach-s3c6410/mach-smdk6410.c | ? ?1 +
>> ?arch/arm/plat-s3c/dev-audio.c ? ? ? ? | ? ?6 ++++--
>> ?2 files changed, 5 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm/mach-s3c6410/mach-smdk6410.c b/arch/arm/mach-s3c6410/mach-smdk6410.c
>> index bc9a7de..108ba37 100644
>> --- a/arch/arm/mach-s3c6410/mach-smdk6410.c
>> +++ b/arch/arm/mach-s3c6410/mach-smdk6410.c
>> @@ -181,6 +181,7 @@ static struct platform_device *smdk6410_devices[] __initdata = {
>> ?#endif
>> ? ? ? &s3c_device_i2c0,
>> ? ? ? &s3c_device_i2c1,
>> + ? ? &s3c64xx_device_iisv4,
>> ? ? ? &s3c_device_fb,
>> ? ? ? &s3c_device_usb,
>> ? ? ? &s3c_device_usb_hsotg,
>> diff --git a/arch/arm/plat-s3c/dev-audio.c b/arch/arm/plat-s3c/dev-audio.c
>> index 1322beb..28c030c 100644
>> --- a/arch/arm/plat-s3c/dev-audio.c
>> +++ b/arch/arm/plat-s3c/dev-audio.c
>> @@ -51,6 +51,7 @@ struct platform_device s3c64xx_device_iis1 = {
>> ?};
>> ?EXPORT_SYMBOL(s3c64xx_device_iis1);
>>
>> +#ifdef CONFIG_CPU_S3C6410
>> ?static struct resource s3c64xx_iisv4_resource[] = {
>> ? ? ? [0] = {
>> ? ? ? ? ? ? ? .start = S3C64XX_PA_IISV4,
>> @@ -60,9 +61,10 @@ static struct resource s3c64xx_iisv4_resource[] = {
>> ?};
>>
>> ?struct platform_device s3c64xx_device_iisv4 = {
>> - ? ? .name ? ? ? ? ? ? = "s3c64xx-iis-v4",
>> - ? ? .id ? ? ? ? ? ? ? = -1,
>> + ? ? .name ? ? ? ? ? ? = "s3c64xx-iis",
>> + ? ? .id ? ? ? ? ? ? ? = 2,
>
> I'd like to see how much different the two drivers are, and whether they
> need to be seperated into their own modules.
>
> Changing the name to s3c64xx-iis means that the module auto-load may end
> up loading the wrong module. Holding off on this change until we se what
> needs to be done for this block.
For now, my idea is to first lay ground for I2S-v4 controller.
It is easier for implement 6channels support when we already have the
controller working for 2channels.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 02/10] S3C64XX I2S: declared i2s_v4
  2009-09-16  0:12 ` Ben Dooks
  2009-09-16  0:56   ` jassi brar
@ 2009-09-16 10:22   ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2009-09-16 10:22 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Sep 16, 2009 at 01:12:20AM +0100, Ben Dooks wrote:
> On Tue, Sep 15, 2009 at 07:02:34PM +0900, Jassi wrote:

> > -	.id		  = -1,
> > +	.name		  = "s3c64xx-iis",
> > +	.id		  = 2,

> I'd like to see how much different the two drivers are, and whether they
> need to be seperated into their own modules.

There's substantial overlap (mostly IISv4 just adds new register bits to
control the additional channels), but the trick would be how the driver
is supposed to work out that it's handling an IISv4 device and enable
the additional functionality.

> Changing the name to s3c64xx-iis means that the module auto-load may end
> up loading the wrong module. Holding off on this change until we se what
> needs to be done for this block.

It's certainly not a long-term solution as-is.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 02/10] S3C64XX I2S: declared i2s_v4
  2009-09-15 10:02 [PATCH 02/10] S3C64XX I2S: declared i2s_v4 Jassi
  2009-09-16  0:12 ` Ben Dooks
@ 2009-09-16 18:49 ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2009-09-16 18:49 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Sep 15, 2009 at 07:02:34PM +0900, Jassi wrote:

>  arch/arm/mach-s3c6410/mach-smdk6410.c |    1 +
>  arch/arm/plat-s3c/dev-audio.c         |    6 ++++--

This won't apply against the current code, dev-audio.c is now in
plat-s3c64xx.  Please check that you're working against current code
when submitting things otherwise people aren't going to be able to apply
your patches.  The -next tree is helpful for this.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-09-16 18:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-15 10:02 [PATCH 02/10] S3C64XX I2S: declared i2s_v4 Jassi
2009-09-16  0:12 ` Ben Dooks
2009-09-16  0:56   ` jassi brar
2009-09-16 10:22   ` Mark Brown
2009-09-16 18:49 ` Mark Brown

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).