Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758796Ab1DZVP5 (ORCPT ); Tue, 26 Apr 2011 17:15:57 -0400 Received: from cantor2.suse.de ([195.135.220.15]:60118 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758444Ab1DZVPy (ORCPT ); Tue, 26 Apr 2011 17:15:54 -0400 Date: Tue, 26 Apr 2011 13:57:45 -0700 From: Greg KH To: Pavel Machek Cc: "Rafael J. Wysocki" , MyungJoo Ham , linux-pm@lists.linux-foundation.org, Len Brown , "Jean Delvare (PC drivers core)" , "Ben Dooks (embedded platforms)" , kyungmin.park@samsung.com, myungjoo.ham@gmail.com, LKML , Alan Stern Subject: Re: [RFC PATCH v2 1/3] PM / Core: suspend_again callback for device PM. Message-ID: <20110426205745.GB20381@suse.de> References: <1303288106-2965-1-git-send-email-myungjoo.ham@samsung.com> <1303781471-2477-1-git-send-email-myungjoo.ham@samsung.com> <201104261347.21811.rjw@sisk.pl> <20110426131737.GA13597@suse.de> <20110426203853.GC27140@elf.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110426203853.GC27140@elf.ucw.cz> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1517 Lines: 40 On Tue, Apr 26, 2011 at 10:38:53PM +0200, Pavel Machek wrote: > Hi! > > > > To conclude, I'm not sure about the approach. In particular, I'm not sure > > > if the benefit is worth the effort and the resulting complications (ie. the > > > possibility of having to deal with wakeup signals not requested by user > > > space) seem to be a bit too far reaching. > > > > > > Greg, what do you think? > > > > I agree with you in that I don't think that this type of feature is > > valid at the moment. > > Our current "solution" is low level suspend code on Zaurus directly > looking at charger state and doing the "wakeup or not" decision by hand. > > > I don't understand why our current situation doesn't work, what are we > > lacking that is needed for these systems that we have not seen > > before? > > It works, but it is ugly; and it seems samsung now needs similar > hacks. > > > What is the root problem that this is trying to solve? > > It is trying to fix machines that need to run periodic kernel tasks > even when user asked them to sleep. Zaurus needs to periodicaly wake > up to be able to charge battery in s2ram state, for example. That sounds like a bug in userspace you are trying to work around. Why not solve it there first? thanks, greg k-h -- 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/