From patchwork Mon May 20 12:14:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 164615 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp225835ili; Mon, 20 May 2019 05:30:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjLVyJi3cbEY/YtzaP/mmJqR2v7hWmTzObcMlIMJdjIR+BW72Y2ZMwkf1GasgQbStHDLRY X-Received: by 2002:a62:7d10:: with SMTP id y16mr80044851pfc.116.1558355405507; Mon, 20 May 2019 05:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558355405; cv=none; d=google.com; s=arc-20160816; b=06OZoveWS1IvKusTL+Vb+SiCIW9zBJlFvqQGHATXBisFcZOSa6s30SWjubC4F8VpRT 58pso4z4Q1t1fzqlqNdULmbiumMV0FiiQHomuuIAfkDfOhNtXj6EBA2bEVA4dLutw5LD Hxq9Yv5aY4BxBjn/wL/IPXXXU25GjhBJDZyUl4CvSlLJyBVP3VWc64LOWNNr4jcGGURq 61UIpGU1C9XrCsrulBFysQ7khTLCk4xW8E0onRbKxIgEkZp3URFhNJgClPdhYuCjmzBA 3pagZ+8MavVlUS/Gq0XCeNe8D79x8UzuVIkxErYgKclHlXePYrR50puA7Px/pXUMuEmV UOOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MQsQd7JjODRrsK+dQeyghBZyBB4P818m4ncJkixtdw8=; b=fy4ScDegl6PWQOO1oirG2VNT1jayfarU3c0ObQK8Bg6J298r1C/ABT4BKM6af6/wlr SFfH4ErDcOOhtNu8Zq4vghVTkgP6/3l9sjmgBle+MPV6j+HuPCuuWKUm7oTIW5VUqI7/ EpaTUQkjdG7I+S1v0YI6MQuGW1L8mKuIXPm/TGrvSpQBLfEBxcKYhUzc0japvTmdFuMU iDT0VFwcB2ARe+fEDl/6a2HT5EOsan/kehOYTkh9vKDrMTDCu2eA+vDHXgGmbVyR+TS6 sCU6X0rAkBZrVcT1yYBa4hC7b3PyRxkeaQdU3aQOJN2wF8onmiFgdiUFkDs/flMueRJb /baA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UTYN4nPT; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 186si18145232pfc.247.2019.05.20.05.30.05; Mon, 20 May 2019 05:30:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UTYN4nPT; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390007AbfETMaD (ORCPT + 14 others); Mon, 20 May 2019 08:30:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:46274 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390019AbfETMaC (ORCPT ); Mon, 20 May 2019 08:30:02 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 96FDD20645; Mon, 20 May 2019 12:30:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558355402; bh=N9QFeO4yQVMQCWzkv0CVm3igV/vAF6zg1t8BEEZGIbY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UTYN4nPTb3+TFBbaPSImEcS2aed5ThrLf2/uU/EKJU5ow83PFZrq+fia7916yXczw MU2Ew7UCDsLK37W9T/awlSJ5iBPR2tbJ5GVhSnlGmoinNsWtj/BHDaMtm6RajtuWyF MRez9lFPlWZDR1Do1BBwJplPY02vCkR1Q7noaQQU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ofir Drang , Gilad Ben-Yossef , Herbert Xu Subject: [PATCH 5.0 064/123] crypto: ccree - HOST_POWER_DOWN_EN should be the last CC access during suspend Date: Mon, 20 May 2019 14:14:04 +0200 Message-Id: <20190520115249.067751301@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190520115245.439864225@linuxfoundation.org> References: <20190520115245.439864225@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Ofir Drang commit 3499efbeed39d114873267683b9e776bcb34b058 upstream. During power management suspend the driver need to prepare the device for the power down operation and as a last indication write to the HOST_POWER_DOWN_EN register which signals to the hardware that The ccree is ready for power down. Signed-off-by: Ofir Drang Signed-off-by: Gilad Ben-Yossef Cc: stable@vger.kernel.org # v4.19+ Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- drivers/crypto/ccree/cc_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/crypto/ccree/cc_pm.c +++ b/drivers/crypto/ccree/cc_pm.c @@ -25,13 +25,13 @@ int cc_pm_suspend(struct device *dev) int rc; dev_dbg(dev, "set HOST_POWER_DOWN_EN\n"); - cc_iowrite(drvdata, CC_REG(HOST_POWER_DOWN_EN), POWER_DOWN_ENABLE); rc = cc_suspend_req_queue(drvdata); if (rc) { dev_err(dev, "cc_suspend_req_queue (%x)\n", rc); return rc; } fini_cc_regs(drvdata); + cc_iowrite(drvdata, CC_REG(HOST_POWER_DOWN_EN), POWER_DOWN_ENABLE); cc_clk_off(drvdata); return 0; }