* [PATCH 4.4.y] ASoC: rsnd: src: add rsnd_src_halt()
@ 2017-08-24 8:17 Nhan Nguyen
2017-08-28 7:00 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Nhan Nguyen @ 2017-08-24 8:17 UTC (permalink / raw)
To: greg
Cc: toru.oishi.zj, thongsyho, stable, Kuninori Morimoto, Mark Brown,
Nhan Nguyen
From: thongsyho <thong.ho.px@rvc.renesas.com>
commit 475a361a6f2c7c690fd59a8f5224615e781cc3bd upstream.
Based on datasheet process
Cc: stable@vger.kernel.org
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Thong Ho <thong.ho.px@rvc.renesas.com>
Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com>
---
sound/soc/sh/rcar/src.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c
index 460d29c..8f2679c 100644
--- a/sound/soc/sh/rcar/src.c
+++ b/sound/soc/sh/rcar/src.c
@@ -132,6 +132,12 @@ static void __rsnd_src_initialize_lock(struct rsnd_mod *mod, u32 enable)
rsnd_mod_write(mod, SRC_SRCIR, enable);
}
+static void rsnd_src_halt(struct rsnd_mod *mod)
+{
+ rsnd_mod_write(mod, SRC_SRCIR, 1);
+ rsnd_mod_write(mod, SRC_SWRSR, 0);
+}
+
static struct dma_chan *rsnd_src_dma_req(struct rsnd_dai_stream *io,
struct rsnd_mod *mod)
{
@@ -373,6 +379,8 @@ static int rsnd_src_quit(struct rsnd_mod *mod,
struct rsnd_src *src = rsnd_mod_to_src(mod);
struct device *dev = rsnd_priv_to_dev(priv);
+ rsnd_src_halt(mod);
+
rsnd_mod_power_off(mod);
if (src->err)
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 4.4.y] ASoC: rsnd: src: add rsnd_src_halt()
2017-08-24 8:17 [PATCH 4.4.y] ASoC: rsnd: src: add rsnd_src_halt() Nhan Nguyen
@ 2017-08-28 7:00 ` Greg KH
2017-09-01 8:01 ` Nhan Ngoc. Nguyen
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2017-08-28 7:00 UTC (permalink / raw)
To: Nhan Nguyen
Cc: toru.oishi.zj, thongsyho, stable, Kuninori Morimoto, Mark Brown
On Thu, Aug 24, 2017 at 03:17:59PM +0700, Nhan Nguyen wrote:
> From: thongsyho <thong.ho.px@rvc.renesas.com>
>
> commit 475a361a6f2c7c690fd59a8f5224615e781cc3bd upstream.
>
> Based on datasheet process
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> Signed-off-by: Mark Brown <broonie@kernel.org>
> Signed-off-by: Thong Ho <thong.ho.px@rvc.renesas.com>
> Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com>
> ---
> sound/soc/sh/rcar/src.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
Why are all of these "add rsnd_src_halt()" patches relevant for a stable
kernel?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 4.4.y] ASoC: rsnd: src: add rsnd_src_halt()
2017-08-28 7:00 ` Greg KH
@ 2017-09-01 8:01 ` Nhan Ngoc. Nguyen
0 siblings, 0 replies; 3+ messages in thread
From: Nhan Ngoc. Nguyen @ 2017-09-01 8:01 UTC (permalink / raw)
To: Greg KH; +Cc: toru.oishi.zj, thongsyho, stable, Kuninori Morimoto, Mark Brown
Please ignore my patch! It add new feature.
Thanks!
On 8/28/2017 2:00 PM, Greg KH wrote:
> On Thu, Aug 24, 2017 at 03:17:59PM +0700, Nhan Nguyen wrote:
>> From: thongsyho <thong.ho.px@rvc.renesas.com>
>>
>> commit 475a361a6f2c7c690fd59a8f5224615e781cc3bd upstream.
>>
>> Based on datasheet process
>>
>> Cc: stable@vger.kernel.org
>> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>> Signed-off-by: Mark Brown <broonie@kernel.org>
>> Signed-off-by: Thong Ho <thong.ho.px@rvc.renesas.com>
>> Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com>
>> ---
>> sound/soc/sh/rcar/src.c | 8 ++++++++
>> 1 file changed, 8 insertions(+)
> Why are all of these "add rsnd_src_halt()" patches relevant for a stable
> kernel?
>
> thanks,
>
> greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-09-01 8:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-24 8:17 [PATCH 4.4.y] ASoC: rsnd: src: add rsnd_src_halt() Nhan Nguyen
2017-08-28 7:00 ` Greg KH
2017-09-01 8:01 ` Nhan Ngoc. Nguyen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox