OSDN Git Service

drm/tilcdc: disable the lcd controller/dma engine when suspend invoked
authorDarren Etheridge <detheridge@ti.com>
Thu, 25 Sep 2014 00:59:32 +0000 (00:59 +0000)
committerJyri Sarha <jsarha@ti.com>
Thu, 25 Feb 2016 14:39:32 +0000 (16:39 +0200)
commit614b3cfeb8d22e2b0f49bcfeaf5b52900242a944
tree609bbe7b3617663e7e0110e91d770b89928c926b
parentb62222fcaab994177f121d58acdab269f0f54897
drm/tilcdc: disable the lcd controller/dma engine when suspend invoked

The LCD controller must be deactivated and all DMA transactions stopped
when the suspend power state is entered otherwise the PRCM causes the L3
bus to get stuck in transition state.

This commit forces the lcdc to be shut down and waits for all pending DMA
transactions to complete as part of the suspend handler for this driver.

Signed-off-by: Darren Etheridge <detheridge@ti.com>
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
drivers/gpu/drm/tilcdc/tilcdc_drv.c
drivers/gpu/drm/tilcdc/tilcdc_drv.h