From patchwork Mon May 20 12:14:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 164624 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp231579ili; Mon, 20 May 2019 05:34:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqw99CYGirZXgEouFdlocmvazv/4DAZkxqtfHA1Bvzl0fhdaWQuVpBcQD2jqOzg998S6bjPL X-Received: by 2002:a65:640c:: with SMTP id a12mr13125158pgv.1.1558355698983; Mon, 20 May 2019 05:34:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558355698; cv=none; d=google.com; s=arc-20160816; b=zKDjfs91PmHzY6Yr4+nnxBHSgQEkvFDd87kva1nkf5rVnEQjd+dMR7TwcexbxOV7p5 vymT9mEz6XXWvPxl3yP2muqfJIYgqw6ypRIg20vschtVlJAZF4x0wPe2nZtFoQKEsbcE z7Hsdpxd3Iij4PyL+0ShR83oUXCF88HfoVIhIb47gfjhuFI+0puIEuneUsztMyojudlF unqf1zDqo/mRcuC8S+DRMCHEHP+XcMKy2cekFB+b49L6m+7tzdrco8WFIi4QUocQneFF ouL0QcJpMoSngkJAXvjA+sl+HZ5RWSsXX5ubx1q/YPElNIVv7TsAGIr5kzuhkv/dFYeo CVdA== 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=fgJqejvZudUUGCL0T94DY5vncGVvJlzeV/HyKODwfyBChpUTMiUQ0oxHzsh76gTVWd 2aslHFXzPQ8qJCC3+edQwVSOEGpnVGQpj9KFXnb0Qh6uXtdMZ+4QBaXYsCQjlgO3Ag2l d408YlJnQFgENZC1lpcaavUUSFmW6yHakjdIoZUvhMWgYws2Z/Q67cjTpCUXmmhxF1Ak +KTaNwMR8n6gayawKRdT05qRzrI+fdVuGiELo1GoqhOnSbEfIkoBnQyBWQfn63gixxs8 xH/XNeshOAXdZ4U6bQpweOCKjCXjx9ejbVwtHKB3HKKjGMHx1bmGvzLRLm5BRyE4Kl5c wSNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w+pOkUbp; 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 e11si12396932pgv.569.2019.05.20.05.34.55; Mon, 20 May 2019 05:34:58 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=w+pOkUbp; 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 S2390823AbfETMdy (ORCPT + 30 others); Mon, 20 May 2019 08:33:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:51014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390807AbfETMdw (ORCPT ); Mon, 20 May 2019 08:33:52 -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 22295204FD; Mon, 20 May 2019 12:33:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558355631; bh=N9QFeO4yQVMQCWzkv0CVm3igV/vAF6zg1t8BEEZGIbY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w+pOkUbpOVhMb+J/2Q+eKdsE7FBJhDA10aLQhUnQpMZ8UUTsfnw9Dz9D4pCJHfyrq 8WPUZj+7uBRrMWjqLCJzxB2QjtjeniMMsdB9TG6vJXGw9JaAuC7cYOAzMLkDXT8XmS cGBm2Zig3rNvHvEBZeTyxDzGjBlskFloolQ7ufFc= 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.1 066/128] crypto: ccree - HOST_POWER_DOWN_EN should be the last CC access during suspend Date: Mon, 20 May 2019 14:14:13 +0200 Message-Id: <20190520115254.272856830@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190520115249.449077487@linuxfoundation.org> References: <20190520115249.449077487@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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; }