diff options
author | Jani Nikula <jani.nikula@intel.com> | 2018-06-08 15:33:29 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2018-06-11 10:21:18 +0300 |
commit | 13d0464b3240429234c34b39b819fe6f088fc3c8 (patch) | |
tree | 5bc617d0646652b6643ed2f3a8ab2442572e444d /drivers/gpu/drm/i915/intel_i2c.c | |
parent | 85b17e6e4d3f288cc757ff5407b2ca6604673d74 (diff) | |
download | linux-13d0464b3240429234c34b39b819fe6f088fc3c8.tar.xz |
drm/i915: be more strict about HAS_PCH_NOP() usage
HAS_PCH_NOP() implies a PCH platform without south display, not generic
disabled display. Prefer num_pipes == 0 for PCH independent checks.
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180608123330.31003-5-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_i2c.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_i2c.c b/drivers/gpu/drm/i915/intel_i2c.c index e6875509bcd9..61729bf84e08 100644 --- a/drivers/gpu/drm/i915/intel_i2c.c +++ b/drivers/gpu/drm/i915/intel_i2c.c @@ -771,7 +771,7 @@ int intel_setup_gmbus(struct drm_i915_private *dev_priv) unsigned int pin; int ret; - if (HAS_PCH_NOP(dev_priv)) + if (INTEL_INFO(dev_priv)->num_pipes == 0) return 0; if (IS_VALLEYVIEW(dev_priv) || IS_CHERRYVIEW(dev_priv)) |