lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1482233582-29770-1-git-send-email-peda@axentia.se>
Date:   Tue, 20 Dec 2016 12:32:59 +0100
From:   Peter Rosin <peda@...ntia.se>
To:     linux-kernel@...r.kernel.org
Cc:     Peter Rosin <peda@...ntia.se>, Sebastian Reichel <sre@...nel.org>,
        linux-pm@...r.kernel.org
Subject: [PATCH 0/3] power: supply: bq24735: handle AC adapter absence

Hi!

There is provision in the driver for handling the case where the
chargers are not responding to i2c requests when the AC adapter
is absent. I think this has been used by some Tegra boards that
leave the charger handling to some other component and that only
wants the kernel to be aware of the charging status for reporting
(or whatever).

However, in my case, the kernel should handle configuration and
enable/disable the charging, but this is not working very well
when the charger disappears (and is reset) on AC adapter absence.

This series fixes the issues I have found in this area so that I
can boot without AC adapter and have the correct charging config
every time I do attach the AC adapter.

Cheers,
Peter

Peter Rosin (3):
  power: supply: bq24735: move down bq24735_{en,dis}able_charging
  power: supply: bq24735: configure the charger as part of enabling it
  power: supply: bq24735: always check for AC adapter presence in probe

 drivers/power/supply/bq24735-charger.c | 56 ++++++++++++++++------------------
 1 file changed, 26 insertions(+), 30 deletions(-)

-- 
2.1.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ