* [PATCH] aaci: ARM1176 aaci-pl041 AC97 register read timeout
@ 2009-10-13 13:33 Philby John
0 siblings, 0 replies; 3+ messages in thread
From: Philby John @ 2009-10-13 13:33 UTC (permalink / raw)
To: linux-arm-kernel
From: Philby John <pjohn@in.mvista.com>
Date: Tue, 13 Oct 2009 16:20:22 +0530
Subject: [PATCH] ARM1176 aaci-pl041 AC97 register read timeout
After a reboot on an ARM1176 which amounts to a softreset, it has been
noted that the ALSA driver does not get registered and the probe fails
with the error "aaci-pl041 fpga:04: ac97 read back fail". In the process
of reading from a register the SL1TxBusy bit is set indicating that the
transceiver is busy and remains so until the default timeout occurs.
Set the Power down register 0x26 to an arbitrary value as specified in the
PL041 manual (page: 3-18) so that AACISL1TX/AACISL2TX registers take
their default state.
Signed-off-by: Philby John <pjohn@in.mvista.com>
---
sound/arm/aaci.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c
index dc78272..1f0f821 100644
--- a/sound/arm/aaci.c
+++ b/sound/arm/aaci.c
@@ -937,6 +937,7 @@ static int __devinit aaci_probe_ac97(struct aaci *aaci)
struct snd_ac97 *ac97;
int ret;
+ writel(0, aaci->base + AC97_POWERDOWN);
/*
* Assert AACIRESET for 2us
*/
--
1.6.3.3.MVISTA
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] aaci: ARM1176 aaci-pl041 AC97 register read timeout
@ 2009-10-13 13:58 Philby John
2009-10-13 14:01 ` [alsa-devel] " Takashi Iwai
0 siblings, 1 reply; 3+ messages in thread
From: Philby John @ 2009-10-13 13:58 UTC (permalink / raw)
To: linux-arm-kernel
From: Philby John <pjohn@in.mvista.com>
Date: Tue, 13 Oct 2009 16:30:22 +0530
Subject: [PATCH] aaci: ARM1176 aaci-pl041 AC97 register read timeout
After a reboot on an ARM1176 which amounts to a softreset, it has been
noted that the ALSA driver does not get registered and the probe fails
with the error "aaci-pl041 fpga:04: ac97 read back fail". In the process
of reading from a register the SL1TxBusy bit is set indicating that the
transceiver is busy and remains so until the default timeout occurs.
Set the Power down register 0x26 to an arbitrary value as specified in
the PL041 manual (page: 3-18) so that AACISL1TX/AACISL2TX registers take
their default state.
Signed-off-by: Philby John <pjohn@in.mvista.com>
---
sound/arm/aaci.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c
index 89096e8..98b6ffe 100644
--- a/sound/arm/aaci.c
+++ b/sound/arm/aaci.c
@@ -937,6 +937,7 @@ static int __devinit aaci_probe_ac97(struct aaci *aaci)
struct snd_ac97 *ac97;
int ret;
+ writel(0, aaci->base + AC97_POWERDOWN);
/*
* Assert AACIRESET for 2us
*/
--
1.6.3.3.MVISTA
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [alsa-devel] [PATCH] aaci: ARM1176 aaci-pl041 AC97 register read timeout
2009-10-13 13:58 [PATCH] aaci: ARM1176 aaci-pl041 AC97 register read timeout Philby John
@ 2009-10-13 14:01 ` Takashi Iwai
0 siblings, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2009-10-13 14:01 UTC (permalink / raw)
To: linux-arm-kernel
At Tue, 13 Oct 2009 19:28:24 +0530,
Philby John wrote:
>
> From: Philby John <pjohn@in.mvista.com>
> Date: Tue, 13 Oct 2009 16:30:22 +0530
> Subject: [PATCH] aaci: ARM1176 aaci-pl041 AC97 register read timeout
>
> After a reboot on an ARM1176 which amounts to a softreset, it has been
> noted that the ALSA driver does not get registered and the probe fails
> with the error "aaci-pl041 fpga:04: ac97 read back fail". In the process
> of reading from a register the SL1TxBusy bit is set indicating that the
> transceiver is busy and remains so until the default timeout occurs.
> Set the Power down register 0x26 to an arbitrary value as specified in
> the PL041 manual (page: 3-18) so that AACISL1TX/AACISL2TX registers take
> their default state.
>
> Signed-off-by: Philby John <pjohn@in.mvista.com>
Thanks, applied now.
Takashi
> ---
> sound/arm/aaci.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c
> index 89096e8..98b6ffe 100644
> --- a/sound/arm/aaci.c
> +++ b/sound/arm/aaci.c
> @@ -937,6 +937,7 @@ static int __devinit aaci_probe_ac97(struct aaci *aaci)
> struct snd_ac97 *ac97;
> int ret;
>
> + writel(0, aaci->base + AC97_POWERDOWN);
> /*
> * Assert AACIRESET for 2us
> */
> --
> 1.6.3.3.MVISTA
>
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-13 14:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-13 13:58 [PATCH] aaci: ARM1176 aaci-pl041 AC97 register read timeout Philby John
2009-10-13 14:01 ` [alsa-devel] " Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2009-10-13 13:33 Philby John
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).