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)
commit8a5e6aeb30ecaf8f11a99c0d008c8935cd6fba9f
tree51cc561fd5111c82d4d1eafd21f55c4e365ad1d0
parent40da17c29be95acf5543c97c8bc2fbb5991c3e39
drm/i915: turn the eDP VDD on for any i2c transactions

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>
drivers/gpu/drm/i915/intel_dp.c