All of lore.kernel.org
 help / color / mirror / Atom feed
* PXA27x and AC97 reset bug
@ 2008-02-06 23:00 Robert Jarzmik
  2008-02-07  1:10 ` Dmitry Baryshkov
  2008-02-07 11:36 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Jarzmik @ 2008-02-06 23:00 UTC (permalink / raw)
  To: liam.girdwood, broonie; +Cc: alsa-devel

I hope this subject wasn't previously discussed, as I couldn't find a trace ...

The basic question is : why can't the PXA27x reset the AC97 bus in front of an
wm9713 ?

And more precisely, I'd like to know :
 - are there any references to this bug (Intel note, mailing list ref, ...)
 - is it a hardware bug on PXA27x side ?
 - is it a hardware bug on wm9713 side ?
 - is there a known generic workaround (assuming GPIO113 is connected to wm9713
reset line is not generic for me) ?
 - is there a known platform where this bug does not happen ?

--
Robert

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

* Re: PXA27x and AC97 reset bug
  2008-02-06 23:00 PXA27x and AC97 reset bug Robert Jarzmik
@ 2008-02-07  1:10 ` Dmitry Baryshkov
  2008-02-07 11:36 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Baryshkov @ 2008-02-07  1:10 UTC (permalink / raw)
  To: alsa-devel

Hi,

Robert Jarzmik wrote:

> I hope this subject wasn't previously discussed, as I couldn't find a
> trace ...
> 
> The basic question is : why can't the PXA27x reset the AC97 bus in front
> of an wm9713 ?

I have nearly the same problem here: pxa255, wm9712, sharp SL-6000 (tosa).
However resetting the codec in a loop sometime helps.

Any info would be appreciated.

> And more precisely, I'd like to know :
>  - are there any references to this bug (Intel note, mailing list ref,
>  ...) - is it a hardware bug on PXA27x side ? - is it a hardware bug on
>  wm9713 side ? - is there a known generic workaround (assuming GPIO113
>  is connected to wm9713
> reset line is not generic for me) ?
>  - is there a known platform where this bug does not happen ?

-- 
With best wishes
Dmitry

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

* Re: PXA27x and AC97 reset bug
  2008-02-06 23:00 PXA27x and AC97 reset bug Robert Jarzmik
  2008-02-07  1:10 ` Dmitry Baryshkov
@ 2008-02-07 11:36 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2008-02-07 11:36 UTC (permalink / raw)
  To: Robert Jarzmik; +Cc: liam.girdwood, alsa-devel

On Thu, Feb 07, 2008 at 12:00:51AM +0100, Robert Jarzmik wrote:

> The basic question is : why can't the PXA27x reset the AC97 bus in front of an
> wm9713 ?

> And more precisely, I'd like to know :
>  - are there any references to this bug (Intel note, mailing list ref, ...)

I'm not aware of any public documentation for this.

>  - is it a hardware bug on PXA27x side ?

With the PXA27x AC97 controller it appears that doing a warm reset also
asserts the cold reset line so ends up performing a cold reset instead.

>  - is it a hardware bug on wm9713 side ?

No.

>  - is there a known generic workaround (assuming GPIO113 is connected to wm9713
> reset line is not generic for me) ?

Since our previous discussion I've realised that the use of GPIO113 is
in fact a generic workaround - GPIO113 is the multi-function pin which
provides the AC97 cold reset.  What the workaround does is to control
that manually rather than allowing the AC97 controller in the chip to do
the job, avoiding the spurious cold reset.  Sorry about that.

>  - is there a known platform where this bug does not happen ?

It's not a bug in the WM9713 - the issue is more apparent with the
WM9713 than with most other devices since the WM9713 starts in a very
low power state link off and requires the warm reset to bring up the
AC97 link while most devices keep it running all the time.

I guess we need to go back to your original problem and take a look at
how the register cache and chip are getting out of sync.

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

end of thread, other threads:[~2008-02-07 11:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-06 23:00 PXA27x and AC97 reset bug Robert Jarzmik
2008-02-07  1:10 ` Dmitry Baryshkov
2008-02-07 11:36 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.