From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH v3 2/5(7)] OMAP1: Amstrad Delta: add a handler for processing interrupts generated by the FIQ routine Date: Thu, 22 Apr 2010 16:17:26 -0700 Message-ID: <20100422231725.GU18272@atomide.com> References: <201004150419.05038.jkrzyszt@tis.icnet.pl> <201004150426.28677.jkrzyszt@tis.icnet.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:55879 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753914Ab0DVXRa (ORCPT ); Thu, 22 Apr 2010 19:17:30 -0400 Content-Disposition: inline In-Reply-To: <201004150426.28677.jkrzyszt@tis.icnet.pl> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Janusz Krzysztofik Cc: linux-omap@vger.kernel.org, Dmitry Torokhov , linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, e3-hacking@earth.li * Janusz Krzysztofik [100414 19:24]: > This patch introduces an IRQ handler used for processing interrupts generated > by the FIQ handler when it decides there are data ready for processing. > > The handler further invokes device specific interrupt routines based on an > interrupt source as passed from the FIQ handler. > > It can be registered by the board as a handler for the otherwise unused 32k > timer interrupt. > > Created and tested against linux-2.6.34-rc4. > Applies on top of PATCH v3 1/5(7), "OMAP1: Amstrad Delta: add FIQ handler for > serial keyboard port interrupt processing". > > Signed-off-by: Janusz Krzysztofik > --- > v2 changes: > - add fiq_buffer[] declaration missing from the header file, > - refresh against 2.6.34-rc2. > v3 changes: > - follow Dmitry's serio cleanup suggestions here as well, > - follow default OMAP GPIO interrupt processing path more closely, > - more optimizations and cleanups. > > arch/arm/mach-omap1/Makefile | 2 > arch/arm/mach-omap1/ams-delta-fiq.c | 155 +++++++++++++++++++++++ > arch/arm/mach-omap1/include/mach/ams-delta-fiq.h | 7 + > 3 files changed, 163 insertions(+), 1 deletion(-) > > diff -uprN git.orig/arch/arm/mach-omap1/Makefile git/arch/arm/mach-omap1/Makefile > --- git.orig/arch/arm/mach-omap1/Makefile 2010-04-14 22:35:22.000000000 +0200 > +++ git/arch/arm/mach-omap1/Makefile 2010-04-14 23:18:10.000000000 +0200 > @@ -37,7 +37,7 @@ obj-$(CONFIG_MACH_OMAP_PALMZ71) += boar > obj-$(CONFIG_MACH_OMAP_PALMTT) += board-palmtt.o > obj-$(CONFIG_MACH_NOKIA770) += board-nokia770.o > obj-$(CONFIG_MACH_AMS_DELTA) += board-ams-delta.o > -obj-$(CONFIG_AMS_DELTA_FIQ) += ams-delta-fiq-handler.o > +obj-$(CONFIG_AMS_DELTA_FIQ) += ams-delta-fiq.o ams-delta-fiq-handler.o > obj-$(CONFIG_MACH_SX1) += board-sx1.o board-sx1-mmc.o > obj-$(CONFIG_MACH_HERALD) += board-htcherald.o Do you really need a separate option for CONFIG_AMS_DELTA_FIQ? To me it seems you can just compile it in when CONFIG_MACH_AMS_DELTA is selected. Also, please make sure the FIQ only gets initialized for the right board when multiple boards are compiled in. Regards, Tony