drm: Fix regression in disable polling e58f637
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Sep 2010 22:53:47 +0000 (23:53 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 13 Sep 2010 10:21:12 +0000 (20:21 +1000)
commit551402a30efa45560e23c22a7aa04453861602c3
treeb343d96ec1482812bf7229cc12455c0e11db590e
parent49553c2ef88749dd502687f4eb9c258bb10a4f44
drm: Fix regression in disable polling e58f637

I broke out my trusty i845 and found a new boot failure, which upon
inspection turned out to be a recursion within:

drm_helper_probe_single_connector_modes() -> drm_helper_hpd_irq_event()
-> intel_crt_detect() -> drm_helper_probe_single_connector_modes()

Calling drm_kms_helper_poll_enable() instead performs the desired
re-initialisation of the polling should the user have toggled the
parameter, without the recursive side-effect.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc_helper.c