From: xubilv Date: Tue, 18 Jul 2017 03:38:16 +0000 (+0800) Subject: drm/rockchip: dw-mipi-dsi: use positive check for N{H, V}SYNC X-Git-Tag: release-20171130_firefly~4^2~133 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7cb48d54da9f25db247d1cbbfeed3766a7672678;p=firefly-linux-kernel-4.4.55.git drm/rockchip: dw-mipi-dsi: use positive check for N{H, V}SYNC This matches other drivers. Change-Id: I1e5773b926c274e99ea117a2a0fdc5ab096c49aa Signed-off-by: xubilv --- 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));