drm/i915/dvo: call ->mode_set callback only when the port is running
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Oct 2013 10:25:42 +0000 (12:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 19:05:51 +0000 (11:05 -0800)
commitb6c24a09d57be8d2f36e6b34aa98617fb2c08912
treedb20bd3c679579b70cc9f268ee3d2d2f48b5c7a7
parent0200fea72f2e49d096c95845e58a242fca2bf168
drm/i915/dvo: call ->mode_set callback only when the port is running

commit 48f34e10169dbb3dd7a19af64e328492b7f54af4 upstream.

The ns2501 controller seems to need the dpll and dvo port to accept
the timing update commands. Quick testing on my x30 here seems to
indicate that other dvo controllers don't mind. So let's move the
->mode_set callback to a place where we have the port up and running
already.

Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: Thomas Richter <thor@math.tu-berlin.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_dvo.c