]> git.baikalelectronics.ru Git - kernel.git/commit
drm: adv7511: Fix crash in IRQ handler when no encoder is associated
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 13 May 2015 21:31:07 +0000 (00:31 +0300)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 25 May 2015 12:34:00 +0000 (15:34 +0300)
commit75953785fcbcc4d97c13a486921a6f893df7e7b5
treed4ef4ff9b0fee65f6385296521d27dd327f83dd0
parente1197717dfca05776ca461125f40dd32644f1f5d
drm: adv7511: Fix crash in IRQ handler when no encoder is associated

The ADV7511 is probed before its slave encoder init function associates
it with an encoder. This creates a time window during which hot plug
detection interrupts can occur with an encoder, resulting in a crash in
the IRQ handler.

Fix this by ignoring hot plug detection IRQs when no encoder is
associated yet.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/gpu/drm/i2c/adv7511.c