Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp607222yba; Thu, 18 Apr 2019 06:45:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBJGnffoXPSXtCg5vvwjGub/UvWIBfTya9GPf1cBiE8/4NyVr5DbAqrgvH2qymskLsRd3S X-Received: by 2002:a17:902:e4:: with SMTP id a91mr77148405pla.2.1555595128848; Thu, 18 Apr 2019 06:45:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555595128; cv=none; d=google.com; s=arc-20160816; b=0WVE9UiAeB0h7fvYnSTspx8Ftr2zsWRjI8fh1Y8QiA46GTMv+LML7j2aF2cRGUGCjd GID3tNwbHjoACBP42XSf57ojc8l4y4uqNUsaHY7EeJQeyI5tn2luUesTA6gKBeuX5vmA qpXLY5wlMVsqyrNPuJ/xxw46aJLeFcviGnR3c+kimiAUtmDvz5bUjYqeIEy+vIa9Yykz R+QayI9OD4hBRqv+muAgy/5Rp7afXwJM9viY8SCeDxKu9hCPxvGYIR/f/gtWH7GiI4FJ H5GDz63mOOjuGUYKr3GGQUeYzRXQ4NWpBGhrhWL3ldc+F87FLSxK2DvWy+LA4XE+iK80 OFXg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Mb5dj/ORixnyhLNhb/doY+CyPPR+PD+jKjedu9i1iS4=; b=NdieOrkHtBjvPYRWpuNFKPEF1bkjqir5p79jzbmmam0V9/a3Xx1YX1QPwzIrYaQ7bH NTm7y8XDEUI/CUC+m41rvXUD+ygFx/caowNgppEBCokUrf9HysNZUPKqKdVy1OcbjXOw uIt2ctz2+/5THTPXciNLEMhAdujkEvg3LA5Zb2HN/uvy0OdyKp6y0p+ETM1Pz5an9CJp sERy8o/ibKdq4pAjv9+EBqkrRZxLhJed1AyWRazr1zblXXhg1TTGsv8lQ6Z/2r1Bmt4Q I5wYpH6MThthmKU4IC9m7gncSsOdtDtQFYMCB8Iy/U1La1FzgEBjLaV7xbdKgGcw5lMk y0eA== 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 k12si2026472plt.28.2019.04.18.06.45.13; Thu, 18 Apr 2019 06:45:28 -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; 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 S2389323AbfDRNm1 (ORCPT + 99 others); Thu, 18 Apr 2019 09:42:27 -0400 Received: from foss.arm.com ([217.140.101.70]:33778 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389270AbfDRNmY (ORCPT ); Thu, 18 Apr 2019 09:42:24 -0400 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 C6E5380D; Thu, 18 Apr 2019 06:42:23 -0700 (PDT) Received: from e110176-lin.kfn.arm.com (e110176-lin.kfn.arm.com [10.50.4.178]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5B2363F5AF; Thu, 18 Apr 2019 06:42:22 -0700 (PDT) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" Cc: Ofir Drang , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 32/35] crypto: ccree: remove cc7x3 obsoleted AXIM configs Date: Thu, 18 Apr 2019 16:39:07 +0300 Message-Id: <20190418133913.9122-33-gilad@benyossef.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190418133913.9122-1-gilad@benyossef.com> References: <20190418133913.9122-1-gilad@benyossef.com> MIME-Version: 1.0 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 AXIM configuration register modified in cc7x3 and no longer includes AXI interrupt masking fields. Signed-off-by: Ofir Drang Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/ccree/cc_driver.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/ccree/cc_driver.c b/drivers/crypto/ccree/cc_driver.c index a28548192211..902f196d4be1 100644 --- a/drivers/crypto/ccree/cc_driver.c +++ b/drivers/crypto/ccree/cc_driver.c @@ -193,11 +193,14 @@ int init_cc_regs(struct cc_drvdata *drvdata, bool is_probe) unsigned int val, cache_params; struct device *dev = drvdata_to_dev(drvdata); - /* Unmask all AXI interrupt sources AXI_CFG1 register */ - val = cc_ioread(drvdata, CC_REG(AXIM_CFG)); - cc_iowrite(drvdata, CC_REG(AXIM_CFG), val & ~CC_AXI_IRQ_MASK); - dev_dbg(dev, "AXIM_CFG=0x%08X\n", - cc_ioread(drvdata, CC_REG(AXIM_CFG))); + /* Unmask all AXI interrupt sources AXI_CFG1 register */ + /* AXI interrupt config are obsoleted startign at cc7x3 */ + if (drvdata->hw_rev <= CC_HW_REV_712) { + val = cc_ioread(drvdata, CC_REG(AXIM_CFG)); + cc_iowrite(drvdata, CC_REG(AXIM_CFG), val & ~CC_AXI_IRQ_MASK); + dev_dbg(dev, "AXIM_CFG=0x%08X\n", + cc_ioread(drvdata, CC_REG(AXIM_CFG))); + } /* Clear all pending interrupts */ val = cc_ioread(drvdata, CC_REG(HOST_IRR)); -- 2.21.0