Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753587AbaA3TkJ (ORCPT ); Thu, 30 Jan 2014 14:40:09 -0500 Received: from mail-qa0-f45.google.com ([209.85.216.45]:58469 "EHLO mail-qa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752733AbaA3TkF (ORCPT ); Thu, 30 Jan 2014 14:40:05 -0500 MIME-Version: 1.0 In-Reply-To: <20131212090838.GD25478@pengutronix.de> References: <1386364179-28650-1-git-send-email-delicious.quinoa@gmail.com> <20131212090838.GD25478@pengutronix.de> Date: Thu, 30 Jan 2014 13:40:04 -0600 Message-ID: Subject: Re: [PATCH v9] gpio: add a driver for Synopsys DesignWare APB GPIO From: delicious quinoa To: Steffen Trumtrar Cc: Linus Walleij , linux-kernel , "linux-gpio@vger.kernel.org" , "linux-doc@vger.kernel.org" , Jamie Iles , "devicetree@vger.kernel.org" , Grant Likely , Rob Herring , Sebastian Hesselbarth , Heiko Stuebner , Alan Tull , Dinh Nguyen , Yves Vandervennet Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 12, 2013 at 3:08 AM, Steffen Trumtrar wrote: > Second: The interrupt is registered as "GIC 37", which is a real interrupt on > the Socfpga. I would expect it to be marked as "GPIO 2xx" (or something in that > range). The interrupt from the gpiochip itself isn't registered at all ?! Hi Stephen, Did you export the gpio lines and set the edge in sysfs? Because the interrupts aren't allocated otherwise. For instance: root@socfpga_cyclone5:~# echo 195 > /sys/class/gpio/export root@socfpga_cyclone5:~# echo rising > /sys/class/gpio/gpio195/edge Now I can see a pretty nicely named interrupt in /proc/interrupts: 256: 0 0 gpio-dwapb 24 gpiolib Alan Tull Altera Corp -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/