From: Imre Deak Date: Mon, 5 Apr 2010 23:02:29 +0000 (+0300) Subject: gpu: pvr: no need to check for retry failures in SGXTestActivePowerEvent X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f20471393128fcbc10c370e0baf61ac1b016d562;p=sgx.git gpu: pvr: no need to check for retry failures in SGXTestActivePowerEvent Powering off can't fail now with a 'retry' error, so we can't have the corresponding condition here. See the similar commits earlier in the patchset for a more detailed explanation. Signed-off-by: Imre Deak CC: Mark Underwood CC: Mark Riding Reviewed-by: Topi Pohjolainen Reviewed-by: Ville Syrjälä --- diff --git a/pvr/sgxutils.c b/pvr/sgxutils.c index 1d693e7..54b0a05 100644 --- a/pvr/sgxutils.c +++ b/pvr/sgxutils.c @@ -94,12 +94,6 @@ void SGXTestActivePowerEvent(struct PVRSRV_DEVICE_NODE *psDeviceNode, PVRSRV_POWER_STATE_D3); if (eError == PVRSRV_OK) SGXPostActivePowerEvent(psDeviceNode, ui32CallerID); - if (eError == PVRSRV_ERROR_RETRY) { - l = readl(&psSGXHostCtl->ui32InterruptClearFlags); - l &= ~PVRSRV_USSE_EDM_INTERRUPT_ACTIVE_POWER; - writel(l, &psSGXHostCtl->ui32InterruptClearFlags); - eError = PVRSRV_OK; - } PDUMPRESUME();