android_kernel_motorola_sm6225/sound/soc/sh
Kuninori Morimoto 20604435e2 ASoC: rsnd: fixup rsnd_ssi_master_clk_start() user count check
[ Upstream commit d9111d36024de07784f2e1ba2ccf70b16035f378 ]

commit 4d230d1271 ("ASoC: rsnd: fixup not to call clk_get/set
under non-atomic") added new rsnd_ssi_prepare() and moved
rsnd_ssi_master_clk_start() to .prepare.
But, ssi user count (= ssi->usrcnt) is incremented at .init
(= rsnd_ssi_init()).
Because of these timing exchange, ssi->usrcnt check at
rsnd_ssi_master_clk_start() should be adjusted.
Otherwise, 2nd master clock setup will be no check.
This patch fixup this issue.

Fixes: commit 4d230d1271 ("ASoC: rsnd: fixup not to call clk_get/set under non-atomic")
Reported-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Reported-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-03-23 20:09:43 +01:00
..
rcar ASoC: rsnd: fixup rsnd_ssi_master_clk_start() user count check 2019-03-23 20:09:43 +01:00
dma-sh7760.c ASoC: dma-sh7760: convert to SPDX identifiers 2018-06-18 12:16:57 +01:00
fsi.c ASoC: fsi: convert to SPDX identifiers 2018-06-18 12:16:25 +01:00
hac.c ASoC: hac: convert to SPDX identifiers 2018-06-18 12:16:29 +01:00
Kconfig ASoC: sh: Kconfig: convert to SPDX identifiers 2018-07-30 12:02:29 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
migor.c ASoC: migor: convert to SPDX identifiers 2018-06-18 12:16:50 +01:00
sh7760-ac97.c ASoC: sh7760-ac97: convert to SPDX identifiers 2018-06-18 12:17:01 +01:00
siu.h ASoC: siu: convert to SPDX identifiers 2018-06-18 12:16:42 +01:00
siu_dai.c ASoC: siu: convert to SPDX identifiers 2018-06-18 12:16:42 +01:00
siu_pcm.c ASoC: siu: convert to SPDX identifiers 2018-06-18 12:16:42 +01:00
ssi.c ASoC: ssi: convert to SPDX identifiers 2018-06-18 12:16:37 +01:00