From 7cb48d54da9f25db247d1cbbfeed3766a7672678 Mon Sep 17 00:00:00 2001 From: xubilv Date: Tue, 18 Jul 2017 11:38:16 +0800 Subject: [PATCH] drm/rockchip: dw-mipi-dsi: use positive check for N{H, V}SYNC This matches other drivers. Change-Id: I1e5773b926c274e99ea117a2a0fdc5ab096c49aa Signed-off-by: xubilv --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c index 642caf1247a2..2bf31d5ba7c3 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c @@ -781,9 +781,9 @@ static void dw_mipi_dsi_dpi_config(struct dw_mipi_dsi *dsi, break; } - if (!(mode->flags & DRM_MODE_FLAG_PVSYNC)) + if (mode->flags & DRM_MODE_FLAG_PHSYNC) val |= VSYNC_ACTIVE_LOW; - if (!(mode->flags & DRM_MODE_FLAG_PHSYNC)) + if (mode->flags & DRM_MODE_FLAG_PVSYNC) val |= HSYNC_ACTIVE_LOW; dsi_write(dsi, DSI_DPI_VCID, DPI_VID(dsi->channel)); -- 2.34.1