From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Eremin-Solenikov Subject: Re: gpio_keys and how PXA27x sets gpio_set_wake() (was Re: sharp c-3000 aka spitz: fix warn_on introduced in 2.6.32-rc1) Date: Tue, 26 Jan 2010 14:23:56 +0300 Message-ID: References: <20100106071026.GD1382@ucw.cz> <20100107065230.GA1303@ucw.cz> <1264275669.9100.11.camel@utx.utx.cz> <1264286611.11766.49.camel@utx.utx.cz> <1264500824.4480.79.camel@utx.utx.cz> <1264502668.4480.97.camel@utx.utx.cz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1264502668.4480.97.camel@utx.utx.cz> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Stanislav Brabec Cc: Andrew Morton , thommycheck , dtor , arminlitzel , kernel list , Cyril Hrubis , Dirk , "Rafael J. Wysocki" , lenz , Vojtech Pavlik , rpurdie , omegamoon , Pavel Machek , linux-input , Eric Miao , zaurus-devel , linux-arm-kernel List-Id: linux-input@vger.kernel.org Hello, 2010/1/26 Stanislav Brabec : > Eric Miao wrote: >> > The problem affects gpio_keys: It is a driver implementing "one key per >> > gpio". It now handles On/Off and lid switches on Zaurus. Lid switches >> > are on "normal" GPIOs, On/Off switch is wired to PKWR capable GPIO. >> Ain't On/Off switch one of the matrix key? And so SPITZ_GPIO_KEY_INT >> could be used to handle that? > > No. On/Off is connected directly to GPIO 95. Other keys use strobe/sense > matrix keypad. > > SPITZ_GPIO_KEY_INT is a bit unspecific. I think it means: Charger was > inserted or key was pressed or On/Off was pressed. This seems to be true. At least they used the same design on tosa and other zaurii. -- With best wishes Dmitry