From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 30 Oct 2014 11:43:07 +0100 (CET) Received: from www.linutronix.de ([62.245.132.108]:43846 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27011905AbaJ3KnGJnpEO (ORCPT ); Thu, 30 Oct 2014 11:43:06 +0100 Received: from localhost ([127.0.0.1]) by Galois.linutronix.de with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XjnC2-0001kX-4C; Thu, 30 Oct 2014 11:43:02 +0100 Date: Thu, 30 Oct 2014 11:43:00 +0100 (CET) From: Thomas Gleixner To: Arnd Bergmann cc: Kevin Cernekee , f.fainelli@gmail.com, jason@lakedaemon.net, ralf@linux-mips.org, lethal@linux-sh.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, mbizon@freebox.fr, jogo@openwrt.org, linux-mips@linux-mips.org Subject: Re: [PATCH V2 02/15] sh: Eliminate unused irq_reg_{readl,writel} accessors In-Reply-To: <2294092.AHz8W66sEP@wuerfel> Message-ID: References: <1414635488-14137-1-git-send-email-cernekee@gmail.com> <1414635488-14137-3-git-send-email-cernekee@gmail.com> <2294092.AHz8W66sEP@wuerfel> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 43770 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: tglx@linutronix.de Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On Thu, 30 Oct 2014, Arnd Bergmann wrote: > On Wednesday 29 October 2014 19:17:55 Kevin Cernekee wrote: > > Defining these macros way down in arch/sh/.../irq.c doesn't cause > > kernel/irq/generic-chip.c to use them. As far as I can tell this code > > has no effect. > > > > Signed-off-by: Kevin Cernekee > > Actually it overrides the 32-bit accessors with 16-bit accessors, > which does seem intentional and certainly has an effect. Not really. Neither arch/sh/boards/mach-se/7343/irq.c nor arch/sh/boards/mach-se/7722/irq.c actually use irq_reg_readl/writel. They simply define it. Thanks, tglx