Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932397Ab0FBKXP (ORCPT ); Wed, 2 Jun 2010 06:23:15 -0400 Received: from cantor2.suse.de ([195.135.220.15]:53809 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754322Ab0FBKXN (ORCPT ); Wed, 2 Jun 2010 06:23:13 -0400 Date: Wed, 2 Jun 2010 20:23:00 +1000 From: Neil Brown To: Florian Mickler Cc: Arve =?UTF-8?B?SGrDuG5uZXbDpWc=?= , Thomas Gleixner , "Rafael J. Wysocki" , Alan Stern , Felipe Balbi , Peter Zijlstra , "Paul@smtp1.linux-foundation.org" , LKML , Linux OMAP Mailing List , Linux PM , Alan Cox , James Bottomley Subject: Re: [PATCH] - race-free suspend. Was: Re: [linux-pm] [PATCH 0/8] Suspend block api (version 8) Message-ID: <20100602202300.468b73fe@notabene.brown> In-Reply-To: <20100602105039.068c5e00@schatten.dmk.lab> References: <201006010005.19554.rjw@sisk.pl> <20100601090023.788cabf4@notabene.brown> <201006010232.20263.rjw@sisk.pl> <20100601113309.609349fd@notabene.brown> <20100601122012.1edeaf48@notabene.brown> <20100602153235.340a7852@notabene.brown> <20100602180614.729246ea@notabene.brown> <20100602105039.068c5e00@schatten.dmk.lab> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1079 Lines: 29 On Wed, 2 Jun 2010 10:50:39 +0200 Florian Mickler wrote: > On Wed, 2 Jun 2010 18:06:14 +1000 > Neil Brown wrote: > > > I cannot imagine why it would take multiple seconds to scan a keypad. > > Can you explain that? > > > > Do you mean while keys are held pressed? Maybe you don't get a wake-up event > > on key-release? In that case your user-space daemon could block suspend > > while there are any pressed keys.... confused. > > IIRC, the device sends interrupts only for first key-down and > last key-up. > To detect simultaneous key-presses you must actively scan it after the > first key-down. That makes sense - thanks. Presumably the first key-press gets to user-space promptly, so the user-space suspend daemon can be told not to suspend until the last key-up. Thanks, NeilBrown -- 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/