Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4529076ybl; Tue, 20 Aug 2019 13:27:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQVT8pAHIsZmtf/5ZwsnJO7vy9+Y65wviKAQ6qcVQYHFuSJutvRmBH5e/+zlDfFMAgvVj7 X-Received: by 2002:aa7:938d:: with SMTP id t13mr30754764pfe.180.1566332841632; Tue, 20 Aug 2019 13:27:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566332841; cv=none; d=google.com; s=arc-20160816; b=RfcP17nLwdJNAgNTwK0ZTHooF+240ZmFL5BDAVFqg9rKeE84pC+8uSzTyiJxsp2Lvk q/xmlE5ZuPjAxu2Yj6PjzfVqJlqiCMXqxaL10SI/IMWOgBzNBiAGO8gylcMqP3QLrlyt s4Z6sF6Bgo5XtXO0QLPqm86xFyPYFQ8BaIXCDjrRLXQyWQWl7hI8FpCGM+tF2FLZEoAu 19OUOhj90nSjFPq3rFwfp3pzSA8O9ut8uadI/4BA3DOsRiAEToIwQvI/mU01oLbdd2ID JXuz1anG05qnNYIAYQbv62AdCLr5V+nXFhjkFF5MemMSJAWU7az/gR7Xd9AxIT5U0V7K OChw== 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 :dkim-signature; bh=A5lDnd8eVvfq+kCvLcv1hClJ0+Pl3iOhVfhCY8P+8Co=; b=0jiVZUwg48zOGnXK5xpMumVeXEd7IPjIOTc2liLggUSRiRKVPyCVCSG8fXOBNRQjEP Gpvx62roAKmMsknT1gbawYsNVm+hH4cMks3tvGLAaAlKgRBCMcOihqj5xxy34csf0Bpm tOnMjd/ol/Asnmj4QoBXJh1c79xKaBo6LeB53w2lGLLhozOrA9OqcBIQ2vby5J52Ks0f 1uI0bMFbtbRa7BMykjfqnhcha7B74ax90E1JK1v9EMh1S/51pjqt3YlhqIRu8Y7/92dp NmqfdcF61Wv0Asme1MFDfAGSAGiCNPHjXrUKaIlKfJ3bw3okjaDpHDUN5a+lRTMFvja0 4HmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=b2j97Yov; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 67si14038296pfv.74.2019.08.20.13.27.07; Tue, 20 Aug 2019 13:27:21 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=b2j97Yov; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730868AbfHTUYa (ORCPT + 99 others); Tue, 20 Aug 2019 16:24:30 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:37498 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730945AbfHTUY2 (ORCPT ); Tue, 20 Aug 2019 16:24:28 -0400 Received: by mail-pg1-f193.google.com with SMTP id d1so3854903pgp.4; Tue, 20 Aug 2019 13:24:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A5lDnd8eVvfq+kCvLcv1hClJ0+Pl3iOhVfhCY8P+8Co=; b=b2j97YovLIHp5xxOdugL7nr3uSzmUNhxWA3K/ajdWSRMqJlOND2Hiy09Uq+IcRNrNo r+kA7q69WTT2p4myq66y+dBQ9/UMvnSRQ/dG3GuZUl5b0mxgVbrbB9Py9VD/PXeYIPAv mIMqForviqqPvQtzDBVlESERyI2H74bysVZrnzrqJdpJbQEmzR2ypKzR3VtxLhXVYDSn LeKDlpNqLcEzkkyE8fGodZeJUqIdFIV0dR1/DeMOKdiAOigiWKwH27VH35rUq+Chq5E/ aQ5bV9UMw4PnYycqea+xSyd2KIu1XKm7UTwNMS2h5A+XdnUcvYsaLtgG7pQsrr9DtjU+ rQmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=A5lDnd8eVvfq+kCvLcv1hClJ0+Pl3iOhVfhCY8P+8Co=; b=jAu7IPjL3rybSQSYT+ZkeLbG5Lg7aeKZMofqLmXWEB2D0kwoigispjcs60XirvBd2z XFnVrXg2o92/Oi7gyCcHxr7d0p2nO0r98Pf7PIDtTKw6AfuFR578yXlBya0Ri6P6hJ1f DyDNFq46gma/lYZI7QtIDx/PZptfASngzqCx0i/wH78nBOlRqRJh/zX7gXVbq6Vqr4RD CPXiDgAsHfJULxDl/jFji2CCd0SEhju5cbqZSWBfEY05jzXOT3QJzGKq/LMB/LHssZIb jwKuNRrT0eZGoUIlQMgtdQUjhft23v/o2hyE3flWAN3rUpEWvjHBpQXULnkPaEOZRZ1F KLQQ== X-Gm-Message-State: APjAAAX7dZS5HAJ9TC+DTDPRl3r+cr98L+MVjcrOVpwKl4iiQceiuBdI oJA+5rFhVJfSKueQsnDZ7cMu0HitEug= X-Received: by 2002:a63:e5a:: with SMTP id 26mr25375895pgo.3.1566332667476; Tue, 20 Aug 2019 13:24:27 -0700 (PDT) Received: from localhost.lan (c-67-185-54-80.hsd1.wa.comcast.net. [67.185.54.80]) by smtp.gmail.com with ESMTPSA id k3sm36149846pfg.23.2019.08.20.13.24.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2019 13:24:26 -0700 (PDT) From: Andrey Smirnov To: linux-crypto@vger.kernel.org Cc: Andrey Smirnov , =?UTF-8?q?Horia=20Geant=C4=83?= , Chris Spencer , Cory Tusar , Chris Healy , Lucas Stach , Aymen Sghaier , Leonard Crestez , linux-kernel@vger.kernel.org Subject: [PATCH v8 07/16] crypto: caam - drop 64-bit only wr/rd_reg64() Date: Tue, 20 Aug 2019 13:23:53 -0700 Message-Id: <20190820202402.24951-8-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190820202402.24951-1-andrew.smirnov@gmail.com> References: <20190820202402.24951-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Since 32-bit of both wr_reg64 and rd_reg64 now use 64-bit IO helpers, these functions should no longer be necessary. No functional change intended. Signed-off-by: Andrey Smirnov Reviewed-by: Horia Geantă Cc: Chris Spencer Cc: Cory Tusar Cc: Chris Healy Cc: Lucas Stach Cc: Horia Geantă Cc: Aymen Sghaier Cc: Leonard Crestez Cc: linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/crypto/caam/regs.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/drivers/crypto/caam/regs.h b/drivers/crypto/caam/regs.h index 4efc10534873..489d6c1eec7d 100644 --- a/drivers/crypto/caam/regs.h +++ b/drivers/crypto/caam/regs.h @@ -138,24 +138,6 @@ static inline void clrsetbits_32(void __iomem *reg, u32 clear, u32 set) * base + 0x0000 : least-significant 32 bits * base + 0x0004 : most-significant 32 bits */ -#ifdef CONFIG_64BIT -static inline void wr_reg64(void __iomem *reg, u64 data) -{ - if (caam_little_end) - iowrite64(data, reg); - else - iowrite64be(data, reg); -} - -static inline u64 rd_reg64(void __iomem *reg) -{ - if (caam_little_end) - return ioread64(reg); - else - return ioread64be(reg); -} - -#else /* CONFIG_64BIT */ static inline void wr_reg64(void __iomem *reg, u64 data) { if (caam_little_end) { @@ -187,7 +169,6 @@ static inline u64 rd_reg64(void __iomem *reg) return ioread64be(reg); } } -#endif /* CONFIG_64BIT */ static inline u64 cpu_to_caam_dma64(dma_addr_t value) { -- 2.21.0