Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307385
b: refs/heads/master
c: 6607e02
h: refs/heads/master
i:
  307383: 4dc9ef1
v: v3
  • Loading branch information
Alan Cox authored and Dave Airlie committed May 17, 2012
1 parent fc474bf commit 94d8048
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 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: f9aa76a85248565ff13dc0e10633c4343a059f71
refs/heads/master: 6607e024014e4920e8d3e43bcfeec0436d43d980
10 changes: 10 additions & 0 deletions trunk/drivers/gpu/drm/gma500/psb_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,17 @@ static int psb_chip_setup(struct drm_device *dev)
return 0;
}

/* Not exactly an erratum more an irritation */
static int psb_chip_errata(struct drm_device *dev)
{
struct drm_psb_private *dev_priv = dev->dev_private;
psb_lid_timer_init(dev_priv);
}

static void psb_chip_teardown(struct drm_device *dev)
{
struct drm_psb_private *dev_priv = dev->dev_private;
psb_lid_timer_takedown(dev_priv);
gma_intel_teardown_gmbus(dev);
}

Expand All @@ -367,6 +376,7 @@ const struct psb_ops psb_chip_ops = {
.sgx_offset = PSB_SGX_OFFSET,
.chip_setup = psb_chip_setup,
.chip_teardown = psb_chip_teardown,
.errata = psb_chip_errata,

.crtc_helper = &psb_intel_helper_funcs,
.crtc_funcs = &psb_intel_crtc_funcs,
Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/gpu/drm/gma500/psb_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ static int psb_driver_unload(struct drm_device *dev)
psb_modeset_cleanup(dev);

if (dev_priv) {
psb_intel_opregion_fini(dev);
psb_lid_timer_takedown(dev_priv);

if (dev_priv->ops->chip_teardown)
dev_priv->ops->chip_teardown(dev);

psb_intel_opregion_fini(dev);
psb_do_takedown(dev);


Expand Down Expand Up @@ -336,8 +336,6 @@ static int psb_driver_load(struct drm_device *dev, unsigned long chipset)
PSB_WSGX32(0x30000000, PSB_CR_BIF_3D_REQ_BASE);

acpi_video_register();
if (dev_priv->opregion.lid_state)
psb_lid_timer_init(dev_priv);

ret = drm_vblank_init(dev, dev_priv->num_pipe);
if (ret)
Expand Down

0 comments on commit 94d8048

Please sign in to comment.