From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Subject: Re: Threaded interrupts for synaptic touchscreen in HTC dream Date: Wed, 22 Jul 2009 15:15:06 -0700 Message-ID: <200907221515.07835.david-b@pacbell.net> References: <5d5443650907151033w36008b71pe4b32bcea9489b75@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Content-Disposition: inline Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Arve =?iso-8859-1?q?Hj=F8nnev=E5g?= Cc: Thomas Gleixner , Peter Zijlstra , Mark Brown , Dmitry Torokhov , Trilok Soni , Pavel Machek , kernel list , Brian Swetland , linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Andrew Morton , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Joonyoung Shim , m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, t.fujak-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, Daniel Ribeiro List-Id: linux-i2c@vger.kernel.org On Wednesday 22 July 2009, Arve Hj=F8nnev=E5g wrote: > It would also be useful to mask an edge triggered interrupt until the > thread handler has finished. The touchscreen on the G1 is connected t= o > an edge triggered interrupt, and the touchscreen may toggle the > interrupt line while reading its registers. To clarify: if it does toggle, do you want that event to be queued up so the IRQ is re-issued -- or not? That "oneshot" mechanism does some of that, though it's for level triggers. Parts of that might be appropriate to handle in the threaded IRQ handler itself. It seems a bit device-specific. - Dave