From patchwork Wed Jan 3 13:35:19 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: 123310 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp10182018qgn; Wed, 3 Jan 2018 05:38:20 -0800 (PST) X-Google-Smtp-Source: ACJfBovOnlTxRsyToTVqxPwAwcbU7dGVHQQUFBgtxSEUdB5annLCFzpWpK03lntCT166DQ5OWHp5 X-Received: by 10.99.121.79 with SMTP id u76mr1233712pgc.337.1514986700245; Wed, 03 Jan 2018 05:38:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514986700; cv=none; d=google.com; s=arc-20160816; b=TKX6lAPkflpuqFjx9vD9WGqP1PKwAcvJS9lmH3aEYMwLOVQWLWXzunNAte6Vpy4kRk PExr2f4tV7ZkpCFTxqy7GXqZH/RYV13bL2KvBz3RdMael/S37nVEtUE1rhFNLCrRQkY1 BQVHarnSXfHQCM1ZJZnyG/4Euy78gDHCRWw7VbB5aMVxz9lHVf9oXx8aVpMwiNQPB8Yi Y9gCfFnaojFIWYomEQajfBIz6DvYjBqbwawnR5kbWnVp4OfzZPX1OGyqIOsGhA4/dJGo +vGwHrOSJpUQFo1eOKReEY07NuoOiRMfJ2i9simpIiQz+aKfkDdH+/V6PHk2SX8vdcw0 0OeA== 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=f9dQEDA5mBUokYXmi7ktB3f8sB58S2z3lJHiV6AMzxU=; b=FZDsTCGe+kNVC1GRnvGqPkfFwlPdGXnm259UUJKXWYmw5trF5acU7gBVKEDKvvzU8s 1m8ZiwObXlZIKsgMPofIQSVE6Rdv9A7qXWkd/XhvgqUvfq9RSb4oZ1R7frKFKRrd3AY9 x6QO3n8lDeFyP09xs0TuN2qfoW9nRLxAuGTJUGgR2glVifdU6fcAS5Zwrc87PYUAjsJh MTAjNQ22iFIR+cnz7d6YPGj3eNGE2j0ADisHTJ3CF7P8rx36EpcWLhp4h2Kbpxadhf0A feQhypV9p2OFDMV3WwQ5kzeH5I83codMDxcrmknr9RVHLFXNgicY234F3wW5O4UxwajQ wVDA== 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 k8si652844pgf.107.2018.01.03.05.38.19; Wed, 03 Jan 2018 05:38:20 -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 S1753083AbeACNiR (ORCPT + 28 others); Wed, 3 Jan 2018 08:38:17 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:50116 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753064AbeACNiO (ORCPT ); Wed, 3 Jan 2018 08:38:14 -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 73B251529; Wed, 3 Jan 2018 05:38:14 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.137]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E8BA93F24A; Wed, 3 Jan 2018 05:38:12 -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 v2 12/27] staging: ccree: failing the suspend is not an error Date: Wed, 3 Jan 2018 13:35:19 +0000 Message-Id: <1514986544-5888-13-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514986544-5888-1-git-send-email-gilad@benyossef.com> References: <1514986544-5888-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 db3b29f..e99c148 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 } }