drm/rockchip: Use a spinlock to protect psr state
authorSean Paul <seanpaul@chromium.org>
Tue, 16 Aug 2016 23:28:31 +0000 (16:28 -0700)
committerSean Paul <seanpaul@chromium.org>
Tue, 23 Aug 2016 15:44:35 +0000 (11:44 -0400)
commiteec85347c7efa72fd45d3f428bab5d6c108db1f2
treeb51cf0f5074b8b9c7ac824029a16b20718987e32
parent23c0f3dcc05a15eb1010e10ea8f86d1849560e70
drm/rockchip: Use a spinlock to protect psr state

The handling of psr state is racey, shore that up with
a per-psr driver lock.

Reviewed-by: Yakir Yang <ykk@rock-chips.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/rockchip/rockchip_drm_psr.c