diff options
author | Thierry Reding <thierry.reding@avionic-design.de> | 2013-04-22 21:22:14 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2013-05-25 12:32:49 +0200 |
commit | 603f0cc9482e5e5996b84d3ffb5578526974809c (patch) | |
tree | 853097ad3ef72a2fe8d801f26270eb2a51344e44 /drivers/gpu/host1x | |
parent | drm/tegra: Don't disable unused planes (diff) | |
download | linux-603f0cc9482e5e5996b84d3ffb5578526974809c.tar.xz linux-603f0cc9482e5e5996b84d3ffb5578526974809c.zip |
drm/tegra: Explicitly set irq_enabled
Since the Tegra DRM driver doesn't use the drm_irq_install() helper, the
irq_enabled flag needs to be set manually in order to make functionality
such as the DRM_IOCTL_WAIT_VBLANK work properly.
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers/gpu/host1x')
-rw-r--r-- | drivers/gpu/host1x/drm/drm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/drm/drm.c b/drivers/gpu/host1x/drm/drm.c index 2b561c9118c6..78b07db37cf8 100644 --- a/drivers/gpu/host1x/drm/drm.c +++ b/drivers/gpu/host1x/drm/drm.c @@ -257,6 +257,13 @@ static int tegra_drm_load(struct drm_device *drm, unsigned long flags) if (err < 0) return err; + /* + * We don't use the drm_irq_install() helpers provided by the DRM + * core, so we need to set this manually in order to allow the + * DRM_IOCTL_WAIT_VBLANK to operate correctly. + */ + drm->irq_enabled = 1; + err = drm_vblank_init(drm, drm->mode_config.num_crtc); if (err < 0) return err; |