OSDN Git Service

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)
commita1d0503d26ea2ef04f3f013d379e8f4d29c27127
treed4ef4ff9b0fee65f6385296521d27dd327f83dd0
parentbdcddf95e82b1c4e370fc1196b1f4f50f775dab4
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