mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
c372a35550
When transitioning to supend state, uniphier_aio_dai_suspend() is called
and asserts reset lines and disables clocks.
However, if there are two or more DAIs, uniphier_aio_dai_suspend() are
called multiple times, and double reset assersion will cause.
This patch defines the counter that has the number of DAIs at first, and
whenever uniphier_aio_dai_suspend() are called, it decrements the
counter. And only if the counter is zero, it asserts reset lines and
disables clocks.
In the same way, uniphier_aio_dai_resume() are called, it increments the
counter after deasserting reset lines and enabling clocks.
Fixes:
|
||
---|---|---|
.. | ||
aio-compress.c | ||
aio-core.c | ||
aio-cpu.c | ||
aio-dma.c | ||
aio-ld11.c | ||
aio-pxs2.c | ||
aio-reg.h | ||
aio.h | ||
evea.c | ||
Kconfig | ||
Makefile |