OSDN Git Service

drm/fsl-dcu: implement irq_preinstall/uninstall callbacks
authorStefan Agner <stefan@agner.ch>
Fri, 2 Jun 2017 02:43:30 +0000 (19:43 -0700)
committerStefan Agner <stefan@agner.ch>
Thu, 8 Jun 2017 21:59:14 +0000 (14:59 -0700)
commit685ec6ebcd0edde718d2c95a550bca36563c9055
tree22f66c075b12e48fc383775957f8e2b533666348
parentffe881fba1e8467872fcb926fe2817aedbec2592
drm/fsl-dcu: implement irq_preinstall/uninstall callbacks

Make use of the irq_preinstall/uninstall callback to clear and
mask all interrupts. Use write 1 to clear as documented by the
data sheet (writing a 0 seems to have cleared interrupt status
too). Remove fsl_dcu_drm_irq_init and call drm_irq_install
directly from fsl_dcu_load makes error handling a bit simpler.
Do not set irq_enabled since drm_irq_install is taking care of
it.

Signed-off-by: Stefan Agner <stefan@agner.ch>
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c