From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4D096C43219 for ; Fri, 11 Feb 2022 22:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=f/IhQYsLevkqmhE6zKAmhlRmZ34/QVzYGUUgJVgwZV8=; b=e0UWp2ZNREZ9NG 3BFXHH0kbncE8jrLHBoeq6gkYrSAbZ7o8OlaL/M2pzyVFi0A11A5WIQ+0E2+y3dTxv9dwyC9NbgWI 8f8x82fH1houPqArnk7/cmaOTW4RmEEbySRkGbeZ1aMOvYMFMm/MdscNdplth11hJ2MH8RahcWs5d 2ppoLUhqpJtEIwBujwgB7sOUxDfDGgJniBEnr9/yLjblTHaxNSIiw4Fio8oMgZh3q2slWx7HJaVUP 68RIh2wLDAF7Eg03K+JI2+dNt3wNJlvautnX5eT1KWmJwgP82rJYsBSlFc8n7yBfzpckBm5rkQUYP F3f7Tnl2GGm1TpFHS9/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIeYu-008zZQ-OC; Fri, 11 Feb 2022 22:38:45 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIeVH-008xt7-Cj for linux-arm-kernel@lists.infradead.org; Fri, 11 Feb 2022 22:35:02 +0000 Received: by mail-lj1-x22f.google.com with SMTP id t14so14341678ljh.8 for ; Fri, 11 Feb 2022 14:34:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oTeVWGlBF43llInBm8g7wCGr/Kvl9SK8IpvMblyxKlk=; b=wVarLSGZy1vyA687eDon1bjBoGSo1Bloe4bhu9vXh6HxEUqdM1F8iXtcX0MK4a2j+g awe5lIkWJRrP1CnB+nmVXPa3k+hNZpKq21GQ+DiCf297yFKuzChhAT8BKfBCmi03vth8 dkstCI4A+bQlo/rb0n5APM2vY6zG9gscrMAthHtGZ8OQrn8+5Ne/PsBOPhBPPuuQNkFD lRME98n65kb5bZ2bdq1DkFafevDJXSbdOEA2rs7lNvm8sdLp79A3dTug6ZW9rfLLqDa4 bqQVGUmSJ9fGePSbR4ZHR21M5q/xg5m8TNMGxyVcNB4jQ3FyXbQMCkX1UnV+tydx5Jpu DMFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oTeVWGlBF43llInBm8g7wCGr/Kvl9SK8IpvMblyxKlk=; b=6/6r7ey3PXHARfK0DilPctXWDEG9JiULLvCIrZL/KPKOERSW+lRJOlr9sxgpp1SFCg Wx5XU4UQ7/mOtFuPh4kb1A9k8H/ndzdAKEY7fuGMK1Xnkot0br6+OTItU7U8Su+CNa/2 cwCdKQLvjvNvisw3PHoQwu62MxW68n+Krx3gXFayudzKCtomHldxYualdJnri8t+slCW KtZlLz4C9PBi4VZfZUzUbC2G/YU4Mf1ErkaYL1bSg5gLNGqM0bAjrEm0KjyPRFgLMlNQ dj04EqBKlRtd14isSxBqVNK/Aj8bbf61g7H7E1TTX1KLB5imdzV0NeUr917OOB9+YO7M 7cNA== X-Gm-Message-State: AOAM531y+nv1e9Itx958qhpK8YRwYWU1uHqvtQuKm2ptQ7SbMXC2czWk 97K7qV9lzD5Az/WdpEfyrjQOOPaeEQvIBvAe X-Google-Smtp-Source: ABdhPJz/nAxMSc82rwANB3jnLQr3BeMFD0L4Lc6kg8fwGe1l+Efgr/Ulgzi+WgVGE4q0/R6Q1Lf9sw== X-Received: by 2002:a2e:8789:: with SMTP id n9mr2204343lji.277.1644618897208; Fri, 11 Feb 2022 14:34:57 -0800 (PST) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id x2sm3296300lji.27.2022.02.11.14.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Feb 2022 14:34:56 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Imre Kaloz , Krzysztof Halasa Cc: Linus Walleij Subject: [PATCH 10/13 v2] ARM: ixp4xx: Remove feature bit accessors Date: Fri, 11 Feb 2022 23:32:35 +0100 Message-Id: <20220211223238.648934-11-linus.walleij@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220211223238.648934-1-linus.walleij@linaro.org> References: <20220211223238.648934-1-linus.walleij@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220211_143459_482113_964D213D X-CRM114-Status: GOOD ( 10.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org We switched users of the accessors over to using syscon to inspect the bits, or removed the need for checking them. Delete these accessors. Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - No changes. --- arch/arm/mach-ixp4xx/common.c | 21 --------------------- include/linux/soc/ixp4xx/cpu.h | 10 ---------- 2 files changed, 31 deletions(-) diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c index 5192cf621f5b..4e51514ace6d 100644 --- a/arch/arm/mach-ixp4xx/common.c +++ b/arch/arm/mach-ixp4xx/common.c @@ -43,27 +43,6 @@ #include "irqs.h" -u32 ixp4xx_read_feature_bits(void) -{ - u32 val = ~__raw_readl(IXP4XX_EXP_CFG2); - - if (cpu_is_ixp42x_rev_a0()) - return IXP42X_FEATURE_MASK & ~(IXP4XX_FEATURE_RCOMP | - IXP4XX_FEATURE_AES); - if (cpu_is_ixp42x()) - return val & IXP42X_FEATURE_MASK; - if (cpu_is_ixp43x()) - return val & IXP43X_FEATURE_MASK; - return val & IXP46X_FEATURE_MASK; -} -EXPORT_SYMBOL(ixp4xx_read_feature_bits); - -void ixp4xx_write_feature_bits(u32 value) -{ - __raw_writel(~value, IXP4XX_EXP_CFG2); -} -EXPORT_SYMBOL(ixp4xx_write_feature_bits); - #define IXP4XX_TIMER_FREQ 66666000 /************************************************************************* diff --git a/include/linux/soc/ixp4xx/cpu.h b/include/linux/soc/ixp4xx/cpu.h index 48c2e241ac83..f526ac33afea 100644 --- a/include/linux/soc/ixp4xx/cpu.h +++ b/include/linux/soc/ixp4xx/cpu.h @@ -90,9 +90,6 @@ IXP43X_PROCESSOR_ID_VALUE) #define cpu_is_ixp46x() ((read_cpuid_id() & IXP46X_PROCESSOR_ID_MASK) == \ IXP46X_PROCESSOR_ID_VALUE) - -u32 ixp4xx_read_feature_bits(void); -void ixp4xx_write_feature_bits(u32 value); static inline u32 cpu_ixp4xx_features(struct regmap *rmap) { u32 val; @@ -114,13 +111,6 @@ static inline u32 cpu_ixp4xx_features(struct regmap *rmap) #define cpu_is_ixp42x() 0 #define cpu_is_ixp43x() 0 #define cpu_is_ixp46x() 0 -static inline u32 ixp4xx_read_feature_bits(void) -{ - return 0; -} -static inline void ixp4xx_write_feature_bits(u32 value) -{ -} static inline u32 cpu_ixp4xx_features(struct regmap *rmap) { return 0; -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel