Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4159484ybc; Tue, 26 Nov 2019 04:53:17 -0800 (PST) X-Google-Smtp-Source: APXvYqxCBhif5225AgMw3yByAs+IjYBUkZGI3nkErc66cbRZTwUfQaXj5rCA3dyBBtFDLIHORWlI X-Received: by 2002:a17:906:5397:: with SMTP id g23mr41702281ejo.93.1574772796957; Tue, 26 Nov 2019 04:53:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574772796; cv=none; d=google.com; s=arc-20160816; b=TIeNBqmrY2XVFr9lRUM/UzMLgy3rZkcRuIMbngyq+MjNRRCGSqEdfjCPeITvCcSxyD lAhRs1N78tXo1NcKYtje095mAAUUsARBPvGV0bqb+VLGDfI06wxHcmrPef9Cjd6SPGY1 b9wdtiCt6Wca36tT3kpSNYb8sgbv5H728FHo1iM8kF9DDGu5FYyZRTVm3SyN+GPZJVag CK38qyDBrNCQhL5z5UX00BHgfBgM9OurdaH4dPhi2TgD2e9Hg3kMaCqFtjukLSaXku36 V++LHgXKPieOBFr1o6YWeso+8vhmCO0B1tRW74PUf4z52Ft7VjyOqDehVFKpb7gLnA3E /rHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=4sYU3EbzPJD+k04apcMav8a6GFUx7zHnytAk15X4MuQ=; b=upuOrpoDtZUUIFzmpxHUxGn7jeB3l5kV/FuRj0OWhqonBIVU8+D0F/A0RTU2U7BAon I3jLcRFyjcRzuCZH+oS3bcHqE4hGkdNJo7EG0drY4h1dYVAmfH2mobDyXyvpvrabbFt4 NCfp9ykFzrmjxpnFWpEvYwZxGkjPLBbWNGxLPiwTlm6MjM1mNgYuuMAlctjR9j4juTXs fJJ+vRhVtRS4TCyd+QllqpIVQdDwPzVZWWpGoM0erzidrLNrtqx5rvhF0EYfBqk7z87b cRA/NDf8xKGWJ0McZiFPwFCY8ctagnqktjlKO51IiRVV+YFX3+e5hVBH2SSqjC9Wgber TDtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rn21si229498ejb.267.2019.11.26.04.52.52; Tue, 26 Nov 2019 04:53:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728300AbfKZMXh (ORCPT + 99 others); Tue, 26 Nov 2019 07:23:37 -0500 Received: from inva021.nxp.com ([92.121.34.21]:37578 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728290AbfKZMXh (ORCPT ); Tue, 26 Nov 2019 07:23:37 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9049A2005D0; Tue, 26 Nov 2019 13:23:35 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 8088B2000C7; Tue, 26 Nov 2019 13:23:35 +0100 (CET) Received: from lorenz.ea.freescale.net (lorenz.ea.freescale.net [10.171.71.5]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 1B18E20506; Tue, 26 Nov 2019 13:23:35 +0100 (CET) From: Iuliana Prodan To: Herbert Xu , Horia Geanta , Aymen Sghaier Cc: "David S. Miller" , Andrey Smirnov , Alison Wang , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx , Iuliana Prodan Subject: [PATCH v2] crypto: caam - do not reset pointer size from MCFGR register Date: Tue, 26 Nov 2019 14:23:23 +0200 Message-Id: <1574771003-17208-1-git-send-email-iuliana.prodan@nxp.com> X-Mailer: git-send-email 2.1.0 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org In commit 'a1cf573ee95 ("crypto: caam - select DMA address size at runtime")' CAAM pointer size (caam_ptr_size) is changed from sizeof(dma_addr_t) to runtime value computed from MCFGR register. Therefore, do not reset MCFGR[PS]. Fixes: a1cf573ee95 ("crypto: caam - select DMA address size at runtime") Signed-off-by: Iuliana Prodan Cc: Cc: Andrey Smirnov Cc: Alison Wang --- Changes since v1: - do not reset MCFGR[PS]; - update description; - cc-ed authors for Fixes tag. drivers/crypto/caam/ctrl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index d7c3c3805693..3e811fcc6b83 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c @@ -671,11 +671,9 @@ static int caam_probe(struct platform_device *pdev) of_node_put(np); if (!ctrlpriv->mc_en) - clrsetbits_32(&ctrl->mcr, MCFGR_AWCACHE_MASK | MCFGR_LONG_PTR, + clrsetbits_32(&ctrl->mcr, MCFGR_AWCACHE_MASK, MCFGR_AWCACHE_CACH | MCFGR_AWCACHE_BUFF | - MCFGR_WDENABLE | MCFGR_LARGE_BURST | - (sizeof(dma_addr_t) == sizeof(u64) ? - MCFGR_LONG_PTR : 0)); + MCFGR_WDENABLE | MCFGR_LARGE_BURST); handle_imx6_err005766(&ctrl->mcr); -- 2.17.1