Re: [RFC PATCH 1/2] sbs-battery: add forced instantiation from device tree

2014-10-07 Thread Frans Klaver
Olof, Anton, Care to pitch in? Thanks, Frans On Thu, Sep 25, 2014 at 11:32 AM, Frans Klaver wrote: > On Thu, Sep 25, 2014 at 11:27 AM, Mark Rutland wrote: >> On Wed, Sep 24, 2014 at 07:59:34PM +0100, Frans Klaver wrote: >>> On Wed, Sep 24, 2014 at 04:34:32PM +0100, Mark Rutland wrote: >>> > On

Re: [RFC PATCH 1/2] sbs-battery: add forced instantiation from device tree

2014-09-25 Thread Frans Klaver
On Thu, Sep 25, 2014 at 11:27 AM, Mark Rutland wrote: > On Wed, Sep 24, 2014 at 07:59:34PM +0100, Frans Klaver wrote: >> On Wed, Sep 24, 2014 at 04:34:32PM +0100, Mark Rutland wrote: >> > On Wed, Sep 24, 2014 at 04:14:48PM +0100, Frans Klaver wrote: >> > > On Wed, Sep 24, 2014 at 03:38:49PM +0100,

Re: [RFC PATCH 1/2] sbs-battery: add forced instantiation from device tree

2014-09-25 Thread Mark Rutland
On Wed, Sep 24, 2014 at 07:59:34PM +0100, Frans Klaver wrote: > On Wed, Sep 24, 2014 at 04:34:32PM +0100, Mark Rutland wrote: > > On Wed, Sep 24, 2014 at 04:14:48PM +0100, Frans Klaver wrote: > > > On Wed, Sep 24, 2014 at 03:38:49PM +0100, Mark Rutland wrote: > > > > On Wed, Sep 24, 2014 at 03:22:2

Re: [RFC PATCH 1/2] sbs-battery: add forced instantiation from device tree

2014-09-24 Thread Frans Klaver
On Wed, Sep 24, 2014 at 04:34:32PM +0100, Mark Rutland wrote: > On Wed, Sep 24, 2014 at 04:14:48PM +0100, Frans Klaver wrote: > > On Wed, Sep 24, 2014 at 03:38:49PM +0100, Mark Rutland wrote: > > > On Wed, Sep 24, 2014 at 03:22:22PM +0100, Frans Klaver wrote: > > > You mention that there's a GPIO t

Re: [RFC PATCH 1/2] sbs-battery: add forced instantiation from device tree

2014-09-24 Thread Mark Rutland
On Wed, Sep 24, 2014 at 04:14:48PM +0100, Frans Klaver wrote: > On Wed, Sep 24, 2014 at 03:38:49PM +0100, Mark Rutland wrote: > > On Wed, Sep 24, 2014 at 03:22:22PM +0100, Frans Klaver wrote: > > > On Wed, Sep 24, 2014 at 02:16:55PM +0100, Mark Rutland wrote: > > > > On Wed, Sep 24, 2014 at 02:11:1

Re: [RFC PATCH 1/2] sbs-battery: add forced instantiation from device tree

2014-09-24 Thread Frans Klaver
On Wed, Sep 24, 2014 at 03:38:49PM +0100, Mark Rutland wrote: > On Wed, Sep 24, 2014 at 03:22:22PM +0100, Frans Klaver wrote: > > On Wed, Sep 24, 2014 at 02:16:55PM +0100, Mark Rutland wrote: > > > On Wed, Sep 24, 2014 at 02:11:17PM +0100, Frans Klaver wrote: > > > > In some cases you want to insta

Re: [RFC PATCH 1/2] sbs-battery: add forced instantiation from device tree

2014-09-24 Thread Mark Rutland
On Wed, Sep 24, 2014 at 03:22:22PM +0100, Frans Klaver wrote: > On Wed, Sep 24, 2014 at 02:16:55PM +0100, Mark Rutland wrote: > > On Wed, Sep 24, 2014 at 02:11:17PM +0100, Frans Klaver wrote: > > > In some cases you want to instantiate a battery even before it is > > > attached; it is perfectly rea

Re: [RFC PATCH 1/2] sbs-battery: add forced instantiation from device tree

2014-09-24 Thread Frans Klaver
On Wed, Sep 24, 2014 at 02:16:55PM +0100, Mark Rutland wrote: > On Wed, Sep 24, 2014 at 02:11:17PM +0100, Frans Klaver wrote: > > In some cases you want to instantiate a battery even before it is > > attached; it is perfectly reasonable for a device to start up on > > wall-power and be connected to

Re: [RFC PATCH 1/2] sbs-battery: add forced instantiation from device tree

2014-09-24 Thread Mark Rutland
On Wed, Sep 24, 2014 at 02:11:17PM +0100, Frans Klaver wrote: > In some cases you want to instantiate a battery even before it is > attached; it is perfectly reasonable for a device to start up on > wall-power and be connected to a battery later. The current advice is to > instantiate a device expl

[RFC PATCH 1/2] sbs-battery: add forced instantiation from device tree

2014-09-24 Thread Frans Klaver
In some cases you want to instantiate a battery even before it is attached; it is perfectly reasonable for a device to start up on wall-power and be connected to a battery later. The current advice is to instantiate a device explicitly in the kernel, or probe for the device from userspace. The down