Home
last modified time | relevance | path

Searched hist:f212c6d8 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/sound/soc/mxs/
H A Dmxs-saif.cf212c6d8 Thu Jan 21 08:55:56 CST 2016 Mans Rullgard <mans@mansr.com> ASoC: mxs-saif: fix clk_prepare() without matching clk_unprepare()

The clk_prepare() call in hw_params() has no matching clk_unprepare(),
leaving the clk with an ever-increasing prepare count. Moreover,
hw_params() can be called multiple times which would again leave us
with a runaway prepare count. Fix this by moving the clk_prepare()
call to the startup() function and adding a shutdown() function with
a matching clk_unprepare() as these operations are already correctly
bracketed by soc-core.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
f212c6d8 Thu Jan 21 08:55:56 CST 2016 Mans Rullgard <mans@mansr.com> ASoC: mxs-saif: fix clk_prepare() without matching clk_unprepare()

The clk_prepare() call in hw_params() has no matching clk_unprepare(),
leaving the clk with an ever-increasing prepare count. Moreover,
hw_params() can be called multiple times which would again leave us
with a runaway prepare count. Fix this by moving the clk_prepare()
call to the startup() function and adding a shutdown() function with
a matching clk_unprepare() as these operations are already correctly
bracketed by soc-core.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Mark Brown <broonie@kernel.org>