From: Ferenc Wagner Subject: Re: [PATCH] Input: gpio-keys: Support for one-directional interrupts Date: Wed, 09 Dec 2009 12:32:20 +0100 Message-ID: <87fx7kgz7f.fsf@tac.ki.iif.hu> References: <1260052694-17223-1-git-send-email-darkstar6262@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from tac.ki.iif.hu ([193.6.222.43]:34198 "EHLO tac.ki.iif.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755089AbZLILcR (ORCPT ); Wed, 9 Dec 2009 06:32:17 -0500 In-Reply-To: <1260052694-17223-1-git-send-email-darkstar6262@gmail.com> (Cory Maccarrone's message of "Sat, 5 Dec 2009 14:38:14 -0800") Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Cory Maccarrone Cc: linux-input@vger.kernel.org, linux-omap@vger.kernel.org Cory Maccarrone writes: > The current gpio-keys driver assumes that each given GPIO has > the ability to respond to both rising and falling interrupts > at the same time. For some GPIOs on certain devices, the interrupt > is only one-directional -- either rising or falling, depending on > what's being listened for. In particular, the HTC Herald keyboard > slide switch interrupt must be switched from rising to falling and > back on each event, otherwise only one transition will be detected. Interesting. Btw. I'd like to convert gpio-keys from edge-triggered to level-triggered interrupts. Would that work for your hardware? -- Regards, Feri.