Skip to content

Commit

Permalink
Merge tag 'drm-atmel-hlcdc/fixes-for-4.2' of https://github.com/bbrez…
Browse files Browse the repository at this point in the history
…illon/linux-at91 into drm-fixes

single hlcdc fix.

* tag 'drm-atmel-hlcdc/fixes-for-4.2' of https://github.com/bbrezillon/linux-at91:
  drm: atmel-hlcdc: fix vblank initial state
  • Loading branch information
Dave Airlie committed Jul 24, 2015
2 parents b37b425 + 8c4b4b0 commit 02bbc4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ int atmel_hlcdc_crtc_create(struct drm_device *dev)
planes->overlays[i]->base.possible_crtcs = 1 << crtc->id;

drm_crtc_helper_add(&crtc->base, &lcdc_crtc_helper_funcs);
drm_crtc_vblank_reset(&crtc->base);

dc->crtc = &crtc->base;

Expand Down
12 changes: 6 additions & 6 deletions drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,20 +313,20 @@ static int atmel_hlcdc_dc_load(struct drm_device *dev)

pm_runtime_enable(dev->dev);

ret = atmel_hlcdc_dc_modeset_init(dev);
ret = drm_vblank_init(dev, 1);
if (ret < 0) {
dev_err(dev->dev, "failed to initialize mode setting\n");
dev_err(dev->dev, "failed to initialize vblank\n");
goto err_periph_clk_disable;
}

drm_mode_config_reset(dev);

ret = drm_vblank_init(dev, 1);
ret = atmel_hlcdc_dc_modeset_init(dev);
if (ret < 0) {
dev_err(dev->dev, "failed to initialize vblank\n");
dev_err(dev->dev, "failed to initialize mode setting\n");
goto err_periph_clk_disable;
}

drm_mode_config_reset(dev);

pm_runtime_get_sync(dev->dev);
ret = drm_irq_install(dev, dc->hlcdc->irq);
pm_runtime_put_sync(dev->dev);
Expand Down

0 comments on commit 02bbc4d

Please sign in to comment.