diff mbox

drm/i915/BXT: Bug fix for IS_BROXTON usage

Message ID 1459272427-6201-1-git-send-email-ramalingam.c@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ramalingam C March 29, 2016, 5:27 p.m. UTC
Parameter to IS_BROXTON() is supposed to be dev not dev_priv

If needed this could be squashed to the source of the bug.
	'commit 4d1de9756832 ("drm/i915/bxt: add dsi transcoders")'
	Date:   Fri Mar 18 17:05:42 2016 +0200

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
---
 drivers/gpu/drm/i915/intel_display.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Chris Wilson March 29, 2016, 7:50 p.m. UTC | #1
On Tue, Mar 29, 2016 at 10:57:07PM +0530, Ramalingam C wrote:
> Parameter to IS_BROXTON() is supposed to be dev not dev_priv

You have that backwards. dev_priv is the native pointer that dev is
automagically converted to. INTEL_INFO() takes *drm_i915_private*.
-Chris
Ramalingam C March 30, 2016, 4:31 a.m. UTC | #2
On Wednesday 30 March 2016 01:20 AM, Chris Wilson wrote:
> On Tue, Mar 29, 2016 at 10:57:07PM +0530, Ramalingam C wrote:
>> Parameter to IS_BROXTON() is supposed to be dev not dev_priv
> You have that backwards. dev_priv is the native pointer that dev is
> automagically converted to. INTEL_INFO() takes *drm_i915_private*.
> -Chris
Oops. Sorry for unwanted noise.
>
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index c0627d6..c5c9406 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -9988,7 +9988,7 @@  static bool haswell_get_pipe_config(struct intel_crtc *crtc,
 
 	active = hsw_get_transcoder_state(crtc, pipe_config, &power_domain_mask);
 
-	if (IS_BROXTON(dev_priv)) {
+	if (IS_BROXTON(dev)) {
 		bxt_get_dsi_transcoder_state(crtc, pipe_config,
 					     &power_domain_mask);
 		WARN_ON(active && pipe_config->has_dsi_encoder);