From patchwork Sun Jan 7 12:14:23 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: 123656 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1548175qgn; Sun, 7 Jan 2018 04:17:41 -0800 (PST) X-Google-Smtp-Source: ACJfBosx454cPTr78TeLIvwmO87UVjmQR0Npc5/ak5cqiWLouaJ0Shta5BxPZVm0J9OGHLpK5oBa X-Received: by 10.84.210.102 with SMTP id z93mr9050257plh.313.1515327461840; Sun, 07 Jan 2018 04:17:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515327461; cv=none; d=google.com; s=arc-20160816; b=ak4aM49Grq3cHSen+EHq6yKMnLKiHr1I9aly7mCRmR2Fh9H9UcwA/b3sQ/97M5TEiv 50s1AmJ4k4l01sCB/5kuGLTIKGhK1/1ldDl9ZZJUrkjHjD4TF1F14d0fKe/xBD1htldf z4ak97KXkULr3HcavDg3vfKBssZf55KC7DGZ8TbMUtIEe3Kp+Aqu0vacr2ir0NTMCm0h lWZW5Gbz/kbf2PSgecHHDHfC56CNrog0mNxi4fSZgq7z6arFOduSJ7HEGeJUi/1Wk1LY k2OA885sFFbrG/JoTMJfu7WEafpq9Xt7erp0GH7GBIx7s09ixXJv3q4Gyksv1pPebbNs uZOA== 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=qZ30rwiaScrvfUq11zpI0YStoi2meWLva582zxs3Ak0=; b=h63sKvIm92MSDZ4lKweegHS1pw/mTMqR2/gSE55IQq42jn2OWcRCz7FGePzRi01+UA hXEW6fVNvQOk29+lF1uHmuLdzhs8/4z3xFARn85WvR8WgjKZtjRM5T/o0kj8Iy0i1HW/ wIyc1JBrRq/WtloYg9V63C8i2M362i+U96H5P8a6cDjbC95qIbJzNleg1xxH7SNkTn7b 4IckxNKVCCdw1X9Iq2fq69y6Atwi2CAlHmlxiosnJ2g4zAHSev7DbQbA5exQWMSYw3AD 8SNWuTaVQwzYSyHEqkmZfKtpXDUiUGxZsDf48pVgyoaUHaGPXR5i/khnAuPb8llMMa5k CKyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 m12si2014836pln.776.2018.01.07.04.17.41; Sun, 07 Jan 2018 04:17:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754011AbeAGMRk (ORCPT + 28 others); Sun, 7 Jan 2018 07:17:40 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:57508 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753826AbeAGMRi (ORCPT ); Sun, 7 Jan 2018 07:17:38 -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 9D71A1435; Sun, 7 Jan 2018 04:17:38 -0800 (PST) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C42EF3F581; Sun, 7 Jan 2018 04:17:36 -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 v3 12/27] staging: ccree: failing the suspend is not an error Date: Sun, 7 Jan 2018 12:14:23 +0000 Message-Id: <1515327285-8948-13-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515327285-8948-1-git-send-email-gilad@benyossef.com> References: <1515327285-8948-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 1d13756..ff751d3 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 } }