]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: samsung: i2s: Ensure proper runtime PM state of I2S device
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 29 Dec 2016 11:34:04 +0000 (12:34 +0100)
committerMark Brown <broonie@kernel.org>
Sat, 31 Dec 2016 18:36:13 +0000 (18:36 +0000)
commitdc938ddb56283a0b71d987e7ecd4be90390985d6
tree946a1022a635186347c48712d62c58b8426b6d9f
parentbe2c92eb64023e294d6bb9232578963670bb121b
ASoC: samsung: i2s: Ensure proper runtime PM state of I2S device

This patch adds calls to pm_runtime_get/put to ensure that any access to
I2S registers is done with proper (active) runtime PM state of I2S device.
Till now the driver enabled runtime PM, but didn't manage the state during
driver operation. The driver worked fine only because the runtime PM
callbacks managed device clock, which was enabled all the time because of
the additional enable call in the driver's probe function.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/i2s.c