drm/i915: turn the eDP VDD on for any i2c transactions
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 30 Oct 2013 21:50:26 +0000 (19:50 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 31 Oct 2013 11:08:50 +0000 (12:08 +0100)
If the eDP output is disabled, then we try to use /dev/i2c-X file to
do i2c transations, we get a WARN from intel_dp_check_edp() saying
we're trying to do AUX communication with the panel off. So this
commit reorganizes the code so we enable the VDD at
intel_dp_i2c_aux_ch() instead of just the callers inside i915.ko.

This fixes the i2c subtest from the pc8 test of intel-gpu-tools on
machines that have eDP panels.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

No differences found