]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/bridge: analogix_dp: fix no drm hpd event when panel plug in
authorYakir Yang <ykk@rock-chips.com>
Wed, 29 Jun 2016 09:15:47 +0000 (17:15 +0800)
committerYakir Yang <ykk@rock-chips.com>
Tue, 5 Jul 2016 13:53:40 +0000 (21:53 +0800)
commit7608a9fb37b02c5cce3199f87eafb0a6c07d6f93
tree23a5d6c28eb611818b36e14f0f28b32e279b76a1
parentd698f0eb9d0ebfff26a5a739a21164700d5dd58e
drm/bridge: analogix_dp: fix no drm hpd event when panel plug in

The enum value of DP_IRQ_TYPE_HP_CABLE_IN is zero, but driver only
send drm hp event when the irq_type and the enum value is true.

if (irq_type & DP_IRQ_TYPE_HP_CABLE_IN || ...)
drm_helper_hpd_irq_event(dp->drm_dev);

So there would no drm hpd event when cable plug in, to fix that
just need to assign all hotplug enum with no-zero values.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Tomasz Figa <tomasz.figa@chromium.com>
Tested-by: Javier Martinez Canillas <javier@osg.samsung.com>
drivers/gpu/drm/bridge/analogix/analogix_dp_core.h