From patchwork Mon Jan 1 12:06:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 123043 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp7796549qgn; Mon, 1 Jan 2018 04:09:28 -0800 (PST) X-Google-Smtp-Source: ACJfBoudHnLAJoibrfo1YUi4h+1bAG2VJ++JIsmUURxDkMw0CnReWW3M9nKzbzpwWvkWu7q8j4Yj X-Received: by 10.84.130.41 with SMTP id 38mr43567845plc.131.1514808568196; Mon, 01 Jan 2018 04:09:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514808568; cv=none; d=google.com; s=arc-20160816; b=OooiBvQxIRKkunp2/quuxTHSt4GIMrg1edzVQADMqJ2j3AzJldVcvAjPW7aLPcloS4 2MuJoXPmzZW+l9VpFr8VNvfdQf3w6KT5egq+DXGtsvSUZWMN2MQcFjDiU7Db6CWD4XLO LD841ks5g5uw68s1obSLuz47yQlLGwERlkExLf/4m2oDiw/VMhaCLak4vPtFaZTloVCc mF4YuK0H/iWTR00GgzsRF+2lZdmZUhrHha53sRngPi9rYBfTBUnvawF00n4V0VPUGWP2 VdjVztv6l4R5pyJLj10VoJzanpWCYUbiIh/51+zRbgKUPH9KphWXBvEVluyftELPqTdB HEPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=pE87qyY2YKR0YtqX3gSkLtcQUCdr2HU26+JRRhExGMg=; b=ICIBBS8/NdqTmbaWnOzivJoPYEqLAieY14OqAvSBsTxkL4hzFFU5g1aLEyOZscxPEh LZ1RjvHUAWzuKGUy8/8M1yu1o7pLv88U0lov4bN8lPm7pnOfj4hNuIghUgTZJwK95KKJ T+i+a2TWajqJtM/0mJJATo/cnWLtKoq2nzziH/LKJehhZs2nREC4YO0P+mumn9RJt/WL GPq1CxtIj9cdP70t0HF/XTUvmHx8tJw0oOLi/JLMKfeTTIYEDEougMDSYjRgzdnULg9t cgwIOuu2cahtBiS6KFAIKQvbiL2yivIEqTaOhxcI/7++IbBRvNN37248cdn9i/SDP0D4 YzRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si32007403plo.366.2018.01.01.04.09.28; Mon, 01 Jan 2018 04:09:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751538AbeAAMJ0 (ORCPT + 1 other); Mon, 1 Jan 2018 07:09:26 -0500 Received: from foss.arm.com ([217.140.101.70]:59146 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751531AbeAAMJZ (ORCPT ); Mon, 1 Jan 2018 07:09:25 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DC7C980D; Mon, 1 Jan 2018 04:09:24 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.158]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 886C23F41F; Mon, 1 Jan 2018 04:09:22 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org Subject: [PATCH 12/26] staging: ccree: failing the suspend is not an error Date: Mon, 1 Jan 2018 12:06:39 +0000 Message-Id: <1514808421-21993-13-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514808421-21993-1-git-send-email-gilad@benyossef.com> References: <1514808421-21993-1-git-send-email-gilad@benyossef.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org PM suspend returning a none zero value is not an error. It simply indicates a suspend is not advised right now so don't treat it as an error. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_request_mgr.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ccree/ssi_request_mgr.c b/drivers/staging/ccree/ssi_request_mgr.c index 530ba7e..e0b1d95 100644 --- a/drivers/staging/ccree/ssi_request_mgr.c +++ b/drivers/staging/ccree/ssi_request_mgr.c @@ -598,9 +598,6 @@ static void proc_completions(struct cc_drvdata *drvdata) drvdata->request_mgr_handle; unsigned int *tail = &request_mgr_handle->req_queue_tail; unsigned int *head = &request_mgr_handle->req_queue_head; -#if defined(CONFIG_PM) - int rc = 0; -#endif while (request_mgr_handle->axi_completed) { request_mgr_handle->axi_completed--; @@ -625,10 +622,7 @@ static void proc_completions(struct cc_drvdata *drvdata) dev_dbg(dev, "Request completed. axi_completed=%d\n", request_mgr_handle->axi_completed); #if defined(CONFIG_PM) - rc = cc_pm_put_suspend(dev); - if (rc) - dev_err(dev, "Failed to set runtime suspension %d\n", - rc); + cc_pm_put_suspend(dev); #endif } }