Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348094
b: refs/heads/master
c: d5757db
h: refs/heads/master
v: v3
  • Loading branch information
Dave Airlie committed Dec 30, 2012
1 parent d02992a commit f7f7489
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 500df2e5d870ef5be3d37f0798f770028b69fd47
refs/heads/master: d5757dbe79870d825d0dec30074d48683e1d7e9a
13 changes: 0 additions & 13 deletions trunk/drivers/gpu/drm/tegra/dc.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ static int tegra_crtc_mode_set(struct drm_crtc *crtc,
return err;
}

mutex_lock(&dc->regs_mutex);

/* program display mode */
tegra_dc_set_timings(dc, mode);

Expand Down Expand Up @@ -270,8 +268,6 @@ static int tegra_crtc_mode_set(struct drm_crtc *crtc,
tegra_dc_writel(dc, 0xff00, DC_WIN_BLEND_NOKEY);
tegra_dc_writel(dc, 0xff00, DC_WIN_BLEND_1WIN);

mutex_unlock(&dc->regs_mutex);

return 0;
}

Expand All @@ -290,8 +286,6 @@ static void tegra_crtc_prepare(struct drm_crtc *crtc)
else
syncpt = SYNCPT_VBLANK0;

mutex_lock(&dc->regs_mutex);

/* initialize display controller */
tegra_dc_writel(dc, 0x00000100, DC_CMD_GENERAL_INCR_SYNCPT_CNTRL);
tegra_dc_writel(dc, 0x100 | syncpt, DC_CMD_CONT_SYNCPT_VSYNC);
Expand Down Expand Up @@ -325,8 +319,6 @@ static void tegra_crtc_prepare(struct drm_crtc *crtc)

value = VBLANK_INT | WIN_A_UF_INT | WIN_B_UF_INT | WIN_C_UF_INT;
tegra_dc_writel(dc, value, DC_CMD_INT_ENABLE);

mutex_unlock(&dc->regs_mutex);
}

static void tegra_crtc_commit(struct drm_crtc *crtc)
Expand All @@ -337,8 +329,6 @@ static void tegra_crtc_commit(struct drm_crtc *crtc)

update_mask = GENERAL_ACT_REQ | WIN_A_ACT_REQ;

mutex_lock(&dc->regs_mutex);

tegra_dc_writel(dc, update_mask << 8, DC_CMD_STATE_CONTROL);

value = tegra_dc_readl(dc, DC_CMD_INT_ENABLE);
Expand All @@ -350,8 +340,6 @@ static void tegra_crtc_commit(struct drm_crtc *crtc)
tegra_dc_writel(dc, value, DC_CMD_INT_MASK);

tegra_dc_writel(dc, update_mask, DC_CMD_STATE_CONTROL);

mutex_unlock(&dc->regs_mutex);
}

static void tegra_crtc_load_lut(struct drm_crtc *crtc)
Expand Down Expand Up @@ -758,7 +746,6 @@ static int tegra_dc_probe(struct platform_device *pdev)
return -ENOMEM;

INIT_LIST_HEAD(&dc->list);
mutex_init(&dc->regs_mutex);
dc->dev = &pdev->dev;

dc->clk = devm_clk_get(&pdev->dev, NULL);
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/gpu/drm/tegra/drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ struct tegra_dc {

struct clk *clk;

struct mutex regs_mutex;
void __iomem *regs;
int irq;

Expand Down

0 comments on commit f7f7489

Please sign in to comment.