From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754613AbaJVSBS (ORCPT ); Wed, 22 Oct 2014 14:01:18 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:55471 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753755AbaJVSBP (ORCPT ); Wed, 22 Oct 2014 14:01:15 -0400 MIME-Version: 1.0 In-Reply-To: <544779F8.2040505@imgtec.com> References: <1413831846-32100-1-git-send-email-abrestic@chromium.org> <1413831846-32100-4-git-send-email-abrestic@chromium.org> <544779F8.2040505@imgtec.com> Date: Wed, 22 Oct 2014 11:01:15 -0700 X-Google-Sender-Auth: ify3pXF4NnovbWe5l-E4QeBRZJc Message-ID: Subject: Re: [PATCH 03/19] MIPS: sead3: Stop using GIC REG macros From: Andrew Bresticker To: Qais Yousef Cc: Ralf Baechle , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Paul Burton , John Crispin , Linux-MIPS , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 22, 2014 at 2:33 AM, Qais Yousef wrote: > On 10/20/2014 08:03 PM, Andrew Bresticker wrote: >> >> Stop using the REG macros from gic.h and instead use proper iomem >> accessors. >> >> Signed-off-by: Andrew Bresticker >> --- >> arch/mips/mti-sead3/sead3-int.c | 7 +++---- >> 1 file changed, 3 insertions(+), 4 deletions(-) >> >> diff --git a/arch/mips/mti-sead3/sead3-int.c >> b/arch/mips/mti-sead3/sead3-int.c >> index 69ae185..995c401 100644 >> --- a/arch/mips/mti-sead3/sead3-int.c >> +++ b/arch/mips/mti-sead3/sead3-int.c >> @@ -20,16 +20,15 @@ >> #define SEAD_CONFIG_BASE 0x1b100110 >> #define SEAD_CONFIG_SIZE 4 >> -static unsigned long sead3_config_reg; >> +static void __iomem *sead3_config_reg; >> void __init arch_init_irq(void) >> { >> if (!cpu_has_veic) >> mips_cpu_irq_init(); >> - sead3_config_reg = (unsigned >> long)ioremap_nocache(SEAD_CONFIG_BASE, >> - SEAD_CONFIG_SIZE); >> - gic_present = (REG32(sead3_config_reg) & >> SEAD_CONFIG_GIC_PRESENT_MSK) >> >> + sead3_config_reg = ioremap_nocache(SEAD_CONFIG_BASE, >> SEAD_CONFIG_SIZE); >> + gic_present = (readl(sead3_config_reg) & >> SEAD_CONFIG_GIC_PRESENT_MSK) >> >> SEAD_CONFIG_GIC_PRESENT_SHF; >> pr_info("GIC: %spresent\n", (gic_present) ? "" : "not "); >> pr_info("EIC: %s\n", > > > I think you need to use the __raw_readl() variant here and for all other > similar changes. Thanks, will do. -Andrew