diff options
author | Dave Airlie <airlied@redhat.com> | 2017-11-01 21:36:55 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-11-01 21:36:55 -0400 |
commit | 0a4334c9e5405f836c46375c6e279cfdda7da6b5 (patch) | |
tree | 8995a2784e9f392f284a2b8b61b0d7238842bb44 | |
parent | 87331c83797b5d5763a82f09f26fbb6e1a7e6661 (diff) | |
parent | a2f042430784d86eb2b7a6d2a869f552da30edba (diff) |
Merge tag 'drm-hisilicon-next-2017-11-01' of github.com:xin3liang/linux into drm-next
For 4.15
* tag 'drm-hisilicon-next-2017-11-01' of github.com:xin3liang/linux:
drm/hisilicon: Ensure LDI regs are properly configured.
-rw-r--r-- | drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c index 9823477b1855..2269be91f3e1 100644 --- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | |||
@@ -534,9 +534,12 @@ static void ade_crtc_atomic_begin(struct drm_crtc *crtc, | |||
534 | { | 534 | { |
535 | struct ade_crtc *acrtc = to_ade_crtc(crtc); | 535 | struct ade_crtc *acrtc = to_ade_crtc(crtc); |
536 | struct ade_hw_ctx *ctx = acrtc->ctx; | 536 | struct ade_hw_ctx *ctx = acrtc->ctx; |
537 | struct drm_display_mode *mode = &crtc->state->mode; | ||
538 | struct drm_display_mode *adj_mode = &crtc->state->adjusted_mode; | ||
537 | 539 | ||
538 | if (!ctx->power_on) | 540 | if (!ctx->power_on) |
539 | (void)ade_power_up(ctx); | 541 | (void)ade_power_up(ctx); |
542 | ade_ldi_set_mode(acrtc, mode, adj_mode); | ||
540 | } | 543 | } |
541 | 544 | ||
542 | static void ade_crtc_atomic_flush(struct drm_crtc *crtc, | 545 | static void ade_crtc_atomic_flush(struct drm_crtc *crtc, |