Re: [PATCH 1/2] power: bq24735-charger: Request status GPIO with initial input setup

2016-08-29 Thread Paul Kocialkowski
Le lundi 29 août 2016 à 02:36 +0200, Sebastian Reichel a écrit : > Hi, > > On Sun, Aug 28, 2016 at 07:34:45PM +0200, Paul Kocialkowski wrote: > > > > This requests the status GPIO with initial input setup. it is required > > to read the GPIO status at probe time and thus correctly avoid sending >

Re: [PATCH 1/2] power: bq24735-charger: Request status GPIO with initial input setup

2016-08-28 Thread Sebastian Reichel
Hi, On Sun, Aug 28, 2016 at 07:34:45PM +0200, Paul Kocialkowski wrote: > This requests the status GPIO with initial input setup. it is required > to read the GPIO status at probe time and thus correctly avoid sending > i2c messages when AC is not plugged. > > When requesting the GPIO without init

[PATCH 1/2] power: bq24735-charger: Request status GPIO with initial input setup

2016-08-28 Thread Paul Kocialkowski
This requests the status GPIO with initial input setup. it is required to read the GPIO status at probe time and thus correctly avoid sending i2c messages when AC is not plugged. When requesting the GPIO without initial input setup, it always reads 0 which causes probe to fail as it assumes the ch