Re: [PATCH v7 09/15] power: bq24257: Add SW-based approach for Power Good determination

2015-09-28 Thread Andreas Dannenberg
On Mon, Sep 28, 2015 at 07:04:12AM -0500, Andreas Dannenberg wrote: > On Sun, Sep 27, 2015 at 10:20:26PM +0200, Sebastian Reichel wrote: > > Hi, > > > > On Fri, Sep 25, 2015 at 10:54:14AM -0500, Andreas Dannenberg wrote: > > > @@ -651,15 +670,18 @@ static int bq24257_power_supply_init(struct > >

Re: [PATCH v7 09/15] power: bq24257: Add SW-based approach for Power Good determination

2015-09-28 Thread Sebastian Reichel
Hi, On Mon, Sep 28, 2015 at 07:04:12AM -0500, Andreas Dannenberg wrote: > On Sun, Sep 27, 2015 at 10:20:26PM +0200, Sebastian Reichel wrote: > > On Fri, Sep 25, 2015 at 10:54:14AM -0500, Andreas Dannenberg wrote: > > > @@ -651,15 +670,18 @@ static int bq24257_power_supply_init(struct > > >

Re: [PATCH v7 09/15] power: bq24257: Add SW-based approach for Power Good determination

2015-09-28 Thread Andreas Dannenberg
On Sun, Sep 27, 2015 at 10:20:26PM +0200, Sebastian Reichel wrote: > Hi, > > On Fri, Sep 25, 2015 at 10:54:14AM -0500, Andreas Dannenberg wrote: > > @@ -651,15 +670,18 @@ static int bq24257_power_supply_init(struct > > bq24257_device *bq) > > return PTR_ERR_OR_ZERO(bq->charger); > > } > >

Re: [PATCH v7 09/15] power: bq24257: Add SW-based approach for Power Good determination

2015-09-27 Thread Sebastian Reichel
Hi, On Fri, Sep 25, 2015 at 10:54:14AM -0500, Andreas Dannenberg wrote: > @@ -651,15 +670,18 @@ static int bq24257_power_supply_init(struct > bq24257_device *bq) > return PTR_ERR_OR_ZERO(bq->charger); > } > > -static int bq24257_pg_gpio_probe(struct bq24257_device *bq) > +static void

[PATCH v7 09/15] power: bq24257: Add SW-based approach for Power Good determination

2015-09-25 Thread Andreas Dannenberg
A software-based approach for determining the charger's input voltage "Power Good" state is introduced for devices like the bq24250 which don't have a dedicated hardware pin for that purpose. This SW-based approach is also used for other devices (with dedicated PG pin) as a fall back solution if