diff mbox

[2/3] drm/i915: Replace magic number with macro defined by drm

Message ID 20180221021826.12006-2-jose.souza@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Souza, Jose Feb. 21, 2018, 2:18 a.m. UTC
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
 drivers/gpu/drm/i915/intel_psr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dhinakaran Pandiyan Feb. 24, 2018, 1:53 a.m. UTC | #1
On Tue, 2018-02-20 at 18:18 -0800, José Roberto de Souza wrote:
> Signed-off-by: José Roberto de Souza <jose.souza@intel.com>

> ---

>  drivers/gpu/drm/i915/intel_psr.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/drivers/gpu/drm/i915/intel_psr.c b/drivers/gpu/drm/i915/intel_psr.c

> index 71801a25a2b3..3fc1bdd65b14 100644

> --- a/drivers/gpu/drm/i915/intel_psr.c

> +++ b/drivers/gpu/drm/i915/intel_psr.c

> @@ -90,7 +90,7 @@ static void hsw_psr_setup_vsc(struct intel_dp *intel_dp,

>  

>  	memset(&psr_vsc, 0, sizeof(psr_vsc));

>  	psr_vsc.sdp_header.HB0 = 0;

> -	psr_vsc.sdp_header.HB1 = 0x7;

> +	psr_vsc.sdp_header.HB1 = DP_SDP_VSC;

>  


Do you mind rebasing this without Patch 1?


>  	if (dev_priv->psr.psr2_support) {

>  		/* Prepare VSC Header for SU as per EDP 1.4 spec, Table 6.11 */
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_psr.c b/drivers/gpu/drm/i915/intel_psr.c
index 71801a25a2b3..3fc1bdd65b14 100644
--- a/drivers/gpu/drm/i915/intel_psr.c
+++ b/drivers/gpu/drm/i915/intel_psr.c
@@ -90,7 +90,7 @@  static void hsw_psr_setup_vsc(struct intel_dp *intel_dp,
 
 	memset(&psr_vsc, 0, sizeof(psr_vsc));
 	psr_vsc.sdp_header.HB0 = 0;
-	psr_vsc.sdp_header.HB1 = 0x7;
+	psr_vsc.sdp_header.HB1 = DP_SDP_VSC;
 
 	if (dev_priv->psr.psr2_support) {
 		/* Prepare VSC Header for SU as per EDP 1.4 spec, Table 6.11 */