From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Mark Brown <broonie@sirena.org.uk>,
alsa-devel@alsa-project.org,
linux-arm-kernel@lists.arm.linux.org.uk,
eric miao <eric.y.miao@gmail.com>,
Liam Girdwood <lrg@slimlogic.co.uk>
Subject: SoC pxa2xx-ac97 + wm9705 + touchscreen suspend/resume
Date: Mon, 30 Mar 2009 23:37:20 +0100 [thread overview]
Message-ID: <20090330223720.GC31396@n2100.arm.linux.org.uk> (raw)
Trying Linus' latest (as of this morning) out on a PXA255 platform with
a WM9705 codec reveals a number of problems:
1. when suspend occurs, we turn the AC97 link off by setting the
GCR_ACLINK_OFF bit, and stopping the functional units clock.
On resume, we reconfigure the pins and re-enable the clock.
Unfortunately, this results in GCR being left with zeros, and GSR
remains all zeros, and the codec is inaccessible, with lots of
warnings from the read/write functions scrolling by:
pxa2xx_ac97_write: write error (ac97_reg=118 GSR=0x0)
pxa2xx_ac97_read: read error (ac97_reg=118 GSR=0x0)
pxa2xx_ac97_read: read error (ac97_reg=118 GSR=0x0)
...
Setting GCR to '2' (to release cold reset) using devmem2 starts things
moving again, shutting up this warning.
2. maybe as a result of the above problem, the wm9705 touchscreen
driver doesn't reinitialize, causing loss of touchscreen. Unbinding
and re-binding the driver restores the touchscreen, but with a very
long lag between touching the screen and it being registered.
I bring (2) up because I notice that the resume actions in (1) are
deferred. Given that codecs have shared functions (such as
touchscreens) need to access the codec from their own resume
functions, how can this deferral be safe?
Liam - this problem has been noticed on a NetbookPro (I'm sure you
remember that platform...)
next reply other threads:[~2009-03-30 22:37 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-30 22:37 Russell King - ARM Linux [this message]
2009-03-31 10:30 ` SoC pxa2xx-ac97 + wm9705 + touchscreen suspend/resume Mark Brown
2009-03-31 18:37 ` Russell King - ARM Linux
2009-03-31 19:15 ` Mark Brown
2009-04-02 11:55 ` Russell King - ARM Linux
2009-04-02 12:33 ` Mark Brown
2009-04-01 19:27 ` Mark Brown
2009-04-02 12:13 ` Russell King - ARM Linux
2009-04-02 12:18 ` Mark Brown
2009-04-02 12:38 ` Russell King - ARM Linux
2009-04-02 13:31 ` Russell King - ARM Linux
2009-04-02 14:12 ` Mark Brown
2009-04-02 14:40 ` Russell King - ARM Linux
2009-04-02 14:53 ` Mark Brown
2009-04-02 15:09 ` Russell King - ARM Linux
2009-04-02 15:22 ` Mark Brown
2009-04-18 9:11 ` Russell King - ARM Linux
2009-04-18 9:47 ` Mark Brown
2009-04-02 16:13 ` Ian Molton
2009-03-31 15:51 ` Liam Girdwood
2009-03-31 20:58 ` Ian Molton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090330223720.GC31396@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@sirena.org.uk \
--cc=eric.y.miao@gmail.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=lrg@slimlogic.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox