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)
commit319e658c78befa51557f4d18a4092a04984290d4
treebc155a65a2afe31ed3558e49f7e33f332f3d2fa8
parent6d30c0f728cac32ce8bf3d48ef6df485e0c641f1
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