b1f1b83e25
[ Upstream commit c372a35550c8d60f673b20210eea58a06d6d38cb ]
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 |