gpu: pvr: no need to check for retry failures in SGXTestActivePowerEvent
authorImre Deak <imre.deak@nokia.com>
Mon, 5 Apr 2010 23:02:29 +0000 (02:02 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:09:41 +0000 (21:09 +0300)
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 <imre.deak@nokia.com>
CC: Mark Underwood <mark.underwood@imgtec.com>
CC: Mark Riding <mark.riding@imgtec.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@nokia.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@nokia.com>
pvr/sgxutils.c

index 1d693e7..54b0a05 100644 (file)
@@ -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();