diff options
author | Imre Deak <imre.deak@intel.com> | 2013-11-25 10:15:31 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-11-26 14:06:34 -0500 |
commit | 190be112fc02f6efcf954a82bd49e2c19b3673e8 (patch) | |
tree | 4e400d6cc4c2ae76f9da47f377604edf7cc1f7eb /drivers/gpu/drm/i915/intel_display.c | |
parent | 6f3ef5ddabc0ad321678ee091c75b1f082a42707 (diff) |
drm/i915: use IS_HASWELL/BROADWELL instead of HAS_POWER_WELL
In intel_display_capture_error_state we use HAS_POWER_WELL to check if
we are running on Haswell/Broadwell when accessing HSW_PWR_WELL_DRIVER
which is specific to these platforms. Future platforms with power wells
don't have this register, so HAS_POWER_WELL won't work there any more.
Use IS_HASWELL/IS_BROADWELL instead.
v3: fix using logical || instead of bitwise | (Paulo)
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Paulo Zanoni <paulo.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 54e7fa6d9628..aa1a6c1e90ea 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -11359,7 +11359,7 @@ intel_display_capture_error_state(struct drm_device *dev) | |||
11359 | if (error == NULL) | 11359 | if (error == NULL) |
11360 | return NULL; | 11360 | return NULL; |
11361 | 11361 | ||
11362 | if (HAS_POWER_WELL(dev)) | 11362 | if (IS_HASWELL(dev) || IS_BROADWELL(dev)) |
11363 | error->power_well_driver = I915_READ(HSW_PWR_WELL_DRIVER); | 11363 | error->power_well_driver = I915_READ(HSW_PWR_WELL_DRIVER); |
11364 | 11364 | ||
11365 | for_each_pipe(i) { | 11365 | for_each_pipe(i) { |
@@ -11430,7 +11430,7 @@ intel_display_print_error_state(struct drm_i915_error_state_buf *m, | |||
11430 | return; | 11430 | return; |
11431 | 11431 | ||
11432 | err_printf(m, "Num Pipes: %d\n", INTEL_INFO(dev)->num_pipes); | 11432 | err_printf(m, "Num Pipes: %d\n", INTEL_INFO(dev)->num_pipes); |
11433 | if (HAS_POWER_WELL(dev)) | 11433 | if (IS_HASWELL(dev) || IS_BROADWELL(dev)) |
11434 | err_printf(m, "PWR_WELL_CTL2: %08x\n", | 11434 | err_printf(m, "PWR_WELL_CTL2: %08x\n", |
11435 | error->power_well_driver); | 11435 | error->power_well_driver); |
11436 | for_each_pipe(i) { | 11436 | for_each_pipe(i) { |