History

Merge tag 'drm/tegra/for-3.18-rc5' of git://people.freedesktop.org/~tagr/linux into drm-fixes

drm/tegra: Fixes for v3.18-rc5 This is a single patch that fixes the VBLANK machinery after: 7ffd7a68511c drm: Always reject drm_vblank_get() after drm_vblank_off() * tag 'drm/tegra/for-3.18-rc5' of git://people.freedesktop.org/~tagr/linux: drm/tegra: dc: Add missing call to drm_vblank_on()

Dave Airlie committed 12 years ago

Commit bcfef972 parents 3d0f853 8ff64c11 file · +4 −5Browse files

Unified · Split

drivers/gpu/drm/tegra/dc.c+4−5
@@ -736,7 +736,6 @@ static const struct drm_crtc_funcs tegra_crtc_funcs = { · 735 unmodified lines
736736
737737 static void tegra_crtc_disable(struct drm_crtc *crtc)
738738 {
739− struct tegra_dc *dc = to_tegra_dc(crtc);
740739 struct drm_device *drm = crtc->dev;
741740 struct drm_plane *plane;
742741
@@ -752,7 +751,7 @@ static void tegra_crtc_disable(struct drm_crtc *crtc) · 9 unmodified lines
752751 }
753752 }
754753
755− drm_vblank_off(drm, dc->pipe);
754+ drm_crtc_vblank_off(crtc);
756755 }
757756
758757 static bool tegra_crtc_mode_fixup(struct drm_crtc *crtc,
@@ -841,8 +840,6 @@ static int tegra_crtc_mode_set(struct drm_crtc *crtc, · 82 unmodified lines
841840 u32 value;
842841 int err;
843842
844− drm_vblank_pre_modeset(crtc->dev, dc->pipe);
845−
846843 err = tegra_crtc_setup_clk(crtc, mode);
847844 if (err) {
848845 dev_err(dc->dev, "failed to setup clock for CRTC: %d\n", err);
@@ -896,6 +893,8 @@ static void tegra_crtc_prepare(struct drm_crtc *crtc) · 47 unmodified lines
896893 unsigned int syncpt;
897894 unsigned long value;
898895
896+ drm_crtc_vblank_off(crtc);
897+
899898 /* hardware initialization */
900899 reset_control_deassert(dc->rst);
901900 usleep_range(10000, 20000);
@@ -943,7 +942,7 @@ static void tegra_crtc_commit(struct drm_crtc *crtc) · 41 unmodified lines
943942 value = GENERAL_ACT_REQ | WIN_A_ACT_REQ;
944943 tegra_dc_writel(dc, value, DC_CMD_STATE_CONTROL);
945944
946− drm_vblank_post_modeset(crtc->dev, dc->pipe);
945+ drm_crtc_vblank_on(crtc);
947946 }
948947
949948 static void tegra_crtc_load_lut(struct drm_crtc *crtc)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t