Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752790AbZDTQTx (ORCPT ); Mon, 20 Apr 2009 12:19:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751212AbZDTQTo (ORCPT ); Mon, 20 Apr 2009 12:19:44 -0400 Received: from intcomgrp.com ([216.54.13.120]:43847 "EHLO beta.intcomgrp.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751161AbZDTQTn (ORCPT ); Mon, 20 Apr 2009 12:19:43 -0400 X-Greylist: delayed 2383 seconds by postgrey-1.27 at vger.kernel.org; Mon, 20 Apr 2009 12:19:43 EDT Message-ID: <49EC9709.8070002@support.intcomgrp.com> Date: Mon, 20 Apr 2009 11:38:49 -0400 From: James Kosin User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: linux-kernel@vger.kernel.org Subject: Re: [RFD] voltage/current regulator consumer interface References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1352 Lines: 33 Mike Rapoport wrote: > Hi, > > Recently there was a brief discussion on linux-arm-kernel list [1] about > controlling voltage regulator state in cases when there is no consumer device > for a particular regulator. > > I have some thoughts but I'd like to know people opinion before I start > implementation. > > Problem > ------- > The regulator framework API provides ability to control the state of > voltage/current regulators from within the kernel. Usually the regulator > supplies power to a device and device driver or some hooks to the platform code > from the device driver manipulate the regulator state. However, the regulator > framework does not have userspace ABI that allows regulator state modifications. > Lack of this ABI prevents fine-grained control for power consumption of devices > such as GPS trancievers and GSM modems. Moreover, in SoC based systems it is > possible to switch on/off power to entire subsystem when it is not used. > I'd also ask the question, Why? If exposing to user space it leaves the possibility of damaging hardware or completely frying a board. James -- 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/