linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] input: make mainstone-wm97xx.c depend on MACH_MAINSTONE instead of ARCH_PXA
@ 2008-06-16 10:32 Eric Miao
  2008-06-16 12:06 ` Mike Rapoport
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Eric Miao @ 2008-06-16 10:32 UTC (permalink / raw)
  To: linux-input; +Cc: Mark Brown, linux-arm-kernel

If this is totally mainstone specific.

Signed-off-by: Eric Miao <eric.miao@marvell.com>
---
 drivers/input/touchscreen/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig
index 565ec71..17d0623 100644
--- a/drivers/input/touchscreen/Kconfig
+++ b/drivers/input/touchscreen/Kconfig
@@ -228,7 +228,7 @@ config TOUCHSCREEN_WM9713
 
 config TOUCHSCREEN_WM97XX_MAINSTONE
 	tristate "WM97xx Mainstone accelerated touch"
-	depends on TOUCHSCREEN_WM97XX && ARCH_PXA
+	depends on TOUCHSCREEN_WM97XX && MACH_MAINSTONE
 	help
 	  Say Y here for support for streaming mode with WM97xx touchscreens
 	  on Mainstone systems.
-- 
1.5.4.3


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

* Re: [PATCH] input: make mainstone-wm97xx.c depend on MACH_MAINSTONE instead of ARCH_PXA
  2008-06-16 10:32 [PATCH] input: make mainstone-wm97xx.c depend on MACH_MAINSTONE instead of ARCH_PXA Eric Miao
@ 2008-06-16 12:06 ` Mike Rapoport
  2008-06-16 12:07 ` Mark Brown
  2008-06-22  8:53 ` Russell King - ARM Linux
  2 siblings, 0 replies; 8+ messages in thread
From: Mike Rapoport @ 2008-06-16 12:06 UTC (permalink / raw)
  To: Eric Miao; +Cc: linux-arm-kernel, linux-input

Eric,

Eric Miao wrote:
> If this is totally mainstone specific.

I had a quick glance at the driver, and I think it can be generalized to work on
other PXA platforms with WM97xx codecs. If you'd like to I can try to enable it
on EM-X270 to see if I'm right.

> Signed-off-by: Eric Miao <eric.miao@marvell.com>
> ---
>  drivers/input/touchscreen/Kconfig |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig
> index 565ec71..17d0623 100644
> --- a/drivers/input/touchscreen/Kconfig
> +++ b/drivers/input/touchscreen/Kconfig
> @@ -228,7 +228,7 @@ config TOUCHSCREEN_WM9713
>  
>  config TOUCHSCREEN_WM97XX_MAINSTONE
>  	tristate "WM97xx Mainstone accelerated touch"
> -	depends on TOUCHSCREEN_WM97XX && ARCH_PXA
> +	depends on TOUCHSCREEN_WM97XX && MACH_MAINSTONE
>  	help
>  	  Say Y here for support for streaming mode with WM97xx touchscreens
>  	  on Mainstone systems.

-- 
Sincerely yours,
Mike.


-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

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

* Re: [PATCH] input: make mainstone-wm97xx.c depend on MACH_MAINSTONE instead of ARCH_PXA
  2008-06-16 10:32 [PATCH] input: make mainstone-wm97xx.c depend on MACH_MAINSTONE instead of ARCH_PXA Eric Miao
  2008-06-16 12:06 ` Mike Rapoport
@ 2008-06-16 12:07 ` Mark Brown
  2008-06-17  1:06   ` Eric Miao
  2008-06-22  8:53 ` Russell King - ARM Linux
  2 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2008-06-16 12:07 UTC (permalink / raw)
  To: Eric Miao; +Cc: linux-input, linux-arm-kernel

On Mon, Jun 16, 2008 at 06:32:19PM +0800, Eric Miao wrote:
> If this is totally mainstone specific.

> Signed-off-by: Eric Miao <eric.miao@marvell.com>

It is and it isn't.  It's very thin and stands a reasonable chance of
working with generic PXA systems - ideally at some point we will have 
the ability to pass platform data to AC97 devices which would let it run
elsewhere.  The driver was until very recently called pxa-wm97xx but
renamed recently due to the fact that we can't assume it'll work on
other things due to having the GPIO hookup hardcoded.

I'd rather let it be visible but I'm not *too* bothered either way.

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

* Re: [PATCH] input: make mainstone-wm97xx.c depend on MACH_MAINSTONE instead of ARCH_PXA
  2008-06-16 12:07 ` Mark Brown
@ 2008-06-17  1:06   ` Eric Miao
  2008-06-17  9:59     ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Miao @ 2008-06-17  1:06 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-input, linux-arm-kernel

Mark Brown wrote:
> On Mon, Jun 16, 2008 at 06:32:19PM +0800, Eric Miao wrote:
>> If this is totally mainstone specific.
> 
>> Signed-off-by: Eric Miao <eric.miao@marvell.com>
> 
> It is and it isn't.  It's very thin and stands a reasonable chance of
> working with generic PXA systems - ideally at some point we will have 
> the ability to pass platform data to AC97 devices which would let it run
> elsewhere.  The driver was until very recently called pxa-wm97xx but
> renamed recently due to the fact that we can't assume it'll work on
> other things due to having the GPIO hookup hardcoded.
> 
> I'd rather let it be visible but I'm not *too* bothered either way.

Mike Rapoport said it could be re-used for EM-X270, so I'd suggest this
better to be PXA generic, and pass platform data as you advised.

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

* Re: [PATCH] input: make mainstone-wm97xx.c depend on MACH_MAINSTONE instead of ARCH_PXA
  2008-06-17  1:06   ` Eric Miao
@ 2008-06-17  9:59     ` Mark Brown
  2008-06-17 11:52       ` Mike Rapoport
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2008-06-17  9:59 UTC (permalink / raw)
  To: Eric Miao; +Cc: linux-input, linux-arm-kernel

On Tue, Jun 17, 2008 at 09:06:38AM +0800, Eric Miao wrote:

> Mike Rapoport said it could be re-used for EM-X270, so I'd suggest this
> better to be PXA generic, and pass platform data as you advised.

Yeah, that's the ideal.  Unfortunately passing platform data through
AC97 is a bit of a can of worms :(

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

* Re: [PATCH] input: make mainstone-wm97xx.c depend on MACH_MAINSTONE instead of ARCH_PXA
  2008-06-17  9:59     ` Mark Brown
@ 2008-06-17 11:52       ` Mike Rapoport
  2008-06-17 11:58         ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Mike Rapoport @ 2008-06-17 11:52 UTC (permalink / raw)
  To: Mark Brown; +Cc: Eric Miao, linux-arm-kernel, linux-input



Mark Brown wrote:
> On Tue, Jun 17, 2008 at 09:06:38AM +0800, Eric Miao wrote:
> 
>> Mike Rapoport said it could be re-used for EM-X270, so I'd suggest this
>> better to be PXA generic, and pass platform data as you advised.
> 
> Yeah, that's the ideal.  Unfortunately passing platform data through
> AC97 is a bit of a can of worms :(

Probably something like the patch below may allow passing platform data at least
for ASoC devices:

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index e148db9..690aec4 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -92,13 +92,15 @@ static int soc_ac97_dev_unregister(struct snd_soc_codec *codec)
 static void soc_ac97_device_release(struct device *dev){}

 /* register ac97 codec to bus */
-static int soc_ac97_dev_register(struct snd_soc_codec *codec)
+static int soc_ac97_dev_register(struct snd_soc_device *socdev)
 {
+	struct snd_soc_codec *codec = socdev->codec;
 	int err;

 	codec->ac97->dev.bus = &ac97_bus_type;
 	codec->ac97->dev.parent = NULL;
 	codec->ac97->dev.release = soc_ac97_device_release;
+	codec->ac97->dev.platform_data = socdev->dev->platform_data;

 	snprintf(codec->ac97->dev.bus_id, BUS_ID_SIZE, "%d-%d:%s",
 		 codec->card->number, 0, codec->name);
@@ -1130,7 +1132,7 @@ int snd_soc_register_card(struct snd_soc_device *socdev)
 	mutex_lock(&codec->mutex);
 #ifdef CONFIG_SND_SOC_AC97_BUS
 	if (ac97) {
-		ret = soc_ac97_dev_register(codec);
+		ret = soc_ac97_dev_register(socdev);
 		if (ret < 0) {
 			printk(KERN_ERR "asoc: AC97 device register failed\n");
 			snd_card_free(codec->card);


> -------------------------------------------------------------------
> List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
> FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
> Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php
> 

-- 
Sincerely yours,
Mike.


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

* Re: [PATCH] input: make mainstone-wm97xx.c depend on MACH_MAINSTONE instead of ARCH_PXA
  2008-06-17 11:52       ` Mike Rapoport
@ 2008-06-17 11:58         ` Mark Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2008-06-17 11:58 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: Eric Miao, linux-arm-kernel, linux-input

On Tue, Jun 17, 2008 at 02:52:23PM +0300, Mike Rapoport wrote:

> Probably something like the patch below may allow passing platform data at least
> for ASoC devices:

This needs to be something that can be used on all AC97 systems, not
just ASoC ones (people use these devices on things like x86 too, for
example).  The last time someone proposed something to deal with this
the ALSA maintainers were very reluctant to allow any sort of void *
through the AC97 bus which stalled everything.

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

* Re: [PATCH] input: make mainstone-wm97xx.c depend on MACH_MAINSTONE instead of ARCH_PXA
  2008-06-16 10:32 [PATCH] input: make mainstone-wm97xx.c depend on MACH_MAINSTONE instead of ARCH_PXA Eric Miao
  2008-06-16 12:06 ` Mike Rapoport
  2008-06-16 12:07 ` Mark Brown
@ 2008-06-22  8:53 ` Russell King - ARM Linux
  2 siblings, 0 replies; 8+ messages in thread
From: Russell King - ARM Linux @ 2008-06-22  8:53 UTC (permalink / raw)
  To: Eric Miao; +Cc: linux-input, linux-arm-kernel

On Mon, Jun 16, 2008 at 06:32:19PM +0800, Eric Miao wrote:
> If this is totally mainstone specific.
> 
> Signed-off-by: Eric Miao <eric.miao@marvell.com>

Ok.  Should probably be a -rc thing.

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

end of thread, other threads:[~2008-06-22  8:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-16 10:32 [PATCH] input: make mainstone-wm97xx.c depend on MACH_MAINSTONE instead of ARCH_PXA Eric Miao
2008-06-16 12:06 ` Mike Rapoport
2008-06-16 12:07 ` Mark Brown
2008-06-17  1:06   ` Eric Miao
2008-06-17  9:59     ` Mark Brown
2008-06-17 11:52       ` Mike Rapoport
2008-06-17 11:58         ` Mark Brown
2008-06-22  8:53 ` Russell King - ARM Linux

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