* [PATCH] ASoC: atmel-ssc: make it buildable on other architectures
@ 2012-12-08 12:46 Joachim Eastwood
2012-12-10 9:53 ` Bo Shen
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Joachim Eastwood @ 2012-12-08 12:46 UTC (permalink / raw)
To: voice.shen, plagnioj, nicolas.ferre, broonie
Cc: linux-arm-kernel, alsa-devel, linux-sound, Joachim Eastwood
Not very useful on non AT91/AVR32 platforms but it provides
more build coverage and prepares for ARM multiplatform.
Also fixes a truncated warning that would come when
building on a 64-bit arch.
Signed-off-by: Joachim Eastwood <manabian@gmail.com>
---
Hi Mark,
Sending it to you since seem like you're the last one who
commited changes to the driver and the driver is mostly
used on ASoC.
Tested on RM9200 and build tested on x86_64.
regards
Joachim Eastwood
drivers/misc/Kconfig | 2 +-
drivers/misc/atmel-ssc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index b151b7c..8f59d88 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -192,7 +192,7 @@ config ICS932S401
config ATMEL_SSC
tristate "Device driver for Atmel SSC peripheral"
- depends on AVR32 || ARCH_AT91
+ depends on HAS_IOMEM
---help---
This option enables device driver support for Atmel Synchronized
Serial Communication peripheral (SSC).
diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c
index 158da5a..0cee274 100644
--- a/drivers/misc/atmel-ssc.c
+++ b/drivers/misc/atmel-ssc.c
@@ -167,7 +167,7 @@ static int ssc_probe(struct platform_device *pdev)
/* disable all interrupts */
clk_enable(ssc->clk);
- ssc_writel(ssc->regs, IDR, ~0UL);
+ ssc_writel(ssc->regs, IDR, -1);
ssc_readl(ssc->regs, SR);
clk_disable(ssc->clk);
--
1.8.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: atmel-ssc: make it buildable on other architectures
2012-12-08 12:46 [PATCH] ASoC: atmel-ssc: make it buildable on other architectures Joachim Eastwood
@ 2012-12-10 9:53 ` Bo Shen
2012-12-13 11:17 ` Nicolas Ferre
2012-12-24 15:48 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Bo Shen @ 2012-12-10 9:53 UTC (permalink / raw)
To: Joachim Eastwood
Cc: plagnioj, nicolas.ferre, broonie, linux-arm-kernel, alsa-devel,
linux-sound
Hi Joachim Eastwood,
On 12/8/2012 20:46, Joachim Eastwood wrote:
> Not very useful on non AT91/AVR32 platforms but it provides
> more build coverage and prepares for ARM multiplatform.
>
> Also fixes a truncated warning that would come when
> building on a 64-bit arch.
>
> Signed-off-by: Joachim Eastwood <manabian@gmail.com>
> ---
>
> Hi Mark,
>
> Sending it to you since seem like you're the last one who
> commited changes to the driver and the driver is mostly
> used on ASoC.
>
> Tested on RM9200 and build tested on x86_64.
>
> regards
> Joachim Eastwood
>
> drivers/misc/Kconfig | 2 +-
> drivers/misc/atmel-ssc.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
> index b151b7c..8f59d88 100644
> --- a/drivers/misc/Kconfig
> +++ b/drivers/misc/Kconfig
> @@ -192,7 +192,7 @@ config ICS932S401
>
> config ATMEL_SSC
> tristate "Device driver for Atmel SSC peripheral"
> - depends on AVR32 || ARCH_AT91
> + depends on HAS_IOMEM
> ---help---
> This option enables device driver support for Atmel Synchronized
> Serial Communication peripheral (SSC).
> diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c
> index 158da5a..0cee274 100644
> --- a/drivers/misc/atmel-ssc.c
> +++ b/drivers/misc/atmel-ssc.c
> @@ -167,7 +167,7 @@ static int ssc_probe(struct platform_device *pdev)
>
> /* disable all interrupts */
> clk_enable(ssc->clk);
> - ssc_writel(ssc->regs, IDR, ~0UL);
> + ssc_writel(ssc->regs, IDR, -1);
I don't meet building warning on x86_64 machine. So, would you please
explain more why need change this?
Best Regards,
Bo Shen
> ssc_readl(ssc->regs, SR);
> clk_disable(ssc->clk);
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: atmel-ssc: make it buildable on other architectures
2012-12-08 12:46 [PATCH] ASoC: atmel-ssc: make it buildable on other architectures Joachim Eastwood
2012-12-10 9:53 ` Bo Shen
@ 2012-12-13 11:17 ` Nicolas Ferre
2012-12-24 15:48 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Nicolas Ferre @ 2012-12-13 11:17 UTC (permalink / raw)
To: Joachim Eastwood, broonie
Cc: voice.shen, plagnioj, linux-arm-kernel, alsa-devel, linux-sound
On 12/08/2012 01:46 PM, Joachim Eastwood :
> Not very useful on non AT91/AVR32 platforms but it provides
> more build coverage and prepares for ARM multiplatform.
>
> Also fixes a truncated warning that would come when
> building on a 64-bit arch.
>
> Signed-off-by: Joachim Eastwood <manabian@gmail.com>
It if needs it to go forward:
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
> ---
>
> Hi Mark,
>
> Sending it to you since seem like you're the last one who
> commited changes to the driver and the driver is mostly
> used on ASoC.
>
> Tested on RM9200 and build tested on x86_64.
>
> regards
> Joachim Eastwood
>
> drivers/misc/Kconfig | 2 +-
> drivers/misc/atmel-ssc.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
> index b151b7c..8f59d88 100644
> --- a/drivers/misc/Kconfig
> +++ b/drivers/misc/Kconfig
> @@ -192,7 +192,7 @@ config ICS932S401
>
> config ATMEL_SSC
> tristate "Device driver for Atmel SSC peripheral"
> - depends on AVR32 || ARCH_AT91
> + depends on HAS_IOMEM
> ---help---
> This option enables device driver support for Atmel Synchronized
> Serial Communication peripheral (SSC).
> diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c
> index 158da5a..0cee274 100644
> --- a/drivers/misc/atmel-ssc.c
> +++ b/drivers/misc/atmel-ssc.c
> @@ -167,7 +167,7 @@ static int ssc_probe(struct platform_device *pdev)
>
> /* disable all interrupts */
> clk_enable(ssc->clk);
> - ssc_writel(ssc->regs, IDR, ~0UL);
> + ssc_writel(ssc->regs, IDR, -1);
> ssc_readl(ssc->regs, SR);
> clk_disable(ssc->clk);
>
>
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: atmel-ssc: make it buildable on other architectures
2012-12-08 12:46 [PATCH] ASoC: atmel-ssc: make it buildable on other architectures Joachim Eastwood
2012-12-10 9:53 ` Bo Shen
2012-12-13 11:17 ` Nicolas Ferre
@ 2012-12-24 15:48 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2012-12-24 15:48 UTC (permalink / raw)
To: Joachim Eastwood
Cc: voice.shen, plagnioj, nicolas.ferre, linux-arm-kernel, alsa-devel,
linux-sound
[-- Attachment #1: Type: text/plain, Size: 204 bytes --]
On Sat, Dec 08, 2012 at 01:46:41PM +0100, Joachim Eastwood wrote:
> Not very useful on non AT91/AVR32 platforms but it provides
> more build coverage and prepares for ARM multiplatform.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-12-24 15:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-08 12:46 [PATCH] ASoC: atmel-ssc: make it buildable on other architectures Joachim Eastwood
2012-12-10 9:53 ` Bo Shen
2012-12-13 11:17 ` Nicolas Ferre
2012-12-24 15:48 ` 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).