]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i2c: tda998x: avoid racy access to mode clock
authorRussell King <rmk+kernel@armlinux.org.uk>
Sun, 23 Oct 2016 10:32:43 +0000 (11:32 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 18 Nov 2016 00:00:40 +0000 (00:00 +0000)
commit08b9d08d9b27040db773d7a9f3cdaf2d420269d2
treebc155a65a2afe31ed3558e49f7e33f332f3d2fa8
parent0963bd358c7db2da88a95a78a32b4cd1b91c4410
drm/i2c: tda998x: avoid racy access to mode clock

Avoid a racy access to the mode clock by storing the current mode clock
during a mode set under the audio mutex.  This allows us to access it
from the audio path in a safe way.

Tested-by: Jon Medhurst <tixy@linaro.org>
Acked-by: Jon Medhurst <tixy@linaro.org>
Tested-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c