* [PATCH] DRM: Rockchip: correct rate in the struct drm_dp_link assignment
@ 2019-06-05 8:04 ` sandor.yu
0 siblings, 0 replies; 4+ messages in thread
From: sandor.yu @ 2019-06-05 8:04 UTC (permalink / raw)
To: hjc, heiko, airlied, daniel, sandor.yu
Cc: Sandor Yu, linux-arm-kernel, dri-devel
From: Sandor Yu <Sandor.yu@nxp.com>
variable of rate in the struct drm_dp_link should assign to
162000/270000/540000/810000.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
---
drivers/gpu/drm/rockchip/cdn-dp-reg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/rockchip/cdn-dp-reg.c b/drivers/gpu/drm/rockchip/cdn-dp-reg.c
index 6c8b14f..0a2aebe 100644
--- a/drivers/gpu/drm/rockchip/cdn-dp-reg.c
+++ b/drivers/gpu/drm/rockchip/cdn-dp-reg.c
@@ -543,7 +543,7 @@ static int cdn_dp_get_training_status(struct cdn_dp_device *dp)
if (ret)
goto err_get_training_status;
- dp->link.rate = status[0];
+ dp->link.rate = drm_dp_bw_code_to_link_rate(status[0]);
dp->link.num_lanes = status[1];
err_get_training_status:
@@ -647,7 +647,7 @@ int cdn_dp_config_video(struct cdn_dp_device *dp)
bit_per_pix = (video->color_fmt == YCBCR_4_2_2) ?
(video->color_depth * 2) : (video->color_depth * 3);
- link_rate = drm_dp_bw_code_to_link_rate(dp->link.rate) / 1000;
+ link_rate = dp->link.rate / 1000;
ret = cdn_dp_reg_write(dp, BND_HSYNC2VSYNC, VIF_BYPASS_INTERLACE);
if (ret)
--
2.7.4
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] DRM: Rockchip: correct rate in the struct drm_dp_link assignment
@ 2019-06-05 8:04 ` sandor.yu
0 siblings, 0 replies; 4+ messages in thread
From: sandor.yu @ 2019-06-05 8:04 UTC (permalink / raw)
To: hjc, heiko, airlied, daniel, sandor.yu
Cc: Sandor Yu, linux-arm-kernel, dri-devel
From: Sandor Yu <Sandor.yu@nxp.com>
variable of rate in the struct drm_dp_link should assign to
162000/270000/540000/810000.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
---
drivers/gpu/drm/rockchip/cdn-dp-reg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/rockchip/cdn-dp-reg.c b/drivers/gpu/drm/rockchip/cdn-dp-reg.c
index 6c8b14f..0a2aebe 100644
--- a/drivers/gpu/drm/rockchip/cdn-dp-reg.c
+++ b/drivers/gpu/drm/rockchip/cdn-dp-reg.c
@@ -543,7 +543,7 @@ static int cdn_dp_get_training_status(struct cdn_dp_device *dp)
if (ret)
goto err_get_training_status;
- dp->link.rate = status[0];
+ dp->link.rate = drm_dp_bw_code_to_link_rate(status[0]);
dp->link.num_lanes = status[1];
err_get_training_status:
@@ -647,7 +647,7 @@ int cdn_dp_config_video(struct cdn_dp_device *dp)
bit_per_pix = (video->color_fmt == YCBCR_4_2_2) ?
(video->color_depth * 2) : (video->color_depth * 3);
- link_rate = drm_dp_bw_code_to_link_rate(dp->link.rate) / 1000;
+ link_rate = dp->link.rate / 1000;
ret = cdn_dp_reg_write(dp, BND_HSYNC2VSYNC, VIF_BYPASS_INTERLACE);
if (ret)
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] DRM: Rockchip: correct rate in the struct drm_dp_link assignment
2019-06-05 8:04 ` sandor.yu
@ 2019-06-14 12:00 ` Heiko Stuebner
-1 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2019-06-14 12:00 UTC (permalink / raw)
To: sandor.yu; +Cc: airlied, Sandor Yu, hjc, dri-devel, daniel, linux-arm-kernel
Hi,
Am Mittwoch, 5. Juni 2019, 10:04:24 CEST schrieb sandor.yu@nxp.com:
> From: Sandor Yu <Sandor.yu@nxp.com>
>
> variable of rate in the struct drm_dp_link should assign to
> 162000/270000/540000/810000.
>
> Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
applied to drm-misc-next after fixing patch subject and description
to be in line with subsystem conventions:
https://cgit.freedesktop.org/drm/drm-misc/commit/?id=de85ec271a864c05e99ad5ffbed9e95d1b65c757
Thanks
Heiko
> ---
> drivers/gpu/drm/rockchip/cdn-dp-reg.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/rockchip/cdn-dp-reg.c b/drivers/gpu/drm/rockchip/cdn-dp-reg.c
> index 6c8b14f..0a2aebe 100644
> --- a/drivers/gpu/drm/rockchip/cdn-dp-reg.c
> +++ b/drivers/gpu/drm/rockchip/cdn-dp-reg.c
> @@ -543,7 +543,7 @@ static int cdn_dp_get_training_status(struct cdn_dp_device *dp)
> if (ret)
> goto err_get_training_status;
>
> - dp->link.rate = status[0];
> + dp->link.rate = drm_dp_bw_code_to_link_rate(status[0]);
> dp->link.num_lanes = status[1];
>
> err_get_training_status:
> @@ -647,7 +647,7 @@ int cdn_dp_config_video(struct cdn_dp_device *dp)
> bit_per_pix = (video->color_fmt == YCBCR_4_2_2) ?
> (video->color_depth * 2) : (video->color_depth * 3);
>
> - link_rate = drm_dp_bw_code_to_link_rate(dp->link.rate) / 1000;
> + link_rate = dp->link.rate / 1000;
>
> ret = cdn_dp_reg_write(dp, BND_HSYNC2VSYNC, VIF_BYPASS_INTERLACE);
> if (ret)
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] DRM: Rockchip: correct rate in the struct drm_dp_link assignment
@ 2019-06-14 12:00 ` Heiko Stuebner
0 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2019-06-14 12:00 UTC (permalink / raw)
To: sandor.yu; +Cc: airlied, Sandor Yu, dri-devel, linux-arm-kernel
Hi,
Am Mittwoch, 5. Juni 2019, 10:04:24 CEST schrieb sandor.yu@nxp.com:
> From: Sandor Yu <Sandor.yu@nxp.com>
>
> variable of rate in the struct drm_dp_link should assign to
> 162000/270000/540000/810000.
>
> Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
applied to drm-misc-next after fixing patch subject and description
to be in line with subsystem conventions:
https://cgit.freedesktop.org/drm/drm-misc/commit/?id=de85ec271a864c05e99ad5ffbed9e95d1b65c757
Thanks
Heiko
> ---
> drivers/gpu/drm/rockchip/cdn-dp-reg.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/rockchip/cdn-dp-reg.c b/drivers/gpu/drm/rockchip/cdn-dp-reg.c
> index 6c8b14f..0a2aebe 100644
> --- a/drivers/gpu/drm/rockchip/cdn-dp-reg.c
> +++ b/drivers/gpu/drm/rockchip/cdn-dp-reg.c
> @@ -543,7 +543,7 @@ static int cdn_dp_get_training_status(struct cdn_dp_device *dp)
> if (ret)
> goto err_get_training_status;
>
> - dp->link.rate = status[0];
> + dp->link.rate = drm_dp_bw_code_to_link_rate(status[0]);
> dp->link.num_lanes = status[1];
>
> err_get_training_status:
> @@ -647,7 +647,7 @@ int cdn_dp_config_video(struct cdn_dp_device *dp)
> bit_per_pix = (video->color_fmt == YCBCR_4_2_2) ?
> (video->color_depth * 2) : (video->color_depth * 3);
>
> - link_rate = drm_dp_bw_code_to_link_rate(dp->link.rate) / 1000;
> + link_rate = dp->link.rate / 1000;
>
> ret = cdn_dp_reg_write(dp, BND_HSYNC2VSYNC, VIF_BYPASS_INTERLACE);
> if (ret)
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-06-14 12:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-05 8:04 [PATCH] DRM: Rockchip: correct rate in the struct drm_dp_link assignment sandor.yu
2019-06-05 8:04 ` sandor.yu
2019-06-14 12:00 ` Heiko Stuebner
2019-06-14 12:00 ` Heiko Stuebner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.