Skip to content

Commit

Permalink
Merge branch 'drm-atmel-hlcdc-fixes' of git://github.com/bbrezillon/l…
Browse files Browse the repository at this point in the history
…inux-at91 into drm-fixes

minor atmel hclcdc fixes.

* 'drm-atmel-hlcdc-fixes' of git://github.com/bbrezillon/linux-at91:
  drm: atmel-hlcdc: remove clock polarity from crtc driver
  drm: atmel-hlcdc: remove useless pm_runtime_put_sync in probe
  drm: atmel-hlcdc: reset layer A2Q and UPDATE bits when disabling it
  • Loading branch information
airlied committed Feb 27, 2015
2 parents d1e488f + 0bb59cb commit 21689a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static int atmel_hlcdc_crtc_mode_set(struct drm_crtc *c,
(adj->crtc_hdisplay - 1) |
((adj->crtc_vdisplay - 1) << 16));

cfg = ATMEL_HLCDC_CLKPOL;
cfg = 0;

prate = clk_get_rate(crtc->dc->hlcdc->sys_clk);
mode_rate = mode->crtc_clock * 1000;
Expand Down
2 changes: 0 additions & 2 deletions drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,6 @@ static int atmel_hlcdc_dc_load(struct drm_device *dev)

pm_runtime_enable(dev->dev);

pm_runtime_put_sync(dev->dev);

ret = atmel_hlcdc_dc_modeset_init(dev);
if (ret < 0) {
dev_err(dev->dev, "failed to initialize mode setting\n");
Expand Down
3 changes: 2 additions & 1 deletion drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ int atmel_hlcdc_layer_disable(struct atmel_hlcdc_layer *layer)

/* Disable the layer */
regmap_write(regmap, desc->regs_offset + ATMEL_HLCDC_LAYER_CHDR,
ATMEL_HLCDC_LAYER_RST);
ATMEL_HLCDC_LAYER_RST | ATMEL_HLCDC_LAYER_A2Q |
ATMEL_HLCDC_LAYER_UPDATE);

/* Clear all pending interrupts */
regmap_read(regmap, desc->regs_offset + ATMEL_HLCDC_LAYER_ISR, &isr);
Expand Down

0 comments on commit 21689a4

Please sign in to comment.