drm/lima: handle shared irq case for lima_pp_bcast_irq_handler
authorPeter Griffin <peter.griffin@linaro.org>
Fri, 19 Apr 2019 08:33:01 +0000 (09:33 +0100)
committerQiang Yu <yuq825@gmail.com>
Sat, 20 Apr 2019 08:14:09 +0000 (16:14 +0800)
commit409c53f07a81f8db122c461f3255c6f43558c881
treedeb704b9cd1d646bdbd6c9475a624f2845d886f6
parent96354b5ca4ac74d2e47e75987283963001b517f6
drm/lima: handle shared irq case for lima_pp_bcast_irq_handler

On Hikey board all lima ip blocks are shared with one irq.
This patch avoids a NULL ptr deref crash on this platform
on startup. Tested with Weston and kmscube.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Cc: Rob Herring <robh@kernel.org>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1555662781-22570-7-git-send-email-peter.griffin@linaro.org
drivers/gpu/drm/lima/lima_pp.c