drm/tilcdc: Fix race from forced shutdown of crtc in unload
authorJyri Sarha <jsarha@ti.com>
Tue, 25 Oct 2016 09:27:31 +0000 (12:27 +0300)
committerJyri Sarha <jsarha@ti.com>
Tue, 29 Nov 2016 19:03:20 +0000 (21:03 +0200)
commit2d53a18098e5a03a30b1b1419ab4103357b69f0d
tree0f06ec73b1cdb5bf4f2e6bcde30fd59d0b1c403f
parent9e79e062dc9b3aed541d6e47ac178aff815ab0e8
drm/tilcdc: Fix race from forced shutdown of crtc in unload

Fix race from forced shutdown of crtc in unload by adding internal
locking and a boolean telling if device is going to be shutdown.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
drivers/gpu/drm/tilcdc/tilcdc_drv.c
drivers/gpu/drm/tilcdc/tilcdc_drv.h