From 57da84ab230bb2860cb3f475a9f005444fa28c92 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 3 May 2009 17:10:01 +0100 Subject: Reset command queue on resume Reinitialise the command queue on resume, so the fun can continue... Signed-off-by: Thomas White --- drivers/mfd/glamo/glamo-drm-drv.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'drivers/mfd/glamo/glamo-drm-drv.c') 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, -- cgit v1.2.3