<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 20 Dec 2019 at 10:30, Zhihui Chen <<a href="mailto:chenzhihui4@huawei.com">chenzhihui4@huawei.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">both crtc_state->adjusted_mode.hdisplay and<br>
crtc_state->adjusted_mode.vdisplay are 0 when switch dpms off,<br>
return -EINVAL cause switch dpms off fail.<br>
<br>
Signed-off-by: Zhihui Chen <<a href="mailto:chenzhihui4@huawei.com" target="_blank">chenzhihui4@huawei.com</a>><br></blockquote><div><br></div><div>Thanks for the patch.<br>Acked-by: Xinliang Liu <<a href="mailto:xinliang.liu@linaro.org">xinliang.liu@linaro.org</a>><br>Applied to drm-misc-next.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
---<br>
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 3 +++<br>
1 file changed, 3 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c<br>
index 6527a97f68a3..722e369f30d4 100644<br>
--- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c<br>
+++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c<br>
@@ -80,6 +80,9 @@ static int hibmc_plane_atomic_check(struct drm_plane *plane,<br>
return -EINVAL;<br>
}<br>
<br>
+ if (!crtc_state->enable)<br>
+ return 0;<br>
+<br>
if (state->crtc_x + state->crtc_w ><br>
crtc_state->adjusted_mode.hdisplay ||<br>
state->crtc_y + state->crtc_h ><br>
-- <br>
2.20.1<br>
<br>
<br>
</blockquote></div></div>