All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fb: exynos: Fix MIPI/DSI front/back porch settings
@ 2012-03-08 15:35 Laurent Pinchart
  2012-03-09  0:07 ` Donghwa Lee
  0 siblings, 1 reply; 2+ messages in thread
From: Laurent Pinchart @ 2012-03-08 15:35 UTC (permalink / raw)
  To: linux-fbdev

The exynos_mipi_dsi_set_main_disp_[hv]porch() functions take front and
back porch arguments in that order. This maps to the fb_videomode
right/lower_margin and left/upper_margin respectively. Fix the caller
accordingly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 drivers/video/exynos/exynos_mipi_dsi_common.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/video/exynos/exynos_mipi_dsi_common.c b/drivers/video/exynos/exynos_mipi_dsi_common.c
index 14909c1..99f6451 100644
--- a/drivers/video/exynos/exynos_mipi_dsi_common.c
+++ b/drivers/video/exynos/exynos_mipi_dsi_common.c
@@ -738,11 +738,11 @@ int exynos_mipi_dsi_set_display_mode(struct mipi_dsim_device *dsim,
 		if (dsim_config->auto_vertical_cnt = 0) {
 			exynos_mipi_dsi_set_main_disp_vporch(dsim,
 				dsim_config->cmd_allow,
-				timing->upper_margin,
-				timing->lower_margin);
+				timing->lower_margin,
+				timing->upper_margin);
 			exynos_mipi_dsi_set_main_disp_hporch(dsim,
-				timing->left_margin,
-				timing->right_margin);
+				timing->right_margin,
+				timing->left_margin);
 			exynos_mipi_dsi_set_main_disp_sync_area(dsim,
 				timing->vsync_len,
 				timing->hsync_len);
-- 
Regards,

Laurent Pinchart


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] fb: exynos: Fix MIPI/DSI front/back porch settings
  2012-03-08 15:35 [PATCH] fb: exynos: Fix MIPI/DSI front/back porch settings Laurent Pinchart
@ 2012-03-09  0:07 ` Donghwa Lee
  0 siblings, 0 replies; 2+ messages in thread
From: Donghwa Lee @ 2012-03-09  0:07 UTC (permalink / raw)
  To: linux-fbdev

Hi, Laurent,

On Fri, Mar 9, 2012 at 00:35 AM, Laurent Pinchart wrote:

> The exynos_mipi_dsi_set_main_disp_[hv]porch() functions take front and
> back porch arguments in that order. This maps to the fb_videomode
> right/lower_margin and left/upper_margin respectively. Fix the caller
> accordingly.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
>  drivers/video/exynos/exynos_mipi_dsi_common.c |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 

It looks good to me.

Acked-by: Donghwa Lee <dh09.lee@samsung.com>

> diff --git a/drivers/video/exynos/exynos_mipi_dsi_common.c b/drivers/video/exynos/exynos_mipi_dsi_common.c
> index 14909c1..99f6451 100644
> --- a/drivers/video/exynos/exynos_mipi_dsi_common.c
> +++ b/drivers/video/exynos/exynos_mipi_dsi_common.c
> @@ -738,11 +738,11 @@ int exynos_mipi_dsi_set_display_mode(struct mipi_dsim_device *dsim,
>  		if (dsim_config->auto_vertical_cnt = 0) {
>  			exynos_mipi_dsi_set_main_disp_vporch(dsim,
>  				dsim_config->cmd_allow,
> -				timing->upper_margin,
> -				timing->lower_margin);
> +				timing->lower_margin,
> +				timing->upper_margin);
>  			exynos_mipi_dsi_set_main_disp_hporch(dsim,
> -				timing->left_margin,
> -				timing->right_margin);
> +				timing->right_margin,
> +				timing->left_margin);
>  			exynos_mipi_dsi_set_main_disp_sync_area(dsim,
>  				timing->vsync_len,
>  				timing->hsync_len);



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-09  0:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-08 15:35 [PATCH] fb: exynos: Fix MIPI/DSI front/back porch settings Laurent Pinchart
2012-03-09  0:07 ` Donghwa Lee

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.