Patchwork [3.5.y.z,extended,stable] Patch "ASoC: imx-ssi: Fix occasional AC97 reset failure" has been added to staging queue

login
register
mail settings
Submitter Luis Henriques
Date April 11, 2013, 9:08 a.m.
Message ID <1365671334-11596-1-git-send-email-luis.henriques@canonical.com>
Download mbox | patch
Permalink /patch/235609/
State New
Headers show

Comments

Luis Henriques - April 11, 2013, 9:08 a.m.
This is a note to let you know that I have just added a patch titled

    ASoC: imx-ssi: Fix occasional AC97 reset failure

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:

 http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable

Thanks.
-Luis

------

From db105ce0f48a827e0142a06ba549bb59627243eb Mon Sep 17 00:00:00 2001
From: Sascha Hauer <s.hauer@pengutronix.de>
Date: Sun, 10 Mar 2013 19:33:03 +0100
Subject: [PATCH] ASoC: imx-ssi: Fix occasional AC97 reset failure

commit b6e51600f4e983e757b1b6942becaa1ae7d82e67 upstream.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
---
 sound/soc/fsl/imx-ssi.c | 5 +++++
 1 file changed, 5 insertions(+)

--
1.8.1.2

Patch

diff --git a/sound/soc/fsl/imx-ssi.c b/sound/soc/fsl/imx-ssi.c
index 28dd76c..83300fb 100644
--- a/sound/soc/fsl/imx-ssi.c
+++ b/sound/soc/fsl/imx-ssi.c
@@ -497,6 +497,8 @@  static void imx_ssi_ac97_reset(struct snd_ac97 *ac97)

 	if (imx_ssi->ac97_reset)
 		imx_ssi->ac97_reset(ac97);
+	/* First read sometimes fails, do a dummy read */
+	imx_ssi_ac97_read(ac97, 0);
 }

 static void imx_ssi_ac97_warm_reset(struct snd_ac97 *ac97)
@@ -505,6 +507,9 @@  static void imx_ssi_ac97_warm_reset(struct snd_ac97 *ac97)

 	if (imx_ssi->ac97_warm_reset)
 		imx_ssi->ac97_warm_reset(ac97);
+
+	/* First read sometimes fails, do a dummy read */
+	imx_ssi_ac97_read(ac97, 0);
 }

 struct snd_ac97_bus_ops soc_ac97_ops = {