From: voice <voice.shen@atmel.com>
To: linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org
Cc: Nicolas.Ferre@atmel.com, JM.Lin@atmel.com, Hong.Xu@atmel.com,
voice <voice.shen@atmel.com>
Subject: [PATCH] atmel ac97c: using software reset instead hardware reset if not available
Date: Wed, 23 Nov 2011 10:05:01 +0000 [thread overview]
Message-ID: <1322042701-32100-1-git-send-email-voice.shen@atmel.com> (raw)
Using software reset instead hardware reset if not available
Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
sound/atmel/ac97c.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c
index 6e5adde..73516f6 100644
--- a/sound/atmel/ac97c.c
+++ b/sound/atmel/ac97c.c
@@ -899,6 +899,10 @@ static void atmel_ac97c_reset(struct atmel_ac97c *chip)
/* AC97 v2.2 specifications says minimum 1 us. */
udelay(2);
gpio_set_value(chip->reset_pin, 1);
+ } else {
+ ac97c_writel(chip, MR, AC97C_MR_WRST | AC97C_MR_ENA);
+ udelay(2);
+ ac97c_writel(chip, MR, AC97C_MR_ENA);
}
}
--
1.6.3.3
next reply other threads:[~2011-11-23 10:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-23 10:05 voice [this message]
2011-11-24 10:44 ` [PATCH] atmel ac97c: using software reset instead hardware reset Nicolas Ferre
2011-12-15 13:04 ` Nicolas Ferre
2011-12-16 1:52 ` [PATCH] atmel ac97c: using software reset instead hardware reset if not available Shen, Voice
2011-12-16 8:39 ` [PATCH] atmel ac97c: using software reset instead hardware reset Nicolas Ferre
2011-12-19 2:49 ` FW: [PATCH] atmel ac97c: using software reset instead hardware reset if not available Shen, Voice
2011-12-19 9:43 ` Takashi Iwai
2011-12-19 9:57 ` voice
2011-12-19 10:28 ` Takashi Iwai
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=1322042701-32100-1-git-send-email-voice.shen@atmel.com \
--to=voice.shen@atmel.com \
--cc=Hong.Xu@atmel.com \
--cc=JM.Lin@atmel.com \
--cc=Nicolas.Ferre@atmel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
/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