All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>,
	Simon <horms@verge.net.au>, shiiba <naoya.shiiba.nx@renesas.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Das Biju <biju.das@bp.renesas.com>
Subject: [PATCH 06/12 v2] ASoC: rsnd: no more SSI restart when unusual situation
Date: Mon, 16 Mar 2015 04:46:10 +0000	[thread overview]
Message-ID: <8761a1k0sk.wl%kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <87egopk13d.wl%kuninori.morimoto.gx@renesas.com>

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

It will be SSI interrupt endless loop f unusual situation happen.
This patch adds restart limit for it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
v1 -> v2

 - no change

 sound/soc/sh/rcar/ssi.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c
index fea4aa5..060d3d2 100644
--- a/sound/soc/sh/rcar/ssi.c
+++ b/sound/soc/sh/rcar/ssi.c
@@ -416,11 +416,14 @@ static irqreturn_t rsnd_ssi_interrupt(int irq, void *data)
 		/*
 		 * restart SSI
 		 */
-		rsnd_ssi_stop(mod, priv);
-		rsnd_ssi_start(mod, priv);
-
 		dev_dbg(dev, "%s[%d] restart\n",
 			rsnd_mod_name(mod), rsnd_mod_id(mod));
+
+		rsnd_ssi_stop(mod, priv);
+		if (ssi->err < 1024)
+			rsnd_ssi_start(mod, priv);
+		else
+			dev_warn(dev, "no more SSI restart\n");
 	}
 
 	rsnd_ssi_record_error(ssi, status);
-- 
1.9.1

  parent reply	other threads:[~2015-03-16  4:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-16  4:39 [PATCH 0/12 v2] ASoC: Renesas adds DPCM based sampling rate convert Kuninori Morimoto
2015-03-16  4:44 ` [PATCH 01/12 v2] ASoC: core: remove of_xlate_dai_name from snd_soc_component_driver Kuninori Morimoto
2015-03-18  9:03   ` Lars-Peter Clausen
2015-03-18 23:59     ` Kuninori Morimoto
2015-03-16  4:45 ` [PATCH 02/12 v2] ASoC: core: add snd_soc_get_dai_info() to get driver infomation Kuninori Morimoto
2015-03-16  4:45 ` [PATCH 03/12 v2] ASoC: rsnd-dpcm-card: add Renesas sound card support for DPCM Kuninori Morimoto
2015-03-18  9:05   ` Lars-Peter Clausen
2015-03-19  0:08     ` Kuninori Morimoto
2015-03-16  4:45 ` [PATCH 04/12 v2] ASoC: rsnd-dpcm-card: add .be_hw_params_fixup support for convert rate Kuninori Morimoto
2015-03-16  4:45 ` [PATCH 05/12 v2] ASoC: ak4642: tidyup DAPM route for playback Kuninori Morimoto
2015-03-17 12:22   ` Mark Brown
2015-03-16  4:46 ` Kuninori Morimoto [this message]
2015-03-16  4:46 ` [PATCH 07/12 v2] ASoC: rsnd: no more SRC restart when unusual situation Kuninori Morimoto
2015-03-16  4:46 ` [PATCH 08/12 v2] ASoC: rsnd: tidyup error message format Kuninori Morimoto
2015-03-16  4:46 ` [PATCH 09/12 v2] ASoC: rsnd: show debug info for sampling rate convert Kuninori Morimoto
2015-03-16  4:47 ` [PATCH 10/12 v2] ASoC: rsnd: don't call clk_prepare_enable/unprepare() from inside spin lock Kuninori Morimoto
2015-03-16  4:47 ` [PATCH 11/12 v2] ASoC: rsnd: add dai_link stream name Kuninori Morimoto
2015-03-16  4:47 ` [PATCH 12/12 v2] ASoC: rsnd: add DPCM based sampling rate convert Kuninori Morimoto

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=8761a1k0sk.wl%kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=biju.das@bp.renesas.com \
    --cc=broonie@kernel.org \
    --cc=horms@verge.net.au \
    --cc=lgirdwood@gmail.com \
    --cc=naoya.shiiba.nx@renesas.com \
    /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 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.