diff options
author | Thomas White <taw@bitwiz.org.uk> | 2009-05-03 17:10:01 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2009-05-03 17:10:01 +0100 |
commit | 57da84ab230bb2860cb3f475a9f005444fa28c92 (patch) | |
tree | f5726abf5b3f60a89938a6ebc741197da38b471c /drivers/mfd/glamo | |
parent | b613ecd9bb109a686413f5b0d96ea21d9decb8fb (diff) |
Reset command queue on resume
Reinitialise the command queue on resume, so the fun can continue...
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
Diffstat (limited to 'drivers/mfd/glamo')
-rw-r--r-- | drivers/mfd/glamo/glamo-drm-drv.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/mfd/glamo/glamo-drm-drv.c b/drivers/mfd/glamo/glamo-drm-drv.c index cadf0545065..d08f84089a5 100644 --- a/drivers/mfd/glamo/glamo-drm-drv.c +++ b/drivers/mfd/glamo/glamo-drm-drv.c @@ -343,9 +343,27 @@ static int glamodrm_remove(struct platform_device *pdev) return 0; } + +static int glamodrm_suspend(struct platform_device *pdev) +{ + /* glamo_core.c will suspend the engines for us */ + return 0; +} + + +static int glamodrm_resume(struct platform_device *pdev) +{ + struct glamodrm_handle *gdrm = platform_get_drvdata(pdev); + glamo_cmdq_init(gdrm); + return 0; +} + + static struct platform_driver glamodrm_driver = { .probe = glamodrm_probe, .remove = glamodrm_remove, + .suspend = glamodrm_suspend, + .resume = glamodrm_resume, .driver = { .name = "glamo-cmdq", .owner = THIS_MODULE, |