From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752035AbcBOQB1 (ORCPT ); Mon, 15 Feb 2016 11:01:27 -0500 Received: from [212.40.180.161] ([212.40.180.161]:50820 "EHLO smtp-out-039.synserver.de" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751560AbcBOQBZ (ORCPT ); Mon, 15 Feb 2016 11:01:25 -0500 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@metafoo.de X-SynServer-PPID: 22422 Subject: Re: [PATCH 1/4] gpio: remove broken irq_to_gpio() interface To: Arnd Bergmann , Linus Walleij , Alexandre Courbot References: <20160202194831.10827.63244.stgit@bhelgaas-glaptop2.roam.corp.google.com> <1455551208-2825510-1-git-send-email-arnd@arndb.de> <1455551208-2825510-2-git-send-email-arnd@arndb.de> Cc: linux-arm-kernel@lists.infradead.org, Russell King , Bjorn Helgaas , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Ralf Baechle , Paul Burton , linux-mips@linux-mips.org From: Lars-Peter Clausen Message-ID: <56C1F645.1070405@metafoo.de> Date: Mon, 15 Feb 2016 17:01:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 In-Reply-To: <1455551208-2825510-2-git-send-email-arnd@arndb.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/15/2016 04:46 PM, Arnd Bergmann wrote: > +static inline __deprecated int irq_to_gpio(unsigned int irq) > +{ > + /* this has clearly not worked for a long time */ > + return -EINVAL; > +} > + > #define IRQ_TO_BIT(irq) BIT(irq_to_gpio(irq) & 0x1f) The issue seems to be a fallout from commit 832f5dacfa0b ("MIPS: Remove all the uses of custom gpio.h"). The irq_to_gpio() should be replaced with "(irq - JZ4740_IRQ_GPIO(0))". - Lars