From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Radek Polak Subject: Re: [Gta04-owner] [PATCH 0/4] UART slave device support - version 4 Date: Thu, 21 Jan 2016 11:01:09 +0100 Message-ID: <1554849.ev0zdSM3Dl@rp-core> In-Reply-To: <39B850CE-E381-4D3B-BD0A-84AFE7DAEEDF@goldelico.com> References: <481E05A9-A192-438D-B092-D7700B30BBC4@goldelico.com> <20160120174610.1c64239a@lxorguk.ukuu.org.uk> <39B850CE-E381-4D3B-BD0A-84AFE7DAEEDF@goldelico.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="nextPart6732326.BIPVdmqoIm" Content-Transfer-Encoding: 7Bit To: gta04-owner@goldelico.com Cc: "H. Nikolaus Schaller" , One Thousand Gnomes , Mark Rutland , Rob Herring , Peter Hurley , Vostrikov Andrey , "devicetree@vger.kernel.org" , Greg Kroah-Hartman , Sebastian Reichel , Arnd Bergmann , "linux-kernel@vger.kernel.org" , Grant Likely , Rob Herring , "linux-serial@vger.kernel.org" , NeilBrown , Marek Belisko , Jiri Slaby , tomeu@tomeuvizoso.net List-ID: This is a multi-part message in MIME format. --nextPart6732326.BIPVdmqoIm Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Wednesday 20 of January 2016 19:03:14 H. Nikolaus Schaller wrote: > The assumption that there is "the" user space of a given platform is wrong. You can bundle initramfs with daemon that does the GPS power control. QtMoko and some old SHR versions use initramfs [1] for advanced boot options. IMO it works great and could be extended to control GPS. And your kernel with such initramfs will have GPS always powered properly. Radek [1] https://github.com/radekp/gta04-init --nextPart6732326.BIPVdmqoIm Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

On Wednesday 20 of January 2016 19:03:14 H. Nikolaus Schaller wrote:

 

> The assumption that there is "the" user space of a given platform is wrong.

 

You can bundle initramfs with daemon that does the GPS power control.

 

QtMoko and some old SHR versions use initramfs [1] for advanced boot options. IMO it works great and could be extended to control GPS. And your kernel with such initramfs will have GPS always powered properly.

 

Radek

 

 

[1] https://github.com/radekp/gta04-init

--nextPart6732326.BIPVdmqoIm--