gpu: pvr: no need to check for retry failures in SGXScheduleCCBCommandKM
authorImre Deak <imre.deak@nokia.com>
Mon, 5 Apr 2010 22:43:29 +0000 (01:43 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:09:41 +0000 (21:09 +0300)
Powering on the device can't fail any more with a 'retry' error so we can't
have the corresponding condition here. See the similar commit 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 beb8a57..1d693e7 100644 (file)
@@ -275,19 +275,8 @@ enum PVRSRV_ERROR SGXScheduleCCBCommandKM(
        if (eError == PVRSRV_OK) {
                psDeviceNode->bReProcessDeviceCommandComplete = IMG_FALSE;
        } else {
-               if (eError == PVRSRV_ERROR_RETRY) {
-                       if (ui32CallerID == ISR_ID) {
-                               psDeviceNode->bReProcessDeviceCommandComplete =
-                                   IMG_TRUE;
-                               eError = PVRSRV_OK;
-                       } else {
-
-                       }
-               } else
-                       PVR_DPF(PVR_DBG_ERROR, "SGXScheduleCCBCommandKM "
-                                       "failed to acquire lock - "
-                                        "ui32CallerID:%ld eError:%lu",
-                                        ui32CallerID, eError);
+               PVR_DPF(PVR_DBG_ERROR, "%s: can't power on device (%d)",
+                                       __func__, eError);
                return eError;
        }