]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: fixup rsnd_ssi_master_clk_start() user count check
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 5 Feb 2019 00:46:43 +0000 (09:46 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 6 Feb 2019 17:44:18 +0000 (17:44 +0000)
commitd541218d3a101e6d8af9158ca88d19ebdb9bd76c
tree850dbea28a22a85b578af0182d8b9860155760bd
parentb9682be30edeb0d8290495a1673a89dac56431dc
ASoC: rsnd: fixup rsnd_ssi_master_clk_start() user count check

commit 1845eee643f05 ("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 1845eee643f05 ("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>
sound/soc/sh/rcar/ssi.c