Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp85806yba; Mon, 20 May 2019 05:27:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIv4BW1jMxvJgJlak0Kvds+NiX9945BNmin5N7vB0+atfk6fGQjZvwJihfDexM79ih42XM X-Received: by 2002:a17:902:8bca:: with SMTP id r10mr75934068plo.67.1558355263047; Mon, 20 May 2019 05:27:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558355263; cv=none; d=google.com; s=arc-20160816; b=vx9/Ad9c1cM8kCQNir0ZgD3bXiFf0hsxaknJ7kr5Wzqmk1jlO37V47h6Pw2UQdTxwO z0mqdVHgPS6ScrgcQYx4x1AD6+Zky/I3ru6XcSIMDcepBLhDKscsrOY/J2gWz5bnUDqT gX75qimm8iypQRcXN2rVySgdmhTHSo1CgjGww1dRtydK2htzYy37DMbGHCecjaRQag+3 iJe9sqp5xl1DoC48tBdWvZhCJy9wMNE1Jq/Gfd/Ok1xF3VhtdfAi6lLi0kW37v4xCZdx vz5lcZaN4FNdZYOtnUzyHsbVk+SqH53Z0MGAN0k1fNMwwa9q6jf29HxCR5wyl9BsQpqn BQDA== 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=WFUb5Y703vS4DQHno159wt5/Pf4FytGihac33iPijTV6qGpqw/hVXZYsSTsnbAvjW5 d0fHmpaNKPUCUOnbngMhS9LlNrr5OD7qU58m+ViV1xPBbTIoNrPVEn/YmUjF8rwxrIuj 5avllc2PR1PDKKT4y9ORFAalE8VunAU4ABzx13v7cZgaWUmFtSlQ7Rr8f3Py2Wd7OvSI Mf1PUerv71TrP9KUxj7oFhqPbuDZ79hNUd8kYrbWUazbxQ3AMs1vThvmapwWlWRvu5bi kSWoDQKTZ0XXgoZkUPcsPny7wJqHnk8T1cg8j80t51eL28cN/nIkzwbmptD9I2dNHlVg GmVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ahne2PDQ; 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 i6si20003156pfc.158.2019.05.20.05.27.28; Mon, 20 May 2019 05:27:43 -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=ahne2PDQ; 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 S2388911AbfETMYq (ORCPT + 99 others); Mon, 20 May 2019 08:24:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:39666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388502AbfETMYp (ORCPT ); Mon, 20 May 2019 08:24:45 -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 3568421479; Mon, 20 May 2019 12:24:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558355084; bh=N9QFeO4yQVMQCWzkv0CVm3igV/vAF6zg1t8BEEZGIbY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ahne2PDQSWZq8HCKGvhI9xFDo26wLPwCLzV+WBr0bt4q1qC263BVV18NUbP2uqZjU qYzafox2TF8bwAMoSxp0nrVpUabnPxRR+OS0uQjresGdHxLkQiS9+fcjjhcpzW3opX PI9D0xuJoKMaaqf5mVh3QLs4Kc8SchpI79wc/vzE= 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 4.19 050/105] crypto: ccree - HOST_POWER_DOWN_EN should be the last CC access during suspend Date: Mon, 20 May 2019 14:13:56 +0200 Message-Id: <20190520115250.492893602@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190520115247.060821231@linuxfoundation.org> References: <20190520115247.060821231@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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; }