From: Ben Skeggs Date: Wed, 16 Dec 2009 05:07:45 +0000 (+1000) Subject: drm/nv50: fix suspend/resume delays without firmware present X-Git-Tag: upstream/snapshot3+hdmi~15708^2~58^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65ec01a9406327f22b1c740f8a42cb93eb676eb5;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git drm/nv50: fix suspend/resume delays without firmware present Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_grctx.c b/drivers/gpu/drm/nouveau/nouveau_grctx.c index d5d84c8..419f4c2 100644 --- a/drivers/gpu/drm/nouveau/nouveau_grctx.c +++ b/drivers/gpu/drm/nouveau/nouveau_grctx.c @@ -56,6 +56,9 @@ nouveau_grctx_prog_load(struct drm_device *dev) char name[32]; int ret, i; + if (pgraph->accel_blocked) + return -ENODEV; + if (!pgraph->ctxprog) { sprintf(name, "nouveau/nv%02x.ctxprog", chipset); ret = request_firmware(&fw, name, &dev->pdev->dev);