From: Imre Deak Date: Mon, 5 Apr 2010 22:43:29 +0000 (+0300) Subject: gpu: pvr: no need to check for retry failures in SGXScheduleCCBCommandKM X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2b98ecd962419ca6bb52e70627c4b721398f2e5;p=sgx.git gpu: pvr: no need to check for retry failures in SGXScheduleCCBCommandKM 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 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 beb8a57..1d693e7 100644 --- a/pvr/sgxutils.c +++ b/pvr/sgxutils.c @@ -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; }