From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753386Ab1LHKmn (ORCPT ); Thu, 8 Dec 2011 05:42:43 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:62394 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751057Ab1LHKmj (ORCPT ); Thu, 8 Dec 2011 05:42:39 -0500 Date: Thu, 8 Dec 2011 14:42:35 +0400 From: Anton Vorontsov To: Richard Hughes Cc: Jeremy Fitzhardinge , David Woodhouse , Linux Kernel Mailing List , Daniel Nicoletti , linux-input@vger.kernel.org, Jiri Kosina , vojtech@ucw.cz, Przemo Firszt , Richard Hughes Subject: Re: [GIT PULL] power_supply: add power supply scope Message-ID: <20111208104235.GB1753@oksana.dev.rtsoft.ru> References: <4ED9BDF8.3010600@goop.org> <4EDE4C7A.1010802@goop.org> <4EDFA192.7000602@goop.org> <4EE015D1.5070005@goop.org> <20111208100204.GA31434@oksana.dev.rtsoft.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 On Thu, Dec 08, 2011 at 10:05:46AM +0000, Richard Hughes wrote: > On 8 December 2011 10:02, Anton Vorontsov wrote: > > I see one problem with this approach. Userland will need patching > > to distinguish system and device power supplies. So, even with > > the patch applied, old userland will behave incorrectly. > > Userland will need patching anyway, as old versions of upower assumed > anything showing up in /sys/class/power_supply was powering the > system. Oh, makes sense then. But see my other email regarding a bit more universal scheme. Thanks, -- Anton Vorontsov Email: cbouatmailru@gmail.com