]> git.baikalelectronics.ru Git - kernel.git/commit
drm/hisilicon/hibmc: fix 'xset dpms force off' fail
authorZhihui Chen <chenzhihui4@huawei.com>
Fri, 20 Dec 2019 02:30:04 +0000 (10:30 +0800)
committerXinliang Liu <xinliang.liu@linaro.org>
Thu, 13 Feb 2020 09:52:40 +0000 (09:52 +0000)
commitb42a1b0220c1ba7f92fda88863849caa0bd4bdea
tree31c316fd6eebeed1f6f2a3809703f9a22c6e1ca4
parent58fc8ddd18b77e67e0e9663ced5b5b5e12649096
drm/hisilicon/hibmc: fix 'xset dpms force off' fail

both crtc_state->adjusted_mode.hdisplay and
crtc_state->adjusted_mode.vdisplay are 0 when switch dpms off,
return -EINVAL cause switch dpms off fail.

Signed-off-by: Zhihui Chen <chenzhihui4@huawei.com>
Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
Acked-by: Xinliang Liu <xinliang.liu@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191220023004.2658-1-chenzhihui4@huawei.com
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c